Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 911 Bytes

README.md

File metadata and controls

50 lines (35 loc) · 911 Bytes

Frontend Boilerplate license

Frontend boilerplate for prototyping web pages using Gulp, PostCSS, Pug and SASS.

How to Install

# 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

Gulp Tasks

All Gulp tasks are independent.

Example Task

module.exports = (gulp, options, plugins) => {
  return {
    run: (done) => {
      return done();
    },
    watch: () => {
      gulp.watch(options.watch, gulp.series(options.name()));
    },
  };
};

License

The code is available under the MIT License.