Skip to content

Commit

Permalink
(test): run tests together in test script
Browse files Browse the repository at this point in the history
- also add a clean script too
  - make the build/ folder in the process as it needs to exist for
    outputting the bundles

- probably want to extract these to a maidfile soon
  • Loading branch information
agilgur5 committed Jun 14, 2019
1 parent 833db41 commit b513fe5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
"browserify-worker-stub.js"
],
"scripts": {
"test": "npm run test:browserify && npm run test:webpack",
"test": "npm run clean && npm run browserify && npm run webpack && ava",
"test:browserify": "npm run browserify && ava browserify.spec.js",
"test:webpack": "npm run webpack && ava webpack.spec.js",
"browserify": "browserify test-utils/browserify/_export-to-window.js > build/browserify.bundle.js",
"webpack": "webpack test-utils/webpack/_export-to-window.js -o build/webpack.bundle.js --mode='development'"
"webpack": "webpack test-utils/webpack/_export-to-window.js -o build/webpack.bundle.js --mode='development'",
"clean": "rm -rf build/ && mkdir build/"
},
"ava": {
"require": [
Expand Down

0 comments on commit b513fe5

Please sign in to comment.