/webmaker-landing-pages

Webmaker landing pages, built with Grunt and Metalsmith.

Primary LanguageJavaScriptMozilla Public License 2.0MPL-2.0

Webmaker Landing Pages Build Status

TL;DR

  1. git clone https://github.com/mozilla/webmaker-landing-pages/
  2. cd webmaker-landing-pages
  3. npm install
  4. cp env.dist .env
  5. grunt dev (this will build the site & launch the local server on port 9006)

Dev Dependencies

  • Node.js >= 0.10.0 & npm
  • bower (via npm install -g bower)
  • grunt (via npm install -g grunt-cli)
  • Webmaker Login Server

Development

  • npm install && cp env.dist .env
  • Launch login.webmaker.org
  • To run server: grunt dev (launch browser, http://localhost:9006/)
  • Lint before committing. Read-only with grunt validate, or take your chances on grunt.

Grunt Tasks

  • grunt Cleans and verifies code.
  • grunt validate Read-only version of above.
  • grunt build Builds the static site in /build/.
  • grunt dev Builds the site into a temp directory, watches the folder, and launches the server.

To Deploy

Travis takes care of that ;)

Deploying relies on parallel deploys that both live behind the same CloudFront distribution. One is the express server that runs here on your local dev, the other is to an S3 bucket hosting the static pages (the result of grunt build).

TODO, a potentially incomplete list (see bugzilla [landingpages][techdebt])