The UI repo for the buddy-up realtime support FirefoxOS app
Перейти к файлу
Mike Cooper 1b80c387a5 Merge pull request #195 from rehandalal/version-bump
Bump version to 2.0.0
2015-11-10 11:44:59 -08:00
app Bump version to 2.0.0 2015-11-10 14:43:51 -05:00
scripts Bug 1155589 - Add MarionetteJS first test 2015-05-26 18:32:00 +02:00
tasks Fix type in extract task. 2015-10-06 14:05:04 -07:00
.gitignore Improve Grunt workflow and documentation. 2015-08-19 12:45:31 -07:00
.jshintignore Boxes should be scrollable 2014-10-24 15:08:26 +02:00
.travis.yml Run jshint in Travis 2015-02-24 03:15:20 -08:00
Gruntfile.js [Bug 1201151] Mark html strings in templates as safe. 2015-09-02 10:44:49 -07:00
LICENSE initial commit 2014-10-08 16:23:37 +02:00
README.md Improve Grunt workflow and documentation. 2015-08-19 12:45:31 -07:00
contribute.json adding contribute file 2014-10-22 14:32:18 -07:00
metadata.json Bug 1148634 - Include a metadata.json file in the repo. r=Rik 2015-03-29 21:15:52 +02:00
package.json Improve Grunt workflow and documentation. 2015-08-19 12:45:31 -07:00
volofile Removals and changes 2014-10-17 14:59:50 -04:00

README.md

buddyup-ui

Real-time Firefox OS Support

Development Workflow

First, let's install the required dependencies. From the command line, run:

$ npm install

Once the above completes, run:

$ node_modules/.bin/grunt dev

This will precompile the nunjucks templates, start up the server, and start watching for changes to either app.js or any of the templates in app/views/. If any of the templates changes, it will auto-reload them.

To reduce the amount of typing you have to do, you may consider putting the node_modules/.bin directory on your PATH. Then you can simply use grunt dev instead of specifying the full path.

To access the app via a browser, open http://127.0.0.1:8000/app/index.html. To test on an real device, use the WebIDE built into Firefox.

You still need to run grunt prior to launching the WebIDE.

Localization

Localizations are not included by default, but are pulled from Verbatim via Sumo. To download the translations, run

$ node_modules/.bin/grunt get_localization

If all goes well, you should have one js file in app/translations/ for each supported locale. For example, the French localizations would be stored in app/translations/fr.js.

Tests

Unit

To run unit tests, we use the Gaia infrastructure.

You need to fetch Gaia and run the test server:

$ ./scripts/fetch-gaia.sh
$ ./scripts/run-unit-test-server.sh

And in another shell:

$ ./scripts/run-unit-tests.sh

Integration

You need to follow the same procedure as for unit tests.

$ ./scripts/fetch-gaia.sh
$ ./scripts/run-integration-tests-server.sh

And in another shell,

$ ./scripts/run-integration-tests.sh