https://github.com/okaybenji/npm-no-task
A simple example of how to use NPM in the browser without a separate task runner
https://github.com/okaybenji/npm-no-task
browserify npm task-runner tutorial
Last synced: 7 months ago
JSON representation
A simple example of how to use NPM in the browser without a separate task runner
- Host: GitHub
- URL: https://github.com/okaybenji/npm-no-task
- Owner: okaybenji
- Created: 2016-07-12T14:15:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-12T14:53:02.000Z (over 9 years ago)
- Last Synced: 2025-03-12T18:44:51.578Z (11 months ago)
- Topics: browserify, npm, task-runner, tutorial
- Language: JavaScript
- Size: 72.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## NPM client-side without a task runner
This is the code written in my [video tutorial](https://www.youtube.com/watch?v=k1aeg5lAzVk "Watch the tutorial on YouTube") on using NPM in the browser without the need for additional task runners like Gulp or Grunt. Its only dependencies are Browserify, Watchify, and NPM itself.
[](https://www.youtube.com/watch?v=k1aeg5lAzVk)
[Watch the tutorial on YouTube](https://www.youtube.com/watch?v=k1aeg5lAzVk "Watch the tutorial on YouTube")
To try it out:
1. Clone the repo.
2. Navigate to the repo directory and run `npm install` from the command line.
3. Run `npm run watch` from the command line.
4. Start up a web server from the repo directory and navigate to `index.html`.
5. Open your browser console. You should see an array of numbers with none repeated.