Frontend boilerplate for prototyping web pages using Gulp, PostCSS, Pug and SASS.
# clone this repository
git clone https://github.com/antongunov/frontend-boilerplate.git
cd frontend-boilerplate
# install dependencies
npm install
# copy .env.example to .env and set your settings
cp .env.example .env
# run for developing
npm run dev
# build for production
npm run build
# run for serving in production mode
npm start
All Gulp tasks are independent.
module.exports = (gulp, options, plugins) => {
return {
run: (done) => {
return done();
},
watch: () => {
gulp.watch(options.watch, gulp.series(options.name()));
},
};
};
The code is available under the MIT License.