-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpconfig.js
85 lines (77 loc) · 1.86 KB
/
gulpconfig.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
(() => {
"use strict";
const argv = require("yargs").argv;
const distFolder = "./dist/";
const srcFolder = {
"main": "./src/",
"js": "./src/js/",
"css": "./src/css/",
"node": "./src/node/",
"fonts": "./src/fonts/",
"images": "./src/images/"
};
let dist = {
"main": distFolder,
"js": distFolder + "script.min.js",
"specs": "./tmp/specs/",
"template": "./tmp/templates/",
"css": distFolder + "style.min.css",
"node": "./",
"fonts": "./public/fonts/",
"images": "./public/images/",
"inject": "./index.html",
"module": "modwatchuploader"
};
let src = {
"js": [
srcFolder.js + "*.module.js",
srcFolder.js + "**/*.module.js",
srcFolder.js + "*.js",
srcFolder.js + "**/*.js"
],
"browserify": srcFolder.js + "modwatchuploader.module.js",
"specs": srcFolder.js + "**/_tests/*Spec.js",
"template": [
srcFolder.js + "*.template.html",
srcFolder.js + "**/*.template.html"
],
"css": [
srcFolder.css + "*.css",
srcFolder.css + "**/*.css"
],
"node": [
srcFolder.node + "*.js"
],
"fonts": [
srcFolder.fonts + "*.*"
],
"images": [
srcFolder.images + "*.*"
]
};
let deploy = {
platform: argv.platform || "win32",
arch: argv.arch || "ia32",
version: argv.version || "0.33.7",
ignore: [
"node_modules",
"gulpfile.js",
"tasks",
"gulpconfig.js",
"legacy",
"src",
"bower_components",
"deploy",
"ModwatchUploader-win32-ia32",
"dist/script.min.js.map"
]
};
const electronModules = "var ipc = require(\"ipc\");var clipboard = require(\"clipboard\");var shell = require(\"shell\");";
module.exports = {
dist: dist,
src: src,
srcFolder: srcFolder,
deploy: deploy,
electronModules: electronModules
};
})();