Permalink
Browse files

Add jscs and jshint

To run locally:
  * `npm install`
  * `npm test`

They're configured to run automatically in travis.
  • Loading branch information...
1 parent d74e4f1 commit c0fb23a0f5de063193e64874fa2ad3d615212df6 @nikolas nikolas committed with nikolas Apr 12, 2015
Showing with 26 additions and 4 deletions.
  1. +1 −0 .gitignore
  2. +9 −0 .jscsrc
  3. +5 −0 .travis.yml
  4. +11 −4 package.json
View
@@ -6,3 +6,4 @@ dist/dist-build/
shrinktest.sh
tests/layers/allplugins-require.js
tests/packages/optimizing/built/
+node_modules/
View
@@ -0,0 +1,9 @@
+{
+ "preset": "google",
+ "validateIndentation": 4,
+ "excludeFiles": [
+ "dist/**",
+ "node_modules/**",
+ "tests/**"
+ ]
+}
View
@@ -0,0 +1,5 @@
+language: node_js
+node_js:
+ - "0.12"
+ - "0.11"
+ - "0.10"
View
@@ -1,6 +1,13 @@
{
- "volo": {
- "url": "https://raw.github.com/jrburke/requirejs/{version}/require.js"
- },
- "main": "require.js"
+ "volo": {
+ "url": "https://raw.github.com/jrburke/requirejs/{version}/require.js"
+ },
+ "main": "require.js",
+ "scripts": {
+ "pretest": "jscs . && jshint require.js"
+ },
+ "devDependencies": {
+ "jscs": "^1.12.0",
+ "jshint": "^2.7.0"
+ }
}

0 comments on commit c0fb23a

Please sign in to comment.