Files
roll20-character-sheets-tester/Ironsworn/src/gulpfile.js
T
2021-03-25 01:11:32 +00:00

25 lines
643 B
JavaScript

const pug = require('gulp-pug')
const stylus = require('gulp-stylus')
const gulp = require('gulp')
gulp.task('css', () => {
return gulp.src('./app/Ironsworn.styl')
.pipe(stylus())
.pipe(gulp.dest('../'))
})
gulp.task('html', () => {
return gulp.src('./app/Ironsworn.pug')
.pipe(pug({
pretty: true,
locals: require('../translation.json')
}))
.pipe(gulp.dest('../'))
})
gulp.task('watch', gulp.series(['css', 'html'], () => {
gulp.watch('./app/**/*.styl', gulp.series(['css']))
gulp.watch(['./app/**/*.pug','./app/**/*.js'], gulp.series(['html']))
}))
gulp.task('build', gulp.series(['css','html']))