[npm] explicitly depend on real deps

This commit is contained in:
spalger 2016-03-08 16:33:02 -07:00
parent db34b3c226
commit 0403a7bc74
3 changed files with 21 additions and 2 deletions

View file

@ -108,6 +108,19 @@ module.exports = function (grunt) {
},
files: replaceSrcFiles
}
},
run: {
npmInstallInBuild: {
cmd: 'npm',
args: [
'install',
'--production'
],
options: {
cwd: 'build/sense-<%= pkg.version %>'
}
}
}
});

View file

@ -3,7 +3,7 @@
"contributors": [
"Spencer Alger <spencer.alger@elastic.co>"
],
"name": "Sense",
"name": "sense",
"version": "2.0.0-snapshot",
"repository": {
"type": "git",
@ -27,9 +27,14 @@
"grunt-contrib-copy": "^0.8.2",
"grunt-gitinfo": "^0.1.7",
"grunt-replace": "^0.11.0",
"grunt-run": "^0.5.2",
"gruntify-eslint": "^1.2.0",
"jit-grunt": "^0.9.1"
},
"dependencies": {},
"dependencies": {
"boom": "^3.1.2",
"joi": "^8.0.4",
"lodash": "^4.6.1"
},
"license": "Apache-2.0"
}

View file

@ -5,6 +5,7 @@ module.exports = function (grunt) {
'clean:target',
'eslint:source',
'copy:build',
'run:npmInstallInBuild',
'gitinfo',
'replace:build',
'compress:build'