This is a build system boilerplate for frontend projects. This is not for sites that use frameworks such as Vue, React or Angular.
- Sass
- Autoprefixer
- HTML Includes
- Minification
- JS Module Bundling
- Image Optimization
- Moves Everything To An Output Folder
- Adds Image Sizes To HTML Inline (for the backend developers!)
- Clean up your source code (HTML and JS)
- Live Reloading / Rebuilding
- For the CSS - csso, sass, autoprefixer
- For the JS - Babel, Prettier, Browserify, Tinyify
- For the HTML - gulp-html-beautify, gulp-inline-imagesize
- And some more - imagemin
First install the dependencies:
$ npm install
Or if you float that way,
$ yarn
Then you can run the scripts. There is 4 main tasks:
npm run dist
- Build the production version of the site (think minify and optimize)npm run dev
- Build the development version of the site (think faster)npm run watch
- Likenpm run dev
but it watches for changes and builds incrementallynpm run format
- Clean up your HTML and JS source code
MIT