xrecipe-jade

Jade task for gulp - easy one

Usage no npm install needed!

<script type="module">
  import xrecipeJade from 'https://cdn.skypack.dev/xrecipe-jade';
</script>

README

xrecipe-jade

Jade task for gulp - easy one

Installation

Simply install it with NPM

npm install xrecipe-jade --save-dev

Usage Example

var path = require('path');
var jadeTask = require('xrecipe-jade');
var jadeTaskConfig = {
  sourcePath: 'front/main.jade',
  destinationPath: 'back/views/',
  destinationName: 'index.html',
  dataFile: path.resolve(__dirname, 'front/data.json'),
  watchPattern: 'front/**/*.+(jade|json)'
};

gulp.task('jade', jadeTask.create(jadeTaskConfig));
gulp.task('jade:watch', ['jade'], jadeTask.create(jadeTaskConfig, true));