This is a project to help to start a fresh website using Grunt.js to do a bunch of stuff.
First, make sure you have the latest Node and npm. Go to nodejs.org, download and install it.
To get everything setup, just run the setup script.
$ script/setup
To run the project, you can simply run:
$ grunt
Or, in the style of "Scripts To Rule Them All", you can run:
$ script/server
Open localhost:3000 in your browser to see your new project. To see BrowserSync's UI, open localhost:3001.
To update your project if the dependencies have been changed, run:
$ script/update
Delete the existing .git
folder. This is your project now.
$ rm -rf .git
- Edit the
name
,version
, andrepository
fields inpackage.json
. - Replace the contents of
README.md
with things relevant to your project. - Setup a new git repository.
$ git init
$ git add .
$ git commit -m "Starting point based on Trey's Blank Slate."
You might also consider customizing the bootstrap
script in the script/
folder. It's only relevant for getting your project set up the first time.
Alternately, you could just install this script.
Note: src/index.html
is mostly HTML5 Boilerplate with stuff stripped out. /css/scss/normalize.scss
is from normalize.css.
The idea for this came from the little Solutions Log post I wrote and the fact that I had to keep referring to it to build little one off prototypes I was working on. Now I can just grab a copy of this and get rocking immediately.
You should also check out @elijahmanor's (much, much better thought out) project.