- Install Latest Node.js LTS Version: v6.11.0
- Install latest version of yo by command
sudo npm install -g yo
for Linux/Mac ornpm install -g yo
for Windows - Clone repo and goto folder by command
git clone --depth 1 --single-branch https://github.com/menangen/generator-site.git && cd generator-site
- Run setup
npm install
- Link global generator into system
sudo npm link
for Linux/Mac ornpm link
for Windows
Note:
- Use admin rights for Installation yo and only linking generator-site into your system (Windows or Mac)
- Create a new folder and run in terminal command like
mkdir project && cd project
- For start generator in project folder and setup project:
yo site
- Then you have to setup npm environment:
npm install
- Prepare folder by
mkdir project && cd project
- Run generator by
yo site
npm run build
compile production build to dist/npm run watch
watch code and recompile pug and less/sassnpm run serve
open website in new window
npm run pug:watch
npm run less:watch
npm run js:watch