A minimal, clean and simple boilerplate based on Harp, npm as a task runner, and deploy to Github Pages.
git clone
this reponpm install
- Open up
package.json
and change any needed configuration inconfig
orscripts
npm start
will open a browser onhttp://localhost:3000
(BrowserSync)- All your
.jade, .scss, .md
files are being watched and magically served (Harp + BrowserSync)
npm build
will create adist
folder with all your static files.- It will also create a CNAME file for you.
npm gh-deploy
will take yourdist
and push it to your repo'sgh-pages
branch (git-directory-deploy)- It will only take update files
username.github.io/repo
andYOUR_DOMAIN
are magically updated
- You can do semantic versioning with npm (see reference)
npm version patch
,npm version minor
,npm version major
- It will also make a
git commit
for you
- Add some more
config
options - Create a Yeoman Generator for this
- NodeJS
- bash/zsh/fish
- Start a Blog with Harp
- Harp, Gulp and BrowserSync
- How to Use npm as a Build Tool (AMAZING)
- Task Automation with npm run
To the creators of these tools, articles and all the people sharing their knowledge - I want to say thank you!
MIT