jaysalvat / boilerplate-static-website

Personal Static website boilerplate: Twig, Sass/Scss, webpack, ES6, BrowserSync, Image optim...
20 stars 4 forks source link

Install

First install NodeJs.

Then install dependencies.

npm install

Then init the app

npm run init

Developement

Build, watch aand open server

npm start

Build, watch and open server with sync between browers

npm run dev

Watch and open server on another port

npm start -- --port 3010

Generation

Generate pages or partials from templates

npm run generate

Generate a page from templates

npm run generate:page

Generate a partial from templates

npm run generate:partial

Production

Build the website with minified CSS / HTML and scripts to the /dist folder.

npm run build

Deploy the /dist content on the server.

npm run deploy