Merge branch 'master' of https://github.com/jean-emmanuel/open-stage-control
This commit is contained in:
commit
f0b847dd09
4 changed files with 15 additions and 3 deletions
|
|
@ -52,7 +52,7 @@ if (cli) {
|
|||
launcher
|
||||
|
||||
app.on('ready',function(){
|
||||
launcher = require('./electron-window')({address:address, shortcuts:false, type:'splash', width:600, height:423})
|
||||
launcher = require('./electron-window')({address:address, shortcuts:false, width:600, height:423})
|
||||
})
|
||||
|
||||
ipcMain.on('start',function(e, options){
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
"watch-css": "nodemon --watch src/browser/scss -e scss -x \"npm run build-css\"",
|
||||
"watch-js": "nodemon --watch src/browser/js -e js -x \"npm run build-js\"",
|
||||
"build-css": "node-sass --include-path src/browser/scss src/browser/scss/style.scss app/browser/styles.css --output-style compressed",
|
||||
"build-js": "browserify src/browser/js/browser.js -o app/browser/scripts.js",
|
||||
"build-js": "node scripts/build-js.js > app/browser/scripts.js",
|
||||
"deploy-docs": "cd resources && mkdocs gh-deploy --clean && rm -rf site",
|
||||
"test": "npm run build"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ Running the app from the sources slightly differs from using built binaries : in
|
|||
|
||||
**Requirements**
|
||||
|
||||
- [Node.js >= 4.0](https://nodejs.org/)
|
||||
- [Node.js >= 4](https://nodejs.org/)
|
||||
- [npm](https://www.npmjs.com/)
|
||||
|
||||
```bash
|
||||
|
|
|
|||
12
scripts/build-js.js
Normal file
12
scripts/build-js.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
var browserify = require('browserify'),
|
||||
path = require('path')
|
||||
|
||||
|
||||
var b = browserify(path.resolve(__dirname + '/../src/browser/js/browser.js'));
|
||||
|
||||
// bypass syntax-error check if node version is < 6
|
||||
if (parseInt(process.version.split('.')[0].replace('v',''))<6) {
|
||||
b.pipeline.get('syntax').splice(0, 1);
|
||||
}
|
||||
|
||||
b.bundle().pipe(process.stdout);
|
||||
Loading…
Add table
Add a link
Reference in a new issue