BumpScout
Collect bumps
npm scripts
npm test
- test the Javascript and Polymer source (will build the Javascript bundle before running Polymer tests)npm run build
- run tests then build the Polymer appnpm run deploy
- deploy to Firebase app instance (does not build first, this should be done separately)npm start
- runspolymer serve
and watches for changes to run testsnpm run coveralls
- submits coverage data to coveralls (currently coverage data is only collected for the Javascript bundle)
After cloning add your local config to the config directory
cp -r config/production.json config/local.json
Then update the config/local.json
to your development Firebase settings
After cloning/pulling and before starting the server run the following to install bower dependencies, create config files, run tests, build etc
npm install
npm run build
During development it is recommended to run the following command to watch for changes and continually test
npm start
Contributing
See the development documentation for a guide to the project structure.
Run tests, etc before pushing and opening a pull request.
Note that the master
branch is protected so cannot be pushed to directly.
Travis-CI
To use the travis config you will need to remove the current encrypted environment variables (if present) and add your own encrypted authentication information for Firebase and SauceLabs
Install the travis
gem
gem install travis
Then run
travis encrypt FIREBASE_TOKEN=<your firebase token> --add
travis encrypt SAUCE_USERNAME=<your saucelabs username> --add
travis encrypt SAUCE_ACCESS_KEY=<your saucelabs access key> --add
You will also need to enable the project at TravisCI and Coveralls