Add build test
This commit is contained in:
parent
71de1caf19
commit
b1f1ddb8a0
3 changed files with 4 additions and 3 deletions
|
@ -9,7 +9,7 @@
|
|||
"build-cli": "browserify ./lib/cli.js -o ./bin/cli.js",
|
||||
"test": "./scripts/runtests",
|
||||
"lint": "eslint 'lib/'",
|
||||
"test-build": "browserify tests/build-test.js -t ./lib/index.js -o tests/out/build-test.js",
|
||||
"test-build": "browserify tests/to-build.js -t ./lib/index.js -o tests/out/built.js",
|
||||
"coverage": "istanbul cover node_modules/.bin/_mocha -- --require scripts/test-helper.js --bail --recursive 'tests/*.js'",
|
||||
"mocha": "mocha --require scripts/test-helper.js --bail 'tests/**/*.js'"
|
||||
},
|
||||
|
|
|
@ -6,8 +6,8 @@ echo ">> Linting..."
|
|||
eslint 'lib/'
|
||||
|
||||
|
||||
# echo ">> Testing Build..."
|
||||
# npm run test-build
|
||||
echo ">> Testing Build..."
|
||||
npm run test-build
|
||||
|
||||
echo ">> Testing Project..."
|
||||
npm run coverage
|
||||
|
|
1
tests/to-build.js
Normal file
1
tests/to-build.js
Normal file
|
@ -0,0 +1 @@
|
|||
console.log('foobar');
|
Reference in a new issue