The purpose for creating this package was to prepare a good starting point and automation tool for building front-end web projects.
- Download this repository and change its folder name.
- Install all modules from devDependencies using
npm install
command (requires Node.js installed). - Adjust package.json file to your needs and change the description in README.md file.
- Enjoy!
Below there are descriptions of all main tasks with their subtasks
build – builds the whole docs folder and compiles all the required files
- rm-rf – removes files from docs directory
- mkdir-p - creates new directories used in docs
- cp-r - copies files which will not be processed to docs directory
- sass - compiles scss files to css
- autoprefixer - adds vendor prefixes to css rules
- minify:html - minifies index.html document based on the default configuration of HTML Minifier
- minify:css - minifies style.css file
- minify:js - minifies JavaScript files
- minify:svg - optimizes SVG vector graphics files
- minify:img - compresses images
watch – watches for changes and shows them directly in the browser
- watch:sass – compiles scss files to css and adds vendor prefixes to css rules when scss files change
- browse:src - browses source files and synchronizes a browser with their changes
edit - opens new instance of Visual Studio Code with all the default project files
postinstall – runs build, edit and watch tasks after installing the dependencies of the package to automate its use
The package is dependent on the following modules: