constnunjucksTaskFactory=require('@hugsmidjan/gulp-nunjucks');constoptions={// These are the defaults:name: 'nunjucks',// the display name of the generated taskssrc: 'src/',dist: 'pub/',glob: ['*.htm'],// which files to use as entry points// ext: '', // Defaults to the same extension as the entry file// data: {}, // Static data/variables to inject into the global-scope// getData: null, // () => object // Dynanic data builder// manageEnv: null, // (env: NujucksEnvironment) => void// see: https://mozilla.github.io/nunjucks/api.html#environment};// Create the gulp tasks based on the above options.constnunjucksTasks=nunjucksTaskFactory(options);// nunjucksTasks is a two item array...const[nunjucksBundle,nunjucksWatch]=nunjucksTasks;// ...but it also exposes the tasks as named properties.const{ bundle, watch }=nunjucksTasks;