This project is intended to be a simple, easy to use, barebones website. No back-end is implemented so it can be used with many different back-end languages. This project only includes:
- jQuery
- Bootstrap
- Some cool little npm scripts (described in some details below)
- Dev Dependencies in order to make everything work
In order to run this you need npm installed, start by typing:
$ npm install
With all modules ready, you will have the following useful scripts:
Uses browserify in order to make the file content/js/main.js
browser-ready and outputs the result in public/js/script.js
.
Compiles the file content/sass/main.scss
using node-sass and add browser prefixes using autoprefixer. The output goes to public/css/style.css
.
The same as build-js but also minifies the resulting js using uglifyjs.
The same as build-sass but also minifies the resulting css using clean-css.
Uses concurrently to run both build-js and build-sass.
Uses concurrently to run both build-min-js and build-min-sass.
Uses nodemon to watch the js folder for changes and call build-js according.
Uses nodemon to watch the sass folder for changes and call build-sass according.
Uses concurrently to run both watch-js and watch-sass at the same time.
To run any of these scripts just type:
$ npm run <command-name>