#interactive-annotation-debate
Annotated debates
$ npm start
This will run npm install
to locally install Node package dependencies, then run the default grunt task which:
- Runs
grunt dev
to create a development build (see Tasks, below) - Starts up a development server in the build directory, running on http://localhost:8000
- Watches files under
src/
for changes, triggering partial development builds as required
The build tasks transform the project source in src/
into a build under build/
.
Creates a local development build of the project.
- JS in
scripts/
is linted by JSHint, then bundled by Browserify intoscripts/index.js
- Sass in
styles/
is compiled by Compass intostyles/index.css
- Templates in
templates/
are available in JS via thehbsfy
transform for browserify. - All other directories/files are copied directly across, including those directly under
src/
(such asindex.html
)
Hint: If you organise your static files into directories called images
, fonts
& data
, you'll have the benefit of proper caching by Akamai when you deploy to contentftp.
Creates a production-ready build of the project.
The build process is similar to the development build, except that scripts and styles are minified with the current version number (specified in package.json
) prepended as a comment.
Quickly deploy and/or create new releases from the commandline. See the documentation for news-deploy-project-grunt for more details.
Described above in Getting Started