-
Clone this perository to any folder you want
-
In that folder run in console one after another:
npm install bower install
-
To start project locally run in colsole
docpad run
for optimizing rendering speed less compilation in development made as separate task:
grunt watchless
-
Open in browser http://localhost:9778
docpad run
— to start locally
docpad run --env preview
— to preview optimized version
docpad deploy-ghpages --env static
— publish to http://IDTdesign.github.io/BRGPR
grunt lint --force
— check *.less files and *.html files for errors. Run when project fails to compile.
grunt svgicons
— compile svg sprite. Run when icons edited or added new.
grunt imageoptim
— compress images in img folder. Run when new assets added.
There are 3 environments in the project:
- Development — default environment. No minification or concatenation on styles and scripts. Default Modernizr.js.
- Preview — optimized for faster loading. All styles merged one file and minified. Same with scripts, output script uses custom Modernizr build. HTML minified and GZIPped.
- Static — same as preview but generated site uses direct urls for http://IDTdesign.github.io/BRGPR
Before first publishing run this command in GIT console
git remote add deploy https://login:password@github.com/IDTdesign/BRGPR.git
Where login and password is your Github credentials.
Then run docpad deploy-ghpages --env static
— publish to http://IDTdesign.github.io/BRGPR
More info http://paulradzkov.com/2014/deploy_docpad_site_to_github_pages/