/angular-directive-seed

A starting point for angular directives.

Primary LanguageJavaScriptMIT LicenseMIT

Angular Directive Seed

Build Status Code Climate Test Coverage devDependency Status

Basically a clone of angular seed
We striped out things we don't use and added Grunt

Initialize

npm install

Demo !

Start the demo server with grunt demo and go to http://localhost:8000/demo/.

Make it yours

Update bower and package infos

You want to look at name, description, homepage, author, keywords, main and repository

├ bower.json
├ package.json

Remove sample dist files from

├ dist/

Do something awesome in the source files

├ src/

And reflect your source files for build and test tasks!

├ tasks/
│ ├ files.js (source and sourceStyle)

Set your module name to ngtemplates task

├ tasks/options/ngtemplates.js

Write tests

├ test/

Adjust the demo and end to end environment to your module and directive names

├ demo/
│ ├ index.html
│ ├ app.js
├ test/
│ ├ e2e/
│ │ ├ env/
│ │	│ ├ index.html
│ │ │ ├ app.js

Grunt Tasks

  • grunt: Execute tests
  • grunt coverage: Serve coverage report on port 7000
  • grunt test: Just test
  • grunt test:e2e: Just test end to end
  • grunt test:unit: Just test unit
  • grunt tdd: Watch source and test files and run tests
  • grunt tdd:e2e: Watch and test just end to end
  • grunt tdd:unit: Watch and test just unit
  • grunt build: Just build
  • grunt release: Test, build, bump patch version, commit, add version tag and push

test tasks have a --browsers option to specify the browsers you want to use test tasks have also a --reporters option to specify the reporters you want to use

Browsers can also be set by the following environment-variables

  PROTRACTOR_BROWSERS=Firefox,Chrome
  KARMA_BROWSERS=Firefox,PhantomJS

Reporters can also be set by the following environment-variables

  KARMA_REPORTERS=dots,osx
  PROTRACTOR_REPORTERS=spec

See Gruntfile.js and tasks/options for all task details.

LICENSE

The MIT License

Copyright (c) 2014 Jimdo GmbH http://jimdo.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.