archive
/
JSFuckify
Archived
1
Fork 0

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",
"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'"
},

View File

@ -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
View File

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