From d168d432615e0c84393c82280fb72b6d2e5a455d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Sun, 18 Mar 2018 10:40:02 +0100 Subject: [PATCH] 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 --- bower.json | 6 ++++-- package.json | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bower.json b/bower.json index 3a7d402..a740408 100644 --- a/bower.json +++ b/bower.json @@ -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": [ diff --git a/package.json b/package.json index 5741afa..0245e8d 100644 --- a/package.json +++ b/package.json @@ -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",