Permalink
Browse files

jshint task

  • Loading branch information...
1 parent f8b76f4 commit 0f123ca147625e27a38fdd7b503632d0270b758f @oriSomething oriSomething committed Aug 29, 2014
Showing with 79 additions and 64 deletions.
  1. +16 −13 .jshintrc
  2. +13 −4 gulpfile.js
  3. +50 −47 package.json
View
@@ -1,15 +1,18 @@
{
- "boss": true,
- "curly": true,
- "eqeqeq": true,
- "eqnull": true,
- "expr": true,
- "immed": true,
- "noarg": true,
- "onevar": true,
- "quotmark": "double",
- "smarttabs": true,
- "trailing": true,
- "undef": true,
- "unused": true
+ "boss": true,
+ "browser": true,
+ "curly": true,
+ "esnext": true,
+ "eqeqeq": true,
+ "eqnull": true,
+ "expr": true,
+ "immed": true,
+ "jquery": true,
+ "noarg": true,
+ "onevar": true,
+ "quotmark": "double",
+ "smarttabs": true,
+ "trailing": true,
+ "undef": true,
+ "unused": true
}
View
@@ -8,12 +8,21 @@ var gulp = require( "gulp" ),
gulp.task( "styles", function() {
return gulp.src( "src/css/style.css" )
.pipe( $.autoprefixer( "last 2 version" ) )
- .on( "error", function( e ) {
- console.error( e );
- })
+ .on( "error", function( e ) {
+ console.error( e );
+ })
.pipe( gulp.dest( "src" ) );
});
+/** JSHint */
+gulp.task( "jshint", function () {
+ /** Test all `js` files exclude those in the `lib` folder */
+ return gulp.src( "src/js/{!(lib)/*.js,*.js}" )
+ .pipe($.jshint())
+ .pipe($.jshint.reporter( "jshint-stylish" ))
+ .pipe($.jshint.reporter( "fail" ));
+});
+
/** Livereload */
gulp.task( "watch", [ "styles" ], function() {
var server = $.livereload();
@@ -30,4 +39,4 @@ gulp.task( "watch", [ "styles" ], function() {
/** Watch for autoprefix */
gulp.watch( "src/css/*.css", [ "styles" ] );
-});
+});
View
@@ -1,49 +1,52 @@
{
- "name": "HTML5Blank",
- "description": "Powerful shell for rapidly deploying your WordPress projects",
- "license": "MIT",
- "version": "1.5.0",
- "repository": {
- "type": "git",
- "url": "https://github.com/toddmotto/html5blank.git"
- },
- "author": "Todd Motto",
- "contributors": [
- { "name": "toddmotto", "url": "https://github.com/toddmotto" },
- { "name": "J-Rabe", "url": "https://github.com/J-Rabe" },
- { "name": "scottaohara", "url": "https://github.com/scottaohara" },
- { "name": "Munnday", "url": "https://github.com/Munnday" },
- { "name": "FreDeRoover", "url": "https://github.com/FreDeRoover" },
- { "name": "beat84", "url": "https://github.com/beat84" },
- { "name": "floq-design", "url": "https://github.com/floq-design" },
- { "name": "georgestephanis", "url": "https://github.com/georgestephanis" },
- { "name": "oriSomething", "url": "https://github.com/oriSomething" },
- { "name": "itsduc", "url": "https://github.com/itsduc" },
- { "name": "alorence", "url": "https://github.com/alorence" },
- { "name": "elkebirmed", "url": "https://github.com/elkebirmed" },
- { "name": "lregla", "url": "https://github.com/lregla" },
- { "name": "staceycordoni", "url": "https://github.com/staceycordoni" },
- { "name": "cle-ment", "url": "https://github.com/cle-ment" },
- { "name": "fxbenard", "url": "https://github.com/fxbenard" },
- { "name": "CoeusCC", "url": "https://github.com/CoeusCC" },
- { "name": "ssteinerx", "url": "https://github.com/ssteinerx" },
- { "name": "matchboxhq", "url": "https://github.com/matchboxhq" },
- { "name": "chrisdl", "url": "https://github.com/chrisdl" },
- { "name": "toxicdog", "url": "https://github.com/toxicdog" },
- { "name": "grischka", "url": "https://github.com/grischka" },
- { "name": "fanuneza", "url": "https://github.com/fanuneza" },
- { "name": "anthonycreek", "url": "https://github.com/anthonycreek" },
- { "name": "Grsmto", "url": "https://github.com/Grsmto" },
- { "name": "weslleih", "url": "https://github.com/weslleih" }
- ],
- "dependencies": {},
- "devDependencies": {
- "gulp": "^3.6.0",
- "gulp-load-plugins": "^0.5.0",
- "gulp-autoprefixer": "^0.0.7",
- "gulp-livereload": "^1.2.0"
- },
- "engines": {
- "node": ">=0.10.0"
- }
+ "name": "HTML5Blank",
+ "description": "Powerful shell for rapidly deploying your WordPress projects",
+ "license": "MIT",
+ "version": "1.5.0",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/toddmotto/html5blank.git"
+ },
+ "author": "Todd Motto",
+ "contributors": [
+ { "name": "toddmotto", "url": "https://github.com/toddmotto" },
+ { "name": "J-Rabe", "url": "https://github.com/J-Rabe" },
+ { "name": "scottaohara", "url": "https://github.com/scottaohara" },
+ { "name": "Munnday", "url": "https://github.com/Munnday" },
+ { "name": "FreDeRoover", "url": "https://github.com/FreDeRoover" },
+ { "name": "beat84", "url": "https://github.com/beat84" },
+ { "name": "floq-design", "url": "https://github.com/floq-design" },
+ { "name": "georgestephanis", "url": "https://github.com/georgestephanis" },
+ { "name": "oriSomething", "url": "https://github.com/oriSomething" },
+ { "name": "itsduc", "url": "https://github.com/itsduc" },
+ { "name": "alorence", "url": "https://github.com/alorence" },
+ { "name": "elkebirmed", "url": "https://github.com/elkebirmed" },
+ { "name": "lregla", "url": "https://github.com/lregla" },
+ { "name": "staceycordoni", "url": "https://github.com/staceycordoni" },
+ { "name": "cle-ment", "url": "https://github.com/cle-ment" },
+ { "name": "fxbenard", "url": "https://github.com/fxbenard" },
+ { "name": "CoeusCC", "url": "https://github.com/CoeusCC" },
+ { "name": "ssteinerx", "url": "https://github.com/ssteinerx" },
+ { "name": "matchboxhq", "url": "https://github.com/matchboxhq" },
+ { "name": "chrisdl", "url": "https://github.com/chrisdl" },
+ { "name": "toxicdog", "url": "https://github.com/toxicdog" },
+ { "name": "grischka", "url": "https://github.com/grischka" },
+ { "name": "fanuneza", "url": "https://github.com/fanuneza" },
+ { "name": "anthonycreek", "url": "https://github.com/anthonycreek" },
+ { "name": "Grsmto", "url": "https://github.com/Grsmto" },
+ { "name": "weslleih", "url": "https://github.com/weslleih" }
+ ],
+ "dependencies": {},
+ "devDependencies": {
+ "gulp": "^3.6.0",
+ "gulp-autoprefixer": "^0.0.7",
+ "gulp-jshint": "^1.8.4",
+ "gulp-livereload": "^1.2.0",
+ "gulp-load-plugins": "^0.5.0",
+ "gulp-uglify": "^1.0.0",
+ "jshint-stylish": "^0.4.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
}

0 comments on commit 0f123ca

Please sign in to comment.