Development and technology notes.
# First:
$ cd popular/source/
# Next, install:
$ npm install
# ... or update Grunt dependencies:
$ npm update
# Update Bower packages:
$ grunt plugins
# ... or:
$ npm run plugins
# Watch:
$ grunt watch
# ... or:
$ npm run watch
# Development build:
$ grunt
# ... or:
$ grunt dev
# ... or:
$ npm run dev
# Production build:
$ grunt prod
# ... or:
$ npm run prod
Note: If Grunt isn’t installed globally, then roll with the $ npm ...
commands.
DEVELOPMENT | PRODUCTION |
---|---|
$ grunt |
$ grunt prod |
The javascript expects JSON input with this basic structure:
{
"stories": [
{
"byline": "Billy Johnson",
"category": "Crime",
"count": 1,
"deck": "Lorem ipsum dolor sit amet",
"headline": "The quick brown fox jumps over the lazy dog",
"path": "\/foo\/permalink.html",
"published": "2014-09-16 15:48:01",
"section": "local",
"section_link": "\/foo\/",
"server": "http://site.com"
}
]
// ...
}