ryanAndi / Q3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sierra Bonus Mission Q3

WIP

The build structure was based on this article.

TODO

  • Add styling - DONE
  • Add gulp watches (see above article) - DONE
  • Support unit testing - DONE
  • Support e2e testing
  • Fix gulp uglify
  • Setup ASOS mock server (see above article)

Prerequisites

Git

  • A good place to learn about setting up git is [here][git-setup].
  • You can find documentation and download git [here][git-home].

Install Dependencies

  1. Install Node.js
  2. Install bower as a global npm module: sudo npm install bower -g
  3. Install gulp as a global npm module: sudo npm install gulp -g
  4. Go to project root folder
  5. Execute: npm install
  6. Execute: bower install

Build

Development:

gulp build-app-dev

Production:

gulp build-app-prod

Unit Testing

Run once:

gulp test

Run continuously (file watching):

gulp tdd

Development mode

Watches app, builds to dist.dev and reloads browser on any change.

gulp watch-dev

Run locally

Development:

gulp serve-dev

Production:

gulp serve-prod

End-to-End Testing

TODO: Not tested yet

We recommend using [Protractor][protractor] for end-to-end (e2e) testing.

It requires a webserver that serves the application. See the Running the Application during Development section, above.

  • Serve the application with: npm start
  • In a separate terminal/command line window run the e2e tests: npm run protractor.
  • Protractor will execute the e2e test scripts against the web application itself. The project is set up to run the tests on Chrome directly. If you want to run against other browsers, you must modify the configuration at e2e-tests/protractor-conf.js.

-test ignore this

About


Languages

Language:JavaScript 79.6%Language:CSS 12.2%Language:HTML 8.2%