Created
September 15, 2018 16:25
-
-
Save mabel/5c5f98906cc44db08f12239f42321ef3 to your computer and use it in GitHub Desktop.
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
var gulp = require('gulp') | |
var pug = require('gulp-pug') | |
var stylus = require('gulp-stylus') | |
var coffee = require('gulp-coffee') | |
gulp.task('css', function() { | |
gulp.src('index.styl') | |
.pipe(stylus()) | |
.pipe(gulp.dest('../public/css')) | |
}) | |
gulp.task('html', function() { | |
var YOUR_LOCALS = { | |
title: 'Виртуальная аудитория', | |
description: 'JavaScript: online-занятия', | |
requireConfig: 'js/index', | |
} | |
gulp.src('index.pug') | |
.pipe(pug({locals: YOUR_LOCALS})) | |
.pipe(gulp.dest('../public')) | |
}) | |
gulp.task('js', function() { | |
gulp.src('*.coffee') | |
.pipe(coffee()) | |
.pipe(gulp.dest('../public/js')) | |
}) | |
gulp.task('default', ['css', 'js', 'html']) | |
//http://sprunge.us/oKuhDg | |
//http://sprunge.us/NCh4hL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment