The UI repo for the buddy-up realtime support FirefoxOS app
Перейти к файлу
Anthony Ricaud 55dd793c42 Version 1.0.2 2015-06-19 15:35:21 +02:00
app Version 1.0.2 2015-06-19 15:35:21 +02:00
scripts Bug 1155589 - Add MarionetteJS first test 2015-05-26 18:32:00 +02:00
.gitignore loading indicator, all time stamps now in relative time 2014-11-12 14:59:44 +02: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 loading indicator, all time stamps now in relative time 2014-11-12 14:59:44 +02:00
LICENSE initial commit 2014-10-08 16:23:37 +02:00
README.md Bug 1155589 - Add MarionetteJS first test 2015-05-26 18:32:00 +02: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 Bug 1155589 - Add MarionetteJS first test 2015-05-26 18:32:00 +02:00
volofile Removals and changes 2014-10-17 14:59:50 -04:00

README.md

buddyup-ui

The UI repo for the buddy-up realtime support FirefoxOS app

Development Workflow

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

npm install
# https://github.com/gruntjs/grunt-cli#grunt-cli-
npm install -g grunt-cli

Once the above completes, run:

grunt

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 access the app via a browser:

http://127.0.0.1:8000/app/index.html

To test on an real device, use the WebIDE built into Firefox (https://developer.mozilla.org/en-US/docs/Tools/WebIDE) NOTE: You still need to run grunt prior to launching the WebIDE.

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