Add npm script to use local files (for electron or cordova)
This copies useless files as well, I'm not sure what's the best way to deal with that.
This commit is contained in:
parent
ba988aecd3
commit
4fb04dae09
2 changed files with 4 additions and 1 deletions
|
@ -12,6 +12,8 @@
|
|||
"angular-touch": "1.4.x",
|
||||
"angular-loader": "1.4.x",
|
||||
"angular-mocks": "1.4.x",
|
||||
"html5-boilerplate": "~4.3.0"
|
||||
"html5-boilerplate": "~4.3.0",
|
||||
"underscore": "~1.7",
|
||||
"bootstrap": "~3.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
"update-webdriver": "webdriver-manager update",
|
||||
"preprotractor": "npm run update-webdriver",
|
||||
"protractor": "protractor test/protractor-conf.js",
|
||||
"use-local-files": "find bower_components \\( -name \"*min.js\" -o -name \"*min.css\" \\) -exec cp {} 3rdparty \\; ; cp -r bower_components/bootstrap/fonts . ; sed -i 's,https://cdnjs.cloudflare.com/ajax/libs/[^\"]*/,3rdparty/,g' index.html ; sed -i 's, integrity=\".*\" crossorigin=\"anonymous\",,' index.html",
|
||||
"build-electron-windows": "electron-packager . \"Glowing Bear\" --platform=win32 --arch=ia32 --version=0.37.2 --overwrite --icon=assets/img/favicon.ico --asar=true --version-string.FileDescription=\"Glowing Bear\" --ignore=node_modules --ignore=test",
|
||||
"build-electron-darwin": "electron-packager . \"Glowing Bear\" --platform=darwin --arch=x64 --version=0.37.3 --overwrite --icon=assets/img/glowing-bear.icns --version-string.FileDescription=\"Glowing Bear\" --ignore=node_modules --ignore=test",
|
||||
"build-electron-linux": "electron-packager . \"Glowing Bear\" --platform=linux --arch=x64 --version=0.37.3 --overwrite --icon=assets/img/favicon.ico --version-string.FileDescription=\"Glowing Bear\" --ignore=node_modules --ignore=test",
|
||||
|
|
Loading…
Reference in a new issue