Add build test

This commit is contained in:
Jake Howard 2016-03-25 13:08:22 +00:00
parent 71de1caf19
commit b1f1ddb8a0
3 changed files with 4 additions and 3 deletions

View file

@ -9,7 +9,7 @@
"build-cli": "browserify ./lib/cli.js -o ./bin/cli.js", "build-cli": "browserify ./lib/cli.js -o ./bin/cli.js",
"test": "./scripts/runtests", "test": "./scripts/runtests",
"lint": "eslint 'lib/'", "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'", "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'" "mocha": "mocha --require scripts/test-helper.js --bail 'tests/**/*.js'"
}, },

View file

@ -6,8 +6,8 @@ echo ">> Linting..."
eslint 'lib/' eslint 'lib/'
# echo ">> Testing Build..." echo ">> Testing Build..."
# npm run test-build npm run test-build
echo ">> Testing Project..." echo ">> Testing Project..."
npm run coverage npm run coverage

1
tests/to-build.js Normal file
View file

@ -0,0 +1 @@
console.log('foobar');