-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgulpfile.js
27 lines (23 loc) · 838 Bytes
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const gulp = require("gulp");
const gtw = require("gulp-tw");
const author = "FSpark";
const pluginName = "TW5-CSE";
const sources = {
sass: "./src/**/*.scss",
tiddlers: "./src/**/*.tid",
javascript: ['./src/**/*.js', '!./src/override/**/*.js'],
originCopy: ["./src/override/**/*.js", "./src/**/*.json", "./src/**/*.md", "./src/**/*.meta", "!./src/**/*.js.meta"],
pluginInfo: "./src/plugin.info",
metaBundle: ' ',
output: `./plugins/${author}/${pluginName}`,
};
const gulpTw = gtw({
author, pluginName, sources,
serveOptions: ['port=8087', 'root-tiddler=$:/plugins/FSpark/TW5-CSE/boot/entry.tid']
});
// ==================================================
// ====================== TASKS =====================
// ==================================================
module.exports = {
...gulpTw
};