protractor-styleguide icon indicating copy to clipboard operation
protractor-styleguide copied to clipboard

Remove unnecessary tasks from the Gruntfile and update package.json accordingly

Open CarmenPopoviciu opened this issue 9 years ago • 0 comments

I'm currently using the Gruntfile provided by the Yeoman generator, but looking at all the tasks in there, I think it is overly complicated for what this project needs.

I would like to simplify it and strip out the unnecessary tasks to only those we need to run the examples.

Running the examples means two things:

  1. Serving the example apps
  2. Running the protractor tests of the example apps

Serving the example apps

For serving the example apps I would simply use live-server and just serve the whole examples folder. This will be much more intuitive and easier for users to browse around through the examples.

This means that each example should become a separate angular app, with its own proper index.html file. It also means that we can get rid of the current 'protractorGuidelinesApp' app and remove the corresponding files: index.html, examples.js, examples.css

Running the protractor tests of the example apps

It should be possible to run all tests of all example apps with one task. In the future we could parameterise the task to be able to run particular suites, aka. tests of a single example app. But, one step at a time ;). I think grunt-protractor-coverage would do just fine.

Once all this is in place, package.json can be updated accordingly

CarmenPopoviciu avatar Oct 06 '15 19:10 CarmenPopoviciu