UNPKG

1.29 kBPlain TextView Raw
1const tools = require("@pendulum/gulp-tools");
2
3// Change these according to the development environment
4const devHost = "https://wvalleyfiber.dev";
5const devServerPath = "../wvalleyfiber";
6// WARNING: Everything in dev. deploy path may be overwritten ***************
7const devDeployPath = devServerPath + "/wp-content/themes/wvalleyfiber-theme/";
8const sslCertPath = "../localhost.crt";
9const sslKeyPath = "../localhost.key";
10
11const temp = "./temp";
12const dist = "./dist";
13
14module.exports = tools.createGulpfile({
15 include: {
16 clean: [dist, temp],
17 copy: {
18 static: ["./src/static/**/*", dist],
19 php: ["./src/php/**/*", dist],
20 vendor: [["./vendor/**/*.php", "./vendor/.htaccess"], dist + "/vendor"]
21 },
22 scss: {
23 src: "./src/scss/style.scss",
24 dest: dist
25 },
26 ts: {
27 src: "./src/ts/**/*",
28 dest: temp + "/js",
29 rollup: {
30 src: temp + "/js/main.js",
31 dest: dist
32 },
33 clean: temp
34 },
35 deploy: {
36 src: dist,
37 dest: devDeployPath
38 },
39 serve: {
40 proxy: devHost,
41 sslCert: sslCertPath,
42 sslKey: sslKeyPath
43 }
44 }
45});
\No newline at end of file