Exemplo n.º 1
0
gulp.task('haml', ['clean'], function() {
  gulp.src('./app/haml/**/*.haml')
  .pipe(haml())
  .pipe(gulp.dest('./build/html'));
  gulp.src('./app/index.haml')
  .pipe(haml())
  .pipe(gulp.dest('./build'));
});
Exemplo n.º 2
0
gulp.task('haml', function() {
  gulp.src('*.haml').
  //gulp.src('./hamlのディレクトリ/**/*.haml').
       pipe(haml()).
       //..pipe(gulp.dest('./書き出したいディレクトリ'));
       pipe(gulp.dest('./haml'));
});
Exemplo n.º 3
0
gulp.task('haml', function() {
  return gulp.src('./*.haml')
             .pipe(haml({
               doubleQuote: true
             }))
             .pipe(gulp.dest('./build'));
});
gulp.task('haml', function() {
	gulp.src('components/haml/*.haml')
        .pipe(plumber())
	      .pipe(haml())
        .on('error', gutil.log)
	      .pipe(gulp.dest('builds/development/'))
	      .pipe(reload({stream: true}));
});
Exemplo n.º 5
0
gulp.task('haml', function() {
	gulp.src('./source/haml/**/*.haml')
		.pipe(haml({
            doubleQuote: true,
            encodings  : 'UTF-8'
        }).on('error', function(e) { console.log(e.message); }))
		.pipe(gulp.dest('./source/'));
});
Exemplo n.º 6
0
gulp.task('haml', function() {
  gulp.src('_haml/**/*.haml')
    .pipe(haml())
    .on('error', function (err) {
      console.log(err);
      this.emit('end');
    })
    .pipe(gulp.dest('./'));
});
Exemplo n.º 7
0
gulp.task('watch', function() {
  gulp.src(['./**/*.haml', '!./views/**/*.haml'], {read: false})
    .pipe(watch())
    .pipe(haml({doubleQuote: true}))
    .pipe(gulp.dest(paths.layouts.dest));
  gulp.watch(['./views/**/*.haml'], ['layouts:development/staging']);
  gulp.watch(['./assets/stylesheets/**/*.scss'], ['stylesheets:development']);
  gulp.watch(['./assets/stylesheets/vendor/**/*.css'], ['copy:stylesheets:vendor']);
  gulp.watch(['./assets/javascripts/**/*.js'], ['copy:javascripts']);
  gulp.watch(['./assets/images/**/*'], ['copy:images']);
  gulp.watch(['./favicon.ico', './humans.txt', './robots.txt'], ['copy:files']);
});
Exemplo n.º 8
0
gulp.task('haml', function() {
  var glob = argv.file || './*.haml'
  var dest = '.'
  gulp.src(glob).
    pipe(plumber({
      onError: onError
    })).
    pipe(haml()).
    pipe(gulp.dest(dest)).
    pipe(gcallback(function() {
        console.log("HAML DONE")
        reload()
      }))
})
Exemplo n.º 9
0
gulp.task('haml-watch', function() {
  var dest = '.'
  gulp.src('./*.haml').
    pipe(plumber({
      onError: onError
    })).
    pipe(watch('./*.haml')).
    pipe(changed(dest, {extension: '.html'})).
    pipe(haml()).
    pipe(gulp.dest(dest)).
    pipe(gcallback(function() {
        console.log("HAML DONE")
        reload()
      }))
})
Exemplo n.º 10
0
gulp.task('haml', function(){
  return gulp.src(Sources.HAML)
    .pipe(haml())
    .pipe(gulp.dest(Destinations.HTML));
});
Exemplo n.º 11
0
 gulp.task('markup', () => {
   return gulp.src(config.sources)
     .pipe(haml({doubleQuote: true})).on('error', handleError)
     .pipe(gulp.dest(config.dest));
 });
Exemplo n.º 12
0
gulp.task('layouts:development/staging', function() {
  return gulp.src(paths.layouts.src)
    .pipe(haml({doubleQuote: true}))
    .pipe(gulp.dest(paths.layouts.dest));
});
Exemplo n.º 13
0
gulp.task('haml', function() {
  return gulp.src(['src/*.haml'])
    .pipe(haml())
    .pipe(gulp.dest('build/.'));
});
gulp.task("haml", function () {
    gulp.src("./index.haml")
        .pipe(haml())
        .pipe(gulp.dest("./"));
});
Exemplo n.º 15
0
gulp.task('views', function () {
  gulp.src(paths.haml)
    .pipe(haml())
    .pipe(gulp.dest('./build'));
});
Exemplo n.º 16
0
gulp.task('process-haml', function(){
  return gulp.src('./dev/taiga.haml')
    .pipe(haml())
    .pipe(gulp.dest('./taiga/'))
});
Exemplo n.º 17
0
gulp.task('haml-watch', function() {
  gulp.src('haml/*.haml', {read: false}).
       pipe(watch()).
       pipe(haml()).
       pipe(gulp.dest('site'));
});
Exemplo n.º 18
0
gulp.task('haml', function() {
  return gulp.src(['src/haml/*.haml', 'src/haml/modules/*.haml', 'src/haml/templates/marketing/*/*.haml', 'src/haml/templates/transactional/*.haml'])
    .pipe(haml())
    .pipe(gulp.dest('build/.'));
});