This is a repository for all web components built for the Net-A-Porter website.
Install Node/NPM if you don't already have it. Install Bower
Install Grunt, or just use the version from node_modules
Run:
npm install -g web-component-tester
npm install
bower install
If you have issues installing try:
$ git config url."https://".insteadOf git://
grunt
or ./node_modules/grunt_cli/bin/grunt
This runs the Vulcanize process and generates a minified and inlined version of your components. You should run this before committing new code.
Run ./test.sh
to test your components. This runs against Chrome, Firefox, Safari and IE using Sauce Labs.
When writing new tests, either follow the examples already in the repo, or refer to the Polymer docs on unit testing.