-
Notifications
You must be signed in to change notification settings - Fork 10
/
gulpfile.js
17 lines (14 loc) · 970 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"use strict";
const fs = require("fs");
const path = require("path");
const gulp = require("gulp");
// Pull configuration from the package.json:
// const {componentPath, componentDirectories, buildDestionation} = require('../vf-config');
// Gulp tasks live in their own files, for the sake of clarity.
// These are done as JS Modules as it makes passing parameters simpler and avoids
// needing workarounds involving global variables. It also allows more flexible reusability
// as an npm install
// Not familiar with JS Modules? Don't fret, it can be a lot like wrapping code in a function; here's
// a nice quick start: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#Exporting_module_features
// require('./gulp-tasks/_gulp_rollup.js')(gulp, path, componentPath, componentDirectories, buildDestionation);
require(path.resolve(".", __dirname + "/node_modules/@visual-framework/vf-component-generator/gulp-tasks/vf-generator.js"))(gulp, path);