Skip to content

Commit 05f4973

Browse files
author
Dipu Raj
committed
Test settings updates and Contributing Guide
1 parent 69bed81 commit 05f4973

File tree

3 files changed

+103
-66
lines changed

3 files changed

+103
-66
lines changed

CONTRIBUTING.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Contributing
2+
3+
## What can I contribute?
4+
- Fix a bug you found or already reported on the [GitHub Issues Tracker](https://github.com/techlab/SmartWizard/issues/).
5+
- Add new features to the project.
6+
- Add new test cases.
7+
- Add documentation
8+
- Add a demo page
9+
- [Donate](https://www.paypal.me/dipuraj) money for the project on [Paypal](https://www.paypal.me/dipuraj)
10+
11+
## How to contribute code
12+
Here are the basic steps to get started contributing:
13+
14+
1. Fork the [repo](https://github.com/techlab/SmartWizard/) and get development running on your computer.
15+
2. Replicate the issue you're trying to fix or spec out the feature you're trying to add.
16+
3. Change the code to fix the bug or add the feature. All changes should happen in the relevant `src/js/*.js` and `src/css/*.css` files.
17+
4. Build the code by running `npm run build` or `gulp build`
18+
5. Run the test cases by running `npm test` or `gulp test`, you can also add more test cases based on your new change.
19+
6. Verify that your fix or feature works.
20+
7. Commit your changes with an informative description
21+
8. Open a pull request to the [repo](https://github.com/techlab/SmartWizard/) with your new commit and a descriptive message about what the PR does.
22+
23+
## Reporting bugs
24+
### Make sure it is a bug related to this project
25+
Before reporting the bug, please make sure that the bug is in the project and not from your own code or any other library used.
26+
27+
### Try the latest version
28+
Bugs in the older versions of the project may have already been fixed.
29+
In order to avoid reporting known issues, make sure you are always testing against the latest release.
30+
Also make sure the problem hasn't already been reported on the [GitHub Issues Tracker](https://github.com/techlab/SmartWizard/issues/).
31+
If not, create a new issue there and include your test case.
32+
33+
### Notes for pull request
34+
- Follow the same code style as the library.
35+
- Run the test suites in the `test` directory first by running `npm test` or `gulp test`.
36+
- Don't modify any files in the `dist` directory.

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = function(config) {
4040
// test results reporter to use
4141
// possible values: 'dots', 'progress'
4242
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
43-
reporters: ['progress'],
43+
reporters: ['spec'],
4444

4545

4646
// web server port

package.json

Lines changed: 66 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,68 @@
11
{
2-
"name": "smartwizard",
3-
"version": "v4.2.1",
4-
"author": "Dipu Raj <hello@techlaboratory.net>",
5-
"description": "The awesome jQuery step wizard plugin with Bootstrap support",
6-
"homepage": "http://techlaboratory.net/smartwizard",
7-
"license": "MIT",
8-
"contributors": [
9-
{
10-
"name": "Dipu Raj",
11-
"email": "hello@techlaboratory.net"
12-
}
13-
],
14-
"main": "./js/jquery.smartWizard.js",
15-
"style": "./css/smart_wizard.css",
16-
"repository": {
17-
"type": "git",
18-
"url": "https://github.com/techlab/SmartWizard.git"
19-
},
20-
"bugs": {
21-
"url": "https://github.com/techlab/SmartWizard/issues"
22-
},
23-
"keywords": [
24-
"bootstrap",
25-
"wizard",
26-
"step",
27-
"ui",
28-
"jquery-plugin",
29-
"tabs",
30-
"jquery"
31-
],
32-
"scripts": {
33-
"start": "",
34-
"test": "./node_modules/.bin/karma start --single-run --browsers PhantomJS",
35-
"build": "gulp",
36-
"clean": "gulp clean",
37-
"lint": "gulp lint"
38-
},
39-
"dependencies": {
40-
"jquery": ">=1.9.0",
41-
"bootstrap": ">=3.0.0"
42-
},
43-
"devDependencies": {
44-
"autoprefixer": "^6.7.7",
45-
"del": "^2.2.2",
46-
"gulp": "^3.9.1",
47-
"gulp-babel": "^6.1.2",
48-
"gulp-clean-css": "^3.0.4",
49-
"gulp-cssbeautify": "^0.1.3",
50-
"gulp-jasmine": "^2.4.2",
51-
"gulp-jshint": "^2.0.4",
52-
"gulp-karma": "0.0.5",
53-
"gulp-postcss": "^6.4.0",
54-
"gulp-rename": "^1.2.2",
55-
"gulp-uglify": "^2.1.1",
56-
"jasmine-core": "^2.5.2",
57-
"jasmine-jquery": "^2.1.1",
58-
"jshint": "^2.9.4",
59-
"karma": "^1.5.0",
60-
"karma-chrome-launcher": "^2.0.0",
61-
"karma-cli": "^1.0.1",
62-
"karma-jasmine": "^1.1.0",
63-
"karma-jasmine-html-reporter": "^0.2.2",
64-
"karma-jasmine-jquery": "^0.1.1",
65-
"karma-phantomjs-launcher": "^1.0.4"
2+
"name": "smartwizard",
3+
"version": "v4.2.1",
4+
"author": "Dipu Raj <hello@techlaboratory.net>",
5+
"description": "The awesome jQuery step wizard plugin with Bootstrap support",
6+
"homepage": "http://techlaboratory.net/smartwizard",
7+
"license": "MIT",
8+
"contributors": [
9+
{
10+
"name": "Dipu Raj",
11+
"email": "hello@techlaboratory.net"
6612
}
67-
}
13+
],
14+
"main": "./js/jquery.smartWizard.js",
15+
"style": "./css/smart_wizard.css",
16+
"repository": {
17+
"type": "git",
18+
"url": "https://github.com/techlab/SmartWizard.git"
19+
},
20+
"bugs": {
21+
"url": "https://github.com/techlab/SmartWizard/issues"
22+
},
23+
"keywords": [
24+
"bootstrap",
25+
"wizard",
26+
"step",
27+
"ui",
28+
"jquery-plugin",
29+
"tabs",
30+
"jquery"
31+
],
32+
"scripts": {
33+
"start": "",
34+
"test": "./node_modules/.bin/karma start --single-run --browsers PhantomJS",
35+
"build": "gulp",
36+
"clean": "gulp clean",
37+
"lint": "gulp lint"
38+
},
39+
"dependencies": {
40+
"jquery": ">=1.9.0",
41+
"bootstrap": ">=3.0.0"
42+
},
43+
"devDependencies": {
44+
"autoprefixer": "^6.7.7",
45+
"del": "^2.2.2",
46+
"gulp": "^3.9.1",
47+
"gulp-babel": "^6.1.2",
48+
"gulp-clean-css": "^3.0.4",
49+
"gulp-cssbeautify": "^0.1.3",
50+
"gulp-jasmine": "^2.4.2",
51+
"gulp-jshint": "^2.0.4",
52+
"gulp-karma": "0.0.5",
53+
"gulp-postcss": "^6.4.0",
54+
"gulp-rename": "^1.2.2",
55+
"gulp-uglify": "^2.1.1",
56+
"jasmine-core": "^2.5.2",
57+
"jasmine-jquery": "^2.1.1",
58+
"jshint": "^2.9.4",
59+
"karma": "^1.5.0",
60+
"karma-chrome-launcher": "^2.0.0",
61+
"karma-cli": "^1.0.1",
62+
"karma-jasmine": "^1.1.0",
63+
"karma-jasmine-html-reporter": "^0.2.2",
64+
"karma-jasmine-jquery": "^0.1.1",
65+
"karma-phantomjs-launcher": "^1.0.4",
66+
"karma-spec-reporter": "0.0.31"
67+
}
68+
}

0 commit comments

Comments
 (0)