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
new-cordova-2
Lorenz Hübschle-Schneider 7 years ago
parent 30e0343104
commit d168d43261
  1. 6
      bower.json
  2. 3
      package.json

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

@ -21,7 +21,7 @@
"uglify-js": "^3" "uglify-js": "^3"
}, },
"scripts": { "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", "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", "prestart": "npm install",
"start": "http-server -a localhost -p 8000", "start": "http-server -a localhost -p 8000",
@ -32,6 +32,7 @@
"update-webdriver": "webdriver-manager update", "update-webdriver": "webdriver-manager update",
"preprotractor": "npm run update-webdriver", "preprotractor": "npm run update-webdriver",
"protractor": "protractor test/protractor-conf.js", "protractor": "protractor test/protractor-conf.js",
"premake-local": "bower install --dev",
"make-local": "make -f electron.makefile uselocal", "make-local": "make -f electron.makefile uselocal",
"build-electron-windows": "make -f electron.makefile build-electron-windows", "build-electron-windows": "make -f electron.makefile build-electron-windows",
"build-electron-darwin": "make -f electron.makefile build-electron-darwin", "build-electron-darwin": "make -f electron.makefile build-electron-darwin",

Loading…
Cancel
Save