Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve examples scripts with watch #582

Closed
jiayihu opened this issue Aug 9, 2016 · 1 comment
Closed

Improve examples scripts with watch #582

jiayihu opened this issue Aug 9, 2016 · 1 comment

Comments

@jiayihu
Copy link
Contributor

jiayihu commented Aug 9, 2016

It's tedious to run npm run build every time I make a change to test the examples, so I suggest adding a watch script with watchify.
For instance this work perfectly in hello-world example:

"build": "../../node_modules/.bin/mkdirp build && ../../node_modules/.bin/browserify index.js -d -t babelify -t browserify-shim > build/bundle.js",
"watch": "../../node_modules/.bin/mkdirp build && ../../node_modules/.bin/watchify index.js -d -t babelify -t browserify-shim -o build/bundle.js -v",
@ericf
Copy link
Collaborator

ericf commented Aug 15, 2016

Feel free to raise a PR for this.

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

No branches or pull requests

2 participants