https://github.com/jpw/jsbundle-experiment
An experiment in bundling JS for the browser from a variety of sources
https://github.com/jpw/jsbundle-experiment
Last synced: 3 months ago
JSON representation
An experiment in bundling JS for the browser from a variety of sources
- Host: GitHub
- URL: https://github.com/jpw/jsbundle-experiment
- Owner: jpw
- Created: 2018-01-05T11:03:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-08T06:04:22.000Z (6 months ago)
- Last Synced: 2025-01-10T15:56:44.808Z (4 months ago)
- Language: HTML
- Size: 397 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jsbundle-experiment
A little demo of bundling JS from a variety of sources for consumption by ES5 & ES6 clients. Based on my [rollup & bundling demo](https://github.com/jpw/testing-rollup).
## Aims
1. We want to include 3rd party JS for the browser from npm: _accomplished via rollup using 'rollup-plugin-node-resolve', enabling use of node-style_ require _statements_
1. We want to include many granular FE packages of CSS, JS, templates & images from our main package repo.
1. We want to *watch* source directories: _accomplished via rollup's_ watch _CLI option_## To use
1. Clone this repo, `cd` into it.
1. if you have `nvm` installed, run `nvm use` then `npm ci` else `npm i`
1. Build the JS & CSS assets: `npm run build-all`
1. Run the express server: `node app`
1. [Look at `http://localhost:3000/`](http://localhost:3000/)