From 4fb04dae09a8c2dd4cb49eaf17d0cd3b49abfe14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Sat, 2 Apr 2016 10:37:29 +0200 Subject: [PATCH] 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. --- bower.json | 4 +++- package.json | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bower.json b/bower.json index 72a4e1c..4b4cf5b 100644 --- a/bower.json +++ b/bower.json @@ -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" } } diff --git a/package.json b/package.json index 18a7036..b75478d 100644 --- a/package.json +++ b/package.json @@ -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",