-
Notifications
You must be signed in to change notification settings - Fork 76
Contributing
Thank you for contributing to the jQuery UI Month Picker project and helping us make the plugin better for everyone!
This project uses Node.js, NPM, Grunt and Bower to facilitate development and testing.
-
Click the Fork button on the top right corner of the GitHub repo page to create a your own copy of the repo which you can push (write) to.
-
Download and install the LTS version of Node.js and run the following commands from the project directory:
-
Install dependencies required for development including Bower dependencies:
npm install
You can run the tests in any supported browser or from the terminal/command prompt.
To run the tests in a browser open the /test/test.html file in the browser you want to test/develop the plugin.
To run QUnit tests in a headless PhantomJS instance from you terminal:
Install grunt globally (might require sudo):
npm install grunt -g
cd to the project directory and run:
grunt test
Add test code to the /test/test.js file and the and necessary HTML markup to /test/test.html.
You can also wait for the automated tests to complete to visually mess around with the plugin.
Preparing for a release should be done by the person who merges the pull request.
Make sure to bump the versions in:
-
The VERSION property in the
MonthPicker.js
file. -
The license comment in the
MonthPicker.js
file. -
The version property in the
package.json
file. -
Run the QUnit tests in a headless PhantomJS instance and generate minified versions of the .js and .css sources if the tests pass:
grunt
- Add (or overwrite) all files in the
demo
folder in themaster
branch to thegh-pages
branch and push thegh-pages
branch to theorigin
remote (which is usually your fork on GitHub):
grunt gh-pages
- Create a new release on GitHub so users can install the new version from bower.