Skip to content

Commit

Permalink
Move webpack build to herok-postbuild; remove test:* scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
osteele committed May 21, 2018
1 parent 591834f commit 289c18c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
5 changes: 3 additions & 2 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ seconds for Webpack to recompile everything.

`yarn test` runs [Jest](https://facebook.github.io/jest/).

`yarn test:watch` runs Jest in watch mode.
`yarn test --watch` runs Jest in watch mode. Jest will run until you press `q`,
and re-run the tests when a source file changes.

`yarn test:coverage` creates a test coverage report. View the HTML at `./coverage/lcov-report/index.html`.
`yarn test --coverage` creates a test coverage report. View the HTML at `./coverage/lcov-report/index.html`.

### Lint

Expand Down
16 changes: 7 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,17 @@
"description": "Web frontend utilizing React for Olin College of Engineering's Amorphous Blob of Events (ABE).",
"main": "server.js",
"scripts": {
"clean": "rimraf bundle.js bundle.js.map",
"build": "webpack --config=webpack.config.js -p",
"postinstall": "$npm_execpath run clean && $npm_execpath run build",
"start": "node server.js",
"clean": "rimraf bundle.js bundle.js.map",
"dev": "webpack-dev-server --inline --hot",
"lint": "$npm_execpath run lint:js && $npm_execpath run lint:markdown",
"lint:js": "eslint --cache --ext .js,.jsx src *.js",
"format": "eslint --fix --ext .js,.jsx src *.js && $npm_execpath run lint:markdown --fix",
"heroku-postbuild": "$npm_execpath run clean && $npm_execpath run build",
"lint:js": "eslint --cache --ext .js,.jsx src *.js",
"lint:markdown": "markdownlint *.md && markdownlint .github/PULL_REQUEST_TEMPLATE.md -c .github/.markdownlintrc",
"test": "jest",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch",
"stats": "webpack --json > stats.json"
"lint": "$npm_execpath run lint:js && $npm_execpath run lint:markdown",
"start": "node server.js",
"stats": "webpack --json > stats.json",
"test": "jest"
},
"engines": {
"node": "^9"
Expand Down

0 comments on commit 289c18c

Please sign in to comment.