Split bower dependencies into those needed for tests and full offline mode

"production" dependencies is the minimal set to run the tests
"dev" dependencies contain the rest

This speeds up travis builds enormously and saves a lot of time and disk
space if you only want to run the tests
This commit is contained in:
Lorenz Hübschle-Schneider 2018-03-18 10:40:02 +01:00
parent 30e0343104
commit d168d43261
2 changed files with 6 additions and 3 deletions

View file

@ -12,9 +12,11 @@
"angular-touch": "1.6.x",
"angular-loader": "1.6.x",
"angular-mocks": "1.6.x",
"html5-boilerplate": "~4.3.0",
"underscore": "~1.8",
"underscore": "~1.8"
},
"devDependencies": {
"bootstrap": "~3.3",
"html5-boilerplate": "~4.3.0",
"emojione": "~2.2"
},
"keywords": [

View file

@ -21,7 +21,7 @@
"uglify-js": "^3"
},
"scripts": {
"postinstall": "bower install",
"postinstall": "bower install -p",
"minify": " uglifyjs js/localstorage.js js/weechat.js js/irc-utils.js js/glowingbear.js js/settings.js js/utils.js js/notifications.js js/filters.js js/handlers.js js/connection.js js/file-change.js js/imgur-drop-directive.js js/whenscrolled-directive.js js/inputbar.js js/plugin-directive.js js/websockets.js js/models.js js/bufferResume.js js/plugins.js js/imgur.js -c -m --screw-ie8 -o min.js --source-map min.map",
"prestart": "npm install",
"start": "http-server -a localhost -p 8000",
@ -32,6 +32,7 @@
"update-webdriver": "webdriver-manager update",
"preprotractor": "npm run update-webdriver",
"protractor": "protractor test/protractor-conf.js",
"premake-local": "bower install --dev",
"make-local": "make -f electron.makefile uselocal",
"build-electron-windows": "make -f electron.makefile build-electron-windows",
"build-electron-darwin": "make -f electron.makefile build-electron-darwin",