1.1.0 • Published 5 years ago
bob-bundler v1.1.0
Bob Bundler
Bundle HTML, CSS, JS with optional server and live reload
Install
npm install bob-bundler -g
..or as devDependency:
npm install bob-bundler -D
Commands
bob build
- Build all
bob dev
- Build all
- Watch and compile on file change
- If using nodemon or static server, live reload browser
Configure
Set bob
property in package.json
Example configuration
"bob": {
"browserify": {
"src": "src/client/index.js",
"dest": "build/client/app.js",
"watch": "src/client/**/*.js"
},
"sass": {
"src": "src/client/index.scss",
"dest": "build/client/app.css",
"watch": "src/client/**/*.scss"
},
"html": {
"src": "src/client/index.html",
"dest": "build/client",
"watch": "src/client/**/*.html"
},
"babel": {
"src": "src/server",
"dest": "build/server",
"watch": "src/server/**/*.js"
},
"copy": {
"src": "assets/**",
"dest": "build/client",
"watch": "assets/**"
},
"nodemon": {
"src": "build/server",
"port": "3000"
},
"static": {
"src": "build/client",
"port": "3001"
}
}
All tasks are optional. Each task can also be an array.
Examples
See /examples
folder in this repo.
client
- Static siteclient-react
- Static site with Reactserver
- Server onlyfullstack
- Site withexpress
serverfullstack-react
- TODO: React with server-side rendering
Run the example:
npm install && npm start
1.1.0
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago
0.6.3
6 years ago
0.5.3
7 years ago
0.5.2
7 years ago
0.5.1
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.0
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago