Permalink
Browse files

Add linting to gulp and Makefile

  • Loading branch information...
nvh committed Nov 2, 2016
1 parent 92c9d75 commit a4e959ea6e9fa428d2398623a01023f9543f4261
Showing with 12 additions and 1 deletion.
  1. +4 −0 Makefile
  2. +7 −1 gulpfile.coffee
  3. +1 −0 package.json
View
@@ -41,6 +41,10 @@ lazy_build: ; @test -f ./build/framer.debug.js || make build
test: lazy_build
$(BIN)/gulp test
+lint: lazy_build
+ $(BIN)/gulp lint
+
+
release: lazy_bootstrap
$(BIN)/gulp webpack:release
View
@@ -8,6 +8,7 @@ rename = require("gulp-rename")
template = require("gulp-template")
gutil = require("gulp-util")
{exec} = require("child_process")
+coffeelint = require('gulp-coffeelint')
DEBUG_TARGET = process.env.TARGET ? "extras/Studio.framer"
@@ -30,7 +31,7 @@ WEBPACK =
gulp.task "watch", ["test"], ->
gulp.watch(["./*.coffee", "framer/**", "test/tests/**", "!Version.coffee"], ["test"])
-gulp.task "test", ["webpack:tests"], ->
+gulp.task "test", ["webpack:tests", "lint"], ->
return gulp
.src("test/phantomjs/index.html")
.pipe(phantomjs({
@@ -40,6 +41,11 @@ gulp.task "test", ["webpack:tests"], ->
loadImages: false
}))
+gulp.task 'lint', ->
+ gulp.src(["./framer/**","!./framer/Version.coffee.template","./test/tests/**","./test/tests.coffee","./gulpfile.coffee","scripts/site.coffee"])
+ .pipe(coffeelint())
+ .pipe(coffeelint.reporter())
+
gulp.task "version", (callback) ->
versionInfo (info) ->
View
@@ -24,6 +24,7 @@
"coverage-capture": "./test/coverage-capture",
"eventemitter3": "^1.1.1",
"gulp": "^3.8.11",
+ "gulp-coffeelint": "^0.6.0",
"gulp-mocha-phantomjs": "^0.11.0",
"gulp-plumber": "^1.0.1",
"gulp-rename": "^1.2.2",

0 comments on commit a4e959e

Please sign in to comment.