A boilerplate for express using express-generator and html5 boilerplate
Boilerplate for Express using Express and html5 boilerplate.
This Boilerplate uses :
npm install
public/favicon.ico
(optional)UA-XXXXX-X
in views/layout.hbs
to your site’s ID (optional)npm start
to run the server in port 3000resources/scss
resources/scripts
resources/html
views/layout
takes a meta object with title
, description
, keyword
and file
as propertiesfile
property is the name of the CSS and JS file to be included (Assumes that the name of the Template, CSS and JS Files are the same)Task | Description |
---|---|
images |
minifies all the images in public/img |
js |
transpiles all js files in resources/js from es6 to es5, uglifies and places it in public/js |
css |
transpiles scss files in resources/scss to css, autoprefixes them, minifies them and places them in public/css |
html |
minifies html files in resources/html and places them in public/ |
build |
runs html , js , css and images |
watch |
watches html , css and js files |
default |
runs build and watch |
The code is available under the MIT license.