This project uses:
First of all, install the dependencies to run this boilerplate.
# Clone this repository
git clone [email protected]:ricardogouveia3/grunt-boilerplate.git
cd grunt-boilerplate
# install dependencies
npm install
After that, you should be good to go :)
├── assets/
│ ├── sass/
│ │ ├── partials/
│ │ │ └── _*.sass
│ │ └── style.sass
│ │ └── variables.sass
│ └── img/
│ └── *.{jpg||png||svg}
├── build/
│ ├── assets/
│ │ ├── css/
│ │ │ └── style.min.css
│ │ └── img/
│ │ └── *.min.{jpg||png||svg}
│ ├── js/
│ │ └── index.min.js
│ ├── *.html
│ └── favicon.ico
├── js/
│ └── *.js
├── pug/
│ └── *.pug
├── .editorconfig
├── .gitignore
├── Gruntfile.js
├── package.json
└── README.md
-
grunt concat
: concatmodules/*.js
intoindex.min.js
-
grunt uglify
: uglifiesindex.min.js
into itself -
grunt sass
: build [everything].sass into style.css -
grunt autoprefixer
: adds vendor prefixes to style.css -
grunt imagemin
: optimize*.jpg
,*.png
,*.svg
insideassets/img
-
grunt pug
: generatesindex.html
fromindex.pug
+includes/*.pug
-
grunt compile
: run concat, uglify, sass, autoprefixer, imagemin, pug; does not start server -
grunt
: run watch [tasks: pug, sass, concat] and start BrowserSync local server
MIT License © Ricardo Álvaro Gouveia Gomes Filho