@@ -32,7 +32,7 @@ var paths = {
3232 output : 'dist/css/'
3333 } ,
3434 templates : {
35- twig : 'src/templates/**/*.twig' ,
35+ // twig: 'src/templates/**/*.twig',
3636 pages : 'src/templates/pages/**/*.twig' ,
3737 data : 'src/data/**/*.json' ,
3838 } ,
@@ -248,28 +248,6 @@ var buildStyles = function (done) {
248248
249249} ;
250250
251-
252-
253- // // Generate templates
254- // gulp.task('templates', function () {
255- // return gulp.src(src.html_pages)
256- // .pipe(data(function (file) {
257- // var dataPath = '../data/' + path.join(path.relative("../templates/pages", path.dirname(file.path)), path.basename(file.path, '.twig')) + '.json';
258- // return requireUncached(dataPath);
259- // }))
260- // .pipe(twig())
261- // .pipe(prettify({indent_char: ' ', indent_size: 2}))
262- // .pipe(gulp.dest('../'))
263- // .on("end", reload);
264- // });
265-
266- // paths.
267- // templates: {
268- // twig: '../templates/**/*.twig',
269- // html_pages: '../templates/pages/**/*.twig',
270- // dataJson: '../data/**/*.json',
271- // },
272-
273251// Generate html from templates and data
274252var buildTemplates = function ( done ) {
275253
@@ -289,9 +267,6 @@ var buildTemplates = function(done) {
289267 . pipe ( dest ( paths . output ) ) ;
290268} ;
291269
292-
293-
294-
295270// Optimize SVG files
296271var buildSVGs = function ( done ) {
297272
@@ -355,7 +330,6 @@ var watchSource = function (done) {
355330 */
356331
357332// Default task
358- // gulp
359333exports . default = series (
360334 cleanDist ,
361335 parallel (
@@ -369,7 +343,6 @@ exports.default = series(
369343) ;
370344
371345// Watch and reload
372- // gulp watch
373346exports . watch = series (
374347 exports . default ,
375348 startServer ,
0 commit comments