Skip to content

jjmr/watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

watcher

The best project ever.

Documentation

Project build

The project is managed using Grunt Task Runner.

For a list of available task, type

grunt --help

The following sections show the available options in detail.

Unit Test

Mocha + chai.

Both chai.expect and chai.should() are available globally while executing tests For performing unit test, type

grunt test

Coding guidelines

In order to check the source coding style use the following commands:

#run against jshint using the provided .jshintrc file
grunt jshint
#run against Google Closure Linter using the provided .gjslintrc flag file
#python is needed in order to have this working
grunt gjslint

Continuous testing

Support for continuous testing by modifying a src file or a test

For continuous testing, type

grunt watch

Source Code documentation

dox-foundation

Generates HTML documentation in doc/ directory For compiling source code documentation, type

grunt doc

Code Coverage

Istanbul

Generates HTML coverage in coverage/ directory It generates a coverage/cobertura-coverage.xml file compatible with jenkins cobertura plugin For analyzing the code coverage of your test, type

grunt coverage

Code complexity

Analizes code complexity using plato. Stores code complexity report under report/ directory For complexity report, type

grunt complexity

PLC

Update the contributors for the project

grunt contributors

Development environment

Initialize your environment with git hooks

grunt init-dev-env

Site generation

There is a grunt task to generate the GitHub pages of the project, publishing also coverage, complexity and JSDocs pages. In order to initialize the GitHub pages, use:

grunt init-pages

This will also create a site folder under the root of your repository. This site folder is detached from your repository's history, and associated to the gh-pages branch, created for publishing. This initialization action should be done only once in the project history. Once the site has been initialized, publish with the following command:

grunt site

This command will only work after the developer has executed init-dev-env (that's the goal that will create the detached site).

This command will also launch the coverage, doc and complexity task (see in the above sections).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published