Add npm scripts to comply with Javascript CTI

More info: https://github.com/openstack/governance/blob/master/reference/cti/javascript-cti.rst

Change-Id: I0050d71328c2265a0256c93a2faf47ec5f9b42b0
This commit is contained in:
Vitaly Kramskikh 2015-11-18 22:33:50 +07:00
parent 596c76dc9d
commit 503ea42021
2 changed files with 14 additions and 4 deletions

View File

@ -1,10 +1,22 @@
{
"name": "fuel-web",
"version": "0.0.1",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/openstack/fuel-web.git"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"start": "gulp dev-server",
"lint": "gulp lint",
"test": "npm run unit-tests && npm run func-tests",
"unit-tests": "gulp unit-tests",
"func-tests": "../run_tests.sh --ui-func",
"prepublish": "gulp build"
},
"dependencies": {
"autoprefixer": "5.2.0",
"babel-core": "5.8.23",

View File

@ -80,9 +80,7 @@ NAILGUN_ROOT=$ROOT/nailgun
TESTRTESTS="nosetests"
FLAKE8="flake8"
PEP8="pep8"
CASPERJS="./node_modules/.bin/casperjs"
GULP="./node_modules/.bin/gulp"
LINTUI="${GULP} lint"
TOXENV=${TOXENV:-py26}
# test options
@ -245,7 +243,7 @@ function run_ui_unit_tests {
pushd $ROOT/nailgun >> /dev/null
${GULP} unit-tests || result=1
npm run unit-tests || result=1
popd >> /dev/null
@ -370,7 +368,7 @@ function run_lint_ui {
pushd $ROOT/nailgun >> /dev/null
local result=0
${LINTUI} || result=1
npm run lint || result=1
popd >> /dev/null
return $result