Skip to content

Commit c0fb23a

Browse files
committed
Add jscs and jshint
To run locally: * `npm install` * `npm test` They're configured to run automatically in travis.
1 parent d74e4f1 commit c0fb23a

File tree

4 files changed

+26
-4
lines changed

4 files changed

+26
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ dist/dist-build/
66
shrinktest.sh
77
tests/layers/allplugins-require.js
88
tests/packages/optimizing/built/
9+
node_modules/

.jscsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"preset": "google",
3+
"validateIndentation": 4,
4+
"excludeFiles": [
5+
"dist/**",
6+
"node_modules/**",
7+
"tests/**"
8+
]
9+
}

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
language: node_js
2+
node_js:
3+
- "0.12"
4+
- "0.11"
5+
- "0.10"

package.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
{
2-
"volo": {
3-
"url": "https://raw.github.com/jrburke/requirejs/{version}/require.js"
4-
},
5-
"main": "require.js"
2+
"volo": {
3+
"url": "https://raw.github.com/jrburke/requirejs/{version}/require.js"
4+
},
5+
"main": "require.js",
6+
"scripts": {
7+
"pretest": "jscs . && jshint require.js"
8+
},
9+
"devDependencies": {
10+
"jscs": "^1.12.0",
11+
"jshint": "^2.7.0"
12+
}
613
}

0 commit comments

Comments
 (0)