USERNAME.makes.org
- npm
- grunt CLI
npm install -g grunt-cli - bower
npm install -g bower
git clone https://github.com/mozilla/webmaker-profile.git
cd webmaker-profile && npm installProfile uses a web service for its backend.
To run the service locally:
- Clone webmaker-profile-service into a new location (most likely parallel to webmaker-profile)
cdinto thewebmaker-profile-servicedirectory- Run
node app.js
- grunt - Recompiles Jade and Less as needed for dev. Runs a server at localhost:8000.
- grunt build - Compiles Jade, Less and JS for production and run JSHint.
- grunt clean - Runs JSHint and beautifies JS to comply with our contribution guidelines.
There are two index HTML files that are generated from index.jade. For development you'll generally run index.dev.html, which has uncompiled JS for easier debugging. It also uses a version of the compiled LESS that has inline source annotations for debugging purposes.
The other index, index.html, is used for the production version of the app. It includes concatenated and minified versions of the app's JS and CSS.
https://github.com/mozilla/webmaker-profile/wiki/Localization
Use the nodejs-grunt buildpack:
heroku create {yourname-profile} --buildpack https://github.com/mbuchetics/heroku-buildpack-nodejs-grunt
git push heroku masterYou can always set the buildpack config variable separately:
heroku config:add BUILDPACK_URL=https://github.com/mbuchetics/heroku-buildpack-nodejs-grunt.gitIf you want to push up a branch other than master
git push heroku branchname:master