diff options
author | Sam Potts <me@sampotts.me> | 2015-10-05 02:01:43 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2015-10-05 02:01:43 +1100 |
commit | 262c9f9e13e2430de7abfc11e871fda91c32f3c1 (patch) | |
tree | 6ab6b6e481cd847456b37e370f232d06c5826b41 /gulpfile.js | |
parent | 2c4c8c58d5c4ee7f9fa8c1e508276d5d49289237 (diff) | |
download | plyr-262c9f9e13e2430de7abfc11e871fda91c32f3c1.tar.lz plyr-262c9f9e13e2430de7abfc11e871fda91c32f3c1.tar.xz plyr-262c9f9e13e2430de7abfc11e871fda91c32f3c1.zip |
Removed Hogan stuff
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/gulpfile.js b/gulpfile.js index 0cd0aab9..76862236 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -17,7 +17,6 @@ var fs = require("fs"), prefix = require("gulp-autoprefixer"), svgstore = require("gulp-svgstore"), svgmin = require("gulp-svgmin"), - hogan = require("gulp-hogan-compile"), rename = require("gulp-rename"), s3 = require("gulp-s3"), gzip = require("gulp-gzip"), @@ -43,7 +42,6 @@ paths = { src: { less: path.join(root, "docs/src/less/**/*"), js: path.join(root, "docs/src/js/**/*"), - templates: path.join(root, "docs/src/templates/*.html"), sprite: path.join(root, "docs/src/sprite/*.svg") }, // Output paths @@ -143,20 +141,6 @@ var build = { .pipe(svgstore()) .pipe(gulp.dest(paths[bundle].output)); }); - }, - templates: function() { - // Build templates - gulp.task("templates", function () { - return gulp - .src(paths.docs.src.templates) - .pipe(hogan("templates.js", { - wrapper: false, - templateName: function (file) { - return path.basename(file.relative.replace(/\\/g, "-"), path.extname(file.relative)); - } - })) - .pipe(gulp.dest(paths.docs.output)); - }); } }; @@ -167,16 +151,10 @@ build.sass(bundles.plyr.sass, "plyr"); build.sprite("plyr"); // Docs files -build.templates(); build.less(bundles.docs.less, "docs"); build.js(bundles.docs.js, "docs"); build.sprite("docs"); -// Build all JS (inc. templates) -gulp.task("js", function(){ - run("templates", tasks.js); -}); - // Build SASS (for testing, default is LESS) gulp.task("sass", function(){ run(tasks.sass); @@ -192,13 +170,12 @@ gulp.task("watch", function () { // Docs gulp.watch(paths.docs.src.js, tasks.js); gulp.watch(paths.docs.src.less, tasks.less); - gulp.watch(paths.docs.src.templates, ["js"]); gulp.watch(paths.docs.src.sprite, ["sprite-docs"]); }); // Default gulp task gulp.task("default", function(){ - run("templates", tasks.js, tasks.less, "sprite-plyr", "sprite-docs", "watch"); + run(tasks.js, tasks.less, "sprite-plyr", "sprite-docs", "watch"); }); // Publish a version to CDN and docs @@ -284,5 +261,5 @@ gulp.task("open", function () { // Do everything gulp.task("publish", function () { - run("templates", tasks.js, tasks.less, "sprite", "cdn", "docs"); + run(tasks.js, tasks.less, "sprite-plyr", "sprite-docs", "cdn", "docs"); });
\ No newline at end of file |