Skip to content

tlee32/angular-browserify-seed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Skeleton App for Angular Apps

Setup

  1. Clone this repo
  2. Install global node modules (grunt and testem):
    sudo npm install -g grunt
    sudo npm install -g testem
  3. Download all the node modules needed for development:
    sh setup.sh
  4. To run the app locally (Note: this will also watch for changes to *.js, *.html, and *.less files in src and automatically re-build the project with the new changes):
    grunt localhost
  5. To start the test runner:
    testem
    OR
    grunt test

Testing

Testem test runner and Browserify is used to test this seed project.

Before the tests are run, browserify bundles all the files listed in tests/entry.js (which should include the source file and the test files) and all the files listed in tests/dependencies.js (which should include dependencies needed to run the tests

  • ex. angular-mocks) browserified.js. Testem then runs the tests specified in browserified.js. When you exit Testem, it will delete browserified.js.

Add test files

  1. Include all the test files you want testem to test in tests/entry.js using Browserify's require method.
  2. Use the command testem in the root of this directory to run the tests.

About

Angular browserify project skeleton. Uses grunt for its build process. Uses jasmine with Testem as its test runner.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages