-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added jshint, added jshint to gulp build and updated comments
- Loading branch information
Sarvesh Chitko
committed
Feb 26, 2019
1 parent
b7fff78
commit a794e6e
Showing
6 changed files
with
38 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"esnext":true, | ||
"node" : true, | ||
"asi":true, | ||
"predef" : [ | ||
"require" | ||
], | ||
"indent" : 2 | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
const { gulp,parallel,src,dest } = require("gulp") | ||
const minify = require("gulp-minify") | ||
const jshint = require("gulp-jshint") | ||
function combineClasses(cb){ | ||
src("src/*.class.js").pipe(minify()).pipe(dest("./dist/")) | ||
src("src/*.class.js") | ||
.pipe(jshint()) | ||
.pipe(jshint.reporter('default')) | ||
.pipe(minify()) | ||
.pipe(dest("./dist/")) | ||
cb() | ||
} | ||
function minifyMain(cb){ | ||
src("src/index.js").pipe(minify()).pipe(dest("./dist/")) | ||
src("src/index.js") | ||
.pipe(jshint()) | ||
.pipe(jshint.reporter('default')) | ||
.pipe(minify()) | ||
.pipe(dest("./dist/")) | ||
cb() | ||
} | ||
exports.default = parallel(combineClasses,minifyMain) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters