Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Add NPM scripts #31

Merged
merged 5 commits into from
Aug 27, 2015
Merged

Add NPM scripts #31

merged 5 commits into from
Aug 27, 2015

Conversation

chris-kobrzak
Copy link
Contributor

Issue #30

npm install
```

## Workflow
1. Run webpack-dev-server.js with Node. This will run `webpack-dev-server` with
HMR enabled on port 5000:
1. Run `webpack-dev-server` acting as a static content HTTP server with hot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be more correct to say "acting as asset server".

@katranci
Copy link
Contributor

Looks good 👍

Also drop requirement for globally available `webpack` and `karma` dependencies.
NPM adds `node_modules/.bin` to its `PATH` and that means you don't need to
worry about installing Node.js dependencies globally. The `npm run` command
will use locally installed binaries instead.
You might want to go `npm run clean` before running the linter to prevent it
from reporting on the Istanbul coverage JavaScript files.
cobacious pushed a commit that referenced this pull request Aug 27, 2015
@cobacious cobacious merged commit 2b080d8 into master Aug 27, 2015
@cobacious cobacious deleted the npm-scripts branch August 27, 2015 15:14
@chris-kobrzak
Copy link
Contributor Author

Resolves #30

"build": "webpack",
"clean": "rm -fr tmp/coverage/javascript/* && rm -fr dist/*",
"dev-server": "node webpack-dev-server.js",
"start": "http-server -p 5001",
"lint": "eslint --ignore-pattern dist ./; exit 0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More background on the exit 0 hack: eslint/eslint#2409 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants