-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.babel.js
111 lines (80 loc) · 3.12 KB
/
gulpfile.babel.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// Gulp plugins
import {series} from 'gulp';
// Setsup nucleus and the .env file
import setupEnvironment from './gulp/setupenvironment';
// Sets the composer.json file
import setComposerfile from './gulp/setcomposerfile';
// Updates composer packages
import composerUpdate from './gulp/updatecomposer';
// Checks and updates WP version
import WPUpdate from './gulp/wpupdate';
exports.WPUpdate = WPUpdate;
// Get the generated remote sql file
import getSql from './gulp/getsql';
exports.getSql = getSql;
// Replace productive or staging urls to localhost
import replaceDBStrings from './gulp/replaceDBStrings';
exports.replaceDBStrings = replaceDBStrings;
// Rename textdomain
import renametextdomain from './gulp/renametextdomain';
// Makes *.pot file
import makepot from './gulp/makepot';
exports.makepot = series(renametextdomain, makepot);
// Compiles the styleguide
import docs from './gulp/docs';
exports.docs = docs;
// Adds the necessary template style.css with the information
import addbanner from './gulp/addbanner';
// Watch task
import watchForChanges from './gulp/watch';
// Serve task
import serve from './gulp/serve';
// Styles task
import styles from './gulp/styles';
exports.styles = styles;
// Scripts task
import scripts from './gulp/scripts';
exports.scripts = scripts;
// Cleans the themes directory
import clean from './gulp/clean';
// Cleans the themes and build directory
import cleanall from './gulp/cleanall';
// Images task to minimize
import images from './gulp/images';
exports.images = images;
// Plugins task
import copyplugins from './gulp/copyplugins';
// PHP task
import copyphp from './gulp/copyphp';
// Copy .htaccess file
import copyhtaccess from './gulp/copyhtaccess';
// Copy translation files (mo,po)
import copytranslations from './gulp/copytranslations';
// Copy translation file *.pot
import copypot from './gulp/copypot';
// Generate theme as zip to upload
import generatezip from './gulp/generatezip';
// Push files to server
import push from './gulp/push';
exports.push = push;
// Pull files from server
import pull from './gulp/pull';
exports.pull = pull;
// Generates the screenshot.png - Cheeeeese
import shot from './gulp/shot';
exports.shot = shot;
// Deploy theme to server
import deploy from './gulp/deploy';
exports.deploy = deploy;
// Setup wp-config.php
import setupWPConfig from './gulp/setupwpconfig';
exports.setupWPConfig = setupWPConfig;
// Bumps version
import bumpPrompt from './gulp/bump';
export const firstSetup = series(setupEnvironment, setupWPConfig, setComposerfile);
export const dev = series(clean, styles, images, makepot, copyhtaccess, copypot, copytranslations, copyphp, copyplugins, scripts, addbanner, docs, serve, watchForChanges);
export const build = series(cleanall, styles, images, makepot, copyhtaccess, copypot, copytranslations, copyphp, copyplugins, scripts, addbanner, docs, shot);
export const buildzip = series(cleanall, styles, images, makepot, copyhtaccess, copypot, copytranslations, copyphp, copyplugins, scripts, addbanner, shot, generatezip);
export const bump = series(bumpPrompt);
export const updateACFPro = series(setComposerfile, composerUpdate);
export default dev;