This repository has been archived by the owner on Jun 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91b5a58
commit 9e91194
Showing
16 changed files
with
81 additions
and
38 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
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
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,15 +1,15 @@ | ||
{ | ||
"name": "modern-web-dev-build", | ||
"description": "Modern Web Development Build.", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"author": { | ||
"name": "Sebastien Dubois", | ||
"email": "[email protected]", | ||
"url": "https://www.dsebastien.net/" | ||
}, | ||
"contributors": [ | ||
], | ||
"homepage": "http://www.dsebastien.net", | ||
"homepage": "https://www.dsebastien.net", | ||
"private": false, | ||
"license": "MIT", | ||
"bugs": "https://github.com/dsebastien/modernWebDevBuild/issues", | ||
|
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
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
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,33 @@ | ||
"use strict"; | ||
|
||
import AbstractTaskLoader from "../abstractTaskLoader"; | ||
//import config from "../config"; | ||
//import utils from "../utils"; | ||
|
||
import browserSync from "browser-sync"; | ||
|
||
class ScriptsJavaScriptToES5TaskLoader extends AbstractTaskLoader { | ||
registerTask(gulp){ | ||
super.registerTask(gulp); | ||
|
||
let runSequence = require("run-sequence"); | ||
|
||
runSequence = runSequence.use(gulp); // needed to bind to the correct gulp object (alternative is to pass gulp to runSequence as first argument) | ||
|
||
gulp.task("scripts-javascript-to-es5", "Transpile JavaScript to ES5 and reload the browser (this task should only be called during serve)", () =>{ | ||
runSequence("prepare-scripts-javascript-to-es5", browserSync.reload); // here we need to ensure that all the other tasks are done before we ask BrowserSync to reload | ||
}); | ||
|
||
gulp.task("prepare-scripts-javascript-to-es5", "Transpile JavaScript to ES5 and generate sourcemaps", [ | ||
"check-js-style", | ||
"check-js-quality" | ||
], (callback) =>{ | ||
return runSequence( | ||
"scripts-javascript", | ||
[], | ||
callback); | ||
}); | ||
} | ||
} | ||
|
||
export default new ScriptsJavaScriptToES5TaskLoader(); |
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
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
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 |
---|---|---|
|
@@ -51,4 +51,4 @@ class TasksLoader { | |
} | ||
} | ||
|
||
module.exports = new TasksLoader(); | ||
export default new TasksLoader(); |