Bug 1206108 - Separate `grunt build` npm packages from those for testing

To run grunt build as part of deploy, we're going to need to npm install
the dependencies required for it. However we do not need to install the
testing related packages, so by splitting the two between `dependencies`
and `devDependencies` we'll have more control. eg:
`npm install --production` will only install those under `dependencies`.

See:
https://docs.npmjs.com/files/package.json#dependencies
https://docs.npmjs.com/files/package.json#devdependencies
https://docs.npmjs.com/misc/config#production
This commit is contained in:
Ed Morley 2015-09-18 15:16:53 +01:00
Родитель 71f7fa01f3
Коммит d5e7b5ca49
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -5,7 +5,7 @@
"type": "git",
"url": "https://github.com/mozilla/treeherder.git"
},
"devDependencies": {
"dependencies": {
"grunt": "0.4.5",
"grunt-angular-templates": "0.5.7",
"grunt-cache-busting": "0.0.11",
@ -14,17 +14,19 @@
"grunt-contrib-copy": "0.8.0",
"grunt-contrib-cssmin": "0.12.3",
"grunt-contrib-uglify": "0.9.1",
"grunt-usemin": "3.0.0",
"load-grunt-tasks": "^3.2.0"
},
"devDependencies": {
"grunt-eslint": "16.0.0",
"grunt-html-angular-validate": "0.4.1",
"grunt-usemin": "3.0.0",
"karma": "~0.12.0",
"karma-cli": "0.0.4",
"karma-coverage": ">=0.2.0",
"karma-firefox-launcher": ">=0.1.3",
"karma-jasmine": "0.1.0",
"karma-junit-reporter": ">=0.2.1",
"karma-ng-scenario": ">=0.1.0",
"load-grunt-tasks": "^3.2.0"
"karma-ng-scenario": ">=0.1.0"
},
"scripts": {
"test": "karma start tests/ui/config/karma.conf.js --single-run --browsers Firefox"