Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contributing: add grunt command for tests [ci-skip] #2700

Merged
merged 3 commits into from
Oct 16, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,16 +175,19 @@ license your work under the [MIT License](http://en.wikipedia.org/wiki/MIT_Licen
4. Don't manually update the version number in `package.json`. This is done using a Grunt task on deployment.

<a name="grunt"></a>
#### Using CoffeeScript and Grunt
#### Grunt tasks: Running Tests and building Chosen


To install all development dependencies, in the project's root directory, run

npm install

Once you're configured, building the JavaScript from the command line is easy:
Once you're configured, `grunt` tasks are available:

grunt test # run the tests in spec/

grunt build # build Chosen from source

grunt watch # watch coffee/ for changes and build Chosen

If you're interested, you can find the task in [Gruntfile.coffee](https://github.com/harvesthq/chosen/blob/master/Gruntfile.coffee).