Skip to content

Latest commit

 

History

History
59 lines (49 loc) · 1.93 KB

CONTRIBUTING.md

File metadata and controls

59 lines (49 loc) · 1.93 KB

Contributing

These steps also apply to plugins.

Testing Locally

./setup.sh
BROWSER_NAME='chrome' npm test

Testing via Sauce Labs

You will need to download Sauce Connect.

TODO: Add steps for downloading Sauce Connect, i.e. https://github.com/angular/angular.js/blob/master/lib/sauce/sauce_connect_setup.sh

./setup.sh
export SAUCE_USERNAME='scribe-ci' SAUCE_ACCESS_KEY='4be9eeed-61de-4948-b18d-f7f655e9e4b0'

# Sauce Connect v3
java -jar ~/Downloads/Sauce-Connect-latest/Sauce-Connect.jar $SAUCE_USERNAME $SAUCE_ACCESS_KEY
# Sauce Connect v4
~/Downloads/sc-4.1-osx/bin/sc -u $SAUCE_USERNAME -k $SAUCE_ACCESS_KEY

# Defaults: TEST_SERVER_PORT=8080
TEST_SERVER_PORT=8080 \
RUN_IN_SAUCE_LABS=true \
BROWSER_NAME='chrome' \
BROWSER_VERSION='32' \
PLATFORM='WINDOWS' \
npm test

Releasing

  • npm install -g mversion
  • Run ./release.sh <version> where <version> is a version as understood by mversion. (If releasing a plugin, run the script inside this repository from the plugin’s directory.)
  • Update change log in master branch
  • git checkout gh-pages
  • git pull
  • Update versions of bower.json
  • bower install
  • bower prune
  • git add --update .
  • Commit using version number as the message (OR plugin version)

Conventions

  • In documentation and code, refer to nodes by their canonical node name in uppercase. E.g. P.
  • When creating variables that refer to nodes or elements, suffix them with node or element respectively. E.g. pElement or textNode.

Tools