This is SPA application of my personal web site at hedgehog.com.ua, that is built by Google Closure Tools on client side (Closure Library, Closure Compiler, Closure Templates) and Ghost blog engine from backend.
From the command line:
- Install
grunt-cli
globally withnpm install -g grunt-cli
. - Navigate to the root directory, then run
npm install
. npm will look at [package.json] and automatically install the necessary local dependencies listed there.
- Compile Closure Compiler:
- Install JDK http://www.oracle.com/technetwork/java/javase/downloads/index.html
- Install ant http://ant.apache.org/
- Execute command
ant jar
insidetools/closure-compiler
folder
- Install required packages for Hedgehog Bootstrap. Please read about it here
- Installation and configuration Ghost engine in development mode. Please read how to do it here
When completed, you'll be able to run the various Grunt commands provided from the command line.
grunt
(default task) - build Ghost theme to/dist
folder and then copy to '/ghost/content/themes/hedgehog' folder.grunt watch
- monitor changes for *.js, *.hbs, *.less files and then run the proper command to make changes to the theme.
It will add public API functionality to the Ghost engine, so we can getting settings, posts and tags without authentication.
- Fist of all you should build third-party libraries/tools.
- Run
grunt
command. - Launch Ghost.
- Go to Setting section of Ghost Admin panel and select
Hedgehog-x.x.x
from Theme dropdown. - Save
- Fist of all you should build third-party libraries/tools.
- Run
grunt
command. - Copy all files from
~/dist
to the[ghost-folder]/content/themes/hedgehog
folder on your host. - Go to Setting section of Ghost Admin panel and select
Hedgehog-x.x.x
from Theme dropdown. - Save