@madebyseed/seed-cli-tools 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commands/deploy.js +2 -2
- package/lib/gulpfile.js +1 -3
- package/lib/tasks/build-css.js +1 -2
- package/lib/tasks/build-utils.js +8 -2
- package/lib/tasks/includes/config.js +1 -1
- package/lib/tasks/includes/messages.js +4 -4
- package/lib/tasks/shopify-cli.js +7 -3
- package/lib/tasks/watchers.js +4 -10
- package/package.json +2 -4
- package/src/commands/deploy.js +4 -4
- package/src/gulpfile.js +0 -2
- package/src/tasks/build-css.js +0 -1
- package/src/tasks/build-utils.js +7 -11
- package/src/tasks/includes/config.js +1 -1
- package/src/tasks/includes/messages.js +5 -5
- package/src/tasks/shopify-cli.js +6 -2
- package/src/tasks/watchers.js +2 -8
package/lib/commands/deploy.js
CHANGED
|
@@ -16,12 +16,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
16
16
|
var logger = (0, _debug["default"])("seed-tools:deploy");
|
|
17
17
|
|
|
18
18
|
function _default(program) {
|
|
19
|
-
program.command("deploy").alias("d").description("Runs a full deploy of your theme's code to a Shopify store specified in seed.config.js. This runs shopify theme push with the --nodelete flag, so that
|
|
19
|
+
program.command("deploy").alias("d").description("Runs a full deploy of your theme's code to a Shopify store specified in seed.config.js. This runs shopify theme push with the --nodelete flag, so that files aren't deleted.").option("-e, --env <environment>[,<environment>...]", "Shopify store(s) to deploy code to (specified in seed.config.js)", "development").option("-s, --skip-optimizations", "Skips asset optimization steps such as compression, minification and purging.", false).action(function () {
|
|
20
20
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
21
21
|
logger("--gulpfile ".concat(_config["default"].gulpFile));
|
|
22
22
|
logger("--cwd ".concat(_config["default"].themeRoot));
|
|
23
23
|
var args = ["deploy", "--environment", options.env];
|
|
24
|
-
if (options.
|
|
24
|
+
if (options.skipOptimizations) args.push("--skip-optimization");else process.env.NODE_ENV = "production";
|
|
25
25
|
(0, _crossSpawn["default"])(_config["default"].gulp, args.concat(["--gulpfile", _config["default"].gulpFile, "--cwd", _config["default"].themeRoot]), {
|
|
26
26
|
detached: false,
|
|
27
27
|
stdio: "inherit"
|
package/lib/gulpfile.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var gulp = require("gulp"); //
|
|
4
|
-
// const runSequence = require("gulp4-run-sequence");
|
|
5
|
-
// imports gulp tasks from the `tasks` directory
|
|
3
|
+
var gulp = require("gulp"); // imports gulp tasks from the `tasks` directory
|
|
6
4
|
|
|
7
5
|
|
|
8
6
|
require("require-directory")(module, "./tasks");
|
package/lib/tasks/build-css.js
CHANGED
|
@@ -12,8 +12,7 @@ var plumber = require('gulp-plumber');
|
|
|
12
12
|
|
|
13
13
|
var chokidar = require('chokidar');
|
|
14
14
|
|
|
15
|
-
var config = require('./includes/config.js');
|
|
16
|
-
|
|
15
|
+
var config = require('./includes/config.js');
|
|
17
16
|
|
|
18
17
|
var messages = require('./includes/messages.js');
|
|
19
18
|
/**
|
package/lib/tasks/build-utils.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var gulp = require("gulp");
|
|
4
4
|
|
|
5
|
+
var gulpif = require("gulp-if");
|
|
6
|
+
|
|
5
7
|
var del = require("del");
|
|
6
8
|
|
|
7
9
|
var zip = require("gulp-zip");
|
|
@@ -14,6 +16,8 @@ var config = require("./includes/config.js");
|
|
|
14
16
|
|
|
15
17
|
var utils = require("./includes/utilities.js");
|
|
16
18
|
|
|
19
|
+
var messages = require("./includes/messages.js");
|
|
20
|
+
|
|
17
21
|
var assetsPaths = [config.src.assets, config.src.templates, config.src.sections, config.src.snippets, config.src.locales, config.src.config, config.src.layout];
|
|
18
22
|
var themeSettingsAssets = [config.tmp.templates, config.tmp.config];
|
|
19
23
|
/**
|
|
@@ -28,10 +32,11 @@ var themeSettingsAssets = [config.tmp.templates, config.tmp.config];
|
|
|
28
32
|
*/
|
|
29
33
|
|
|
30
34
|
function copyFiles(files, srcOptions, dest) {
|
|
31
|
-
|
|
35
|
+
var log = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
36
|
+
return gulp.src(files, srcOptions).pipe(plumber(utils.errorHandler)).pipe(gulpif(log, size({
|
|
32
37
|
showFiles: true,
|
|
33
38
|
pretty: true
|
|
34
|
-
})).pipe(gulp.dest(dest));
|
|
39
|
+
}))).pipe(gulp.dest(dest));
|
|
35
40
|
}
|
|
36
41
|
/**
|
|
37
42
|
* Clean up build dirs/files whenever doing a full/clean (re)build.
|
|
@@ -69,6 +74,7 @@ gulp.task("compress", function () {
|
|
|
69
74
|
*/
|
|
70
75
|
|
|
71
76
|
gulp.task("generate:tmp", function () {
|
|
77
|
+
messages.logProcessFiles('Generating tmp folder...');
|
|
72
78
|
return copyFiles(assetsPaths, {
|
|
73
79
|
base: config.src.root
|
|
74
80
|
}, config.tmp.root);
|
|
@@ -35,7 +35,7 @@ var messages = {
|
|
|
35
35
|
log('running task', chalk.white('-'), chalk.cyan(processName));
|
|
36
36
|
},
|
|
37
37
|
logChildProcess: function logChildProcess(cmd) {
|
|
38
|
-
log('running task', chalk.bold('[child process]'), chalk.white('-'), chalk.cyan(
|
|
38
|
+
log('running task', chalk.bold('[child process]'), chalk.white('-'), chalk.cyan(cmd));
|
|
39
39
|
},
|
|
40
40
|
logDeploys: function logDeploys(cmd, files) {
|
|
41
41
|
var timestamp = "Deploy complete @ ".concat(new Date(), ". ");
|
|
@@ -56,16 +56,16 @@ var messages = {
|
|
|
56
56
|
log('Updating JS Bundle...');
|
|
57
57
|
},
|
|
58
58
|
configChange: function configChange() {
|
|
59
|
-
return 'Changes to
|
|
59
|
+
return 'Changes to seed.config.js Detected: You may need to quit <seed watch>' + ' and run a full <seed deploy> as a result.';
|
|
60
60
|
},
|
|
61
61
|
translationsFailed: function translationsFailed() {
|
|
62
62
|
return 'Translation errors detected.';
|
|
63
63
|
},
|
|
64
64
|
invalidThemeId: function invalidThemeId(themeId, env) {
|
|
65
|
-
log('Invalid theme id for', chalk.cyan("".concat(env, ": ").concat(themeId)), chalk.yellow('`theme_id` must be
|
|
65
|
+
log('Invalid theme id for', chalk.cyan("".concat(env, ": ").concat(themeId)), chalk.yellow('`theme_id` must be a string.'));
|
|
66
66
|
},
|
|
67
67
|
configError: function configError() {
|
|
68
|
-
log('File missing:', chalk.yellow('`config.
|
|
68
|
+
log('File missing:', chalk.yellow('`seed.config.js` does not exist. You need to add a config file before you can make changes to your Shopify store.'));
|
|
69
69
|
},
|
|
70
70
|
deployTo: function deployTo(environment) {
|
|
71
71
|
log('Initiating deploy to', chalk.bold(environment));
|
package/lib/tasks/shopify-cli.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var gulp = require("gulp");
|
|
4
|
-
|
|
3
|
+
var gulp = require("gulp");
|
|
5
4
|
|
|
6
5
|
var _require = require("../utils"),
|
|
7
6
|
shopifyCLI = _require.shopifyCLI,
|
|
@@ -12,6 +11,8 @@ var _require = require("../utils"),
|
|
|
12
11
|
getThemeID = _require.getThemeID;
|
|
13
12
|
|
|
14
13
|
var config = require("./includes/config");
|
|
14
|
+
|
|
15
|
+
var messages = require("./includes/messages");
|
|
15
16
|
/**
|
|
16
17
|
* Initiates shopify's cli command 'shopify theme serve' on the dist folder,
|
|
17
18
|
* watching files and uploading them to development store
|
|
@@ -23,7 +24,7 @@ var config = require("./includes/config");
|
|
|
23
24
|
|
|
24
25
|
|
|
25
26
|
gulp.task("shopify:serve:dist", function () {
|
|
26
|
-
|
|
27
|
+
messages.logChildProcess("'shopify theme serve' on dist...");
|
|
27
28
|
var childProcess = shopifyCLI.serve({
|
|
28
29
|
stdio: ["inherit", "pipe", "inherit"]
|
|
29
30
|
});
|
|
@@ -41,6 +42,7 @@ gulp.task("shopify:serve:dist", function () {
|
|
|
41
42
|
*/
|
|
42
43
|
|
|
43
44
|
gulp.task("shopify:pull:dev", function (done) {
|
|
45
|
+
messages.logChildProcess("'shopify theme pull' on development theme...");
|
|
44
46
|
var devThemeId = getDevThemeID(config.themeRoot);
|
|
45
47
|
|
|
46
48
|
if (!devThemeId) {
|
|
@@ -58,6 +60,7 @@ gulp.task("shopify:pull:dev", function (done) {
|
|
|
58
60
|
*/
|
|
59
61
|
|
|
60
62
|
gulp.task("shopify:pull:dev:tmp", function (done) {
|
|
63
|
+
messages.logChildProcess("'shopify theme pull' on tmp folder...");
|
|
61
64
|
var devThemeId = getDevThemeID(config.themeRoot);
|
|
62
65
|
|
|
63
66
|
if (!devThemeId) {
|
|
@@ -76,6 +79,7 @@ gulp.task("shopify:pull:dev:tmp", function (done) {
|
|
|
76
79
|
*/
|
|
77
80
|
|
|
78
81
|
gulp.task("shopify:push:dist", function () {
|
|
82
|
+
messages.logChildProcess("'shopify theme push' on dist folder...");
|
|
79
83
|
return shopifyCLI.push(getThemeID(config.themeRoot, config.environment));
|
|
80
84
|
});
|
|
81
85
|
/**
|
package/lib/tasks/watchers.js
CHANGED
|
@@ -6,19 +6,12 @@ var config = require("./includes/config");
|
|
|
6
6
|
|
|
7
7
|
var chokidar = require("chokidar");
|
|
8
8
|
|
|
9
|
-
var utils = require("./includes/utilities");
|
|
10
|
-
// const _ = require('lodash');
|
|
11
|
-
// const debug = require('debug')('seed-tools:watchers');
|
|
12
|
-
// const fs = require('fs');
|
|
13
|
-
// const themekit = require('@shopify/themekit');
|
|
14
|
-
// const Promise = require('bluebird');
|
|
15
|
-
// const config = require('./includes/config.js');
|
|
16
|
-
|
|
9
|
+
var utils = require("./includes/utilities");
|
|
17
10
|
|
|
18
11
|
var messages = require("./includes/messages.js");
|
|
19
12
|
|
|
20
|
-
var
|
|
21
|
-
|
|
13
|
+
var environment = config.environment.split(/\s*,\s*|\s+/)[0];
|
|
14
|
+
var cache = utils.createEventCache();
|
|
22
15
|
/**
|
|
23
16
|
* Aggregate task watching for file changes in `src` and
|
|
24
17
|
* building/cleaning/updating `dist` accordingly. *Made up of individual tasks
|
|
@@ -49,5 +42,6 @@ gulp.task("watch:dist", function () {
|
|
|
49
42
|
watcher.on("all", function (event, path) {
|
|
50
43
|
messages.logFileEvent(event, path);
|
|
51
44
|
cache.addEvent(event, path);
|
|
45
|
+
messages.deployTo(environment);
|
|
52
46
|
});
|
|
53
47
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@madebyseed/seed-cli-tools",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Seed CLI Tools",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"eslint": "^7.31.0"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@shopify/themekit": "^1.1.9",
|
|
26
25
|
"autoprefixer": "^10.3.1",
|
|
27
26
|
"bluebird": "^3.7.2",
|
|
28
27
|
"chalk": "^4.1.1",
|
|
@@ -47,7 +46,6 @@
|
|
|
47
46
|
"gulp-svgmin": "^4.0.1",
|
|
48
47
|
"gulp-uglify": "^3.0.2",
|
|
49
48
|
"gulp-zip": "^5.1.0",
|
|
50
|
-
"gulp4-run-sequence": "^1.0.1",
|
|
51
49
|
"postcss": "^8.3.6",
|
|
52
50
|
"require-directory": "^2.1.1",
|
|
53
51
|
"sass": "^1.36.0",
|
|
@@ -55,5 +53,5 @@
|
|
|
55
53
|
"vinyl-paths": "^3.0.1",
|
|
56
54
|
"yargs": "^17.0.1"
|
|
57
55
|
},
|
|
58
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "fc7df55c50463311a7eadbf0131e68c448064337"
|
|
59
57
|
}
|
package/src/commands/deploy.js
CHANGED
|
@@ -9,15 +9,15 @@ export default function (program) {
|
|
|
9
9
|
.command("deploy")
|
|
10
10
|
.alias("d")
|
|
11
11
|
.description(
|
|
12
|
-
"Runs a full deploy of your theme's code to a Shopify store specified in seed.config.js. This runs shopify theme push with the --nodelete flag, so that
|
|
12
|
+
"Runs a full deploy of your theme's code to a Shopify store specified in seed.config.js. This runs shopify theme push with the --nodelete flag, so that files aren't deleted."
|
|
13
13
|
)
|
|
14
14
|
.option(
|
|
15
15
|
"-e, --env <environment>[,<environment>...]",
|
|
16
|
-
"Shopify store(s) to deploy code to (specified in seed.config.js
|
|
16
|
+
"Shopify store(s) to deploy code to (specified in seed.config.js)",
|
|
17
17
|
"development"
|
|
18
18
|
)
|
|
19
19
|
.option(
|
|
20
|
-
"-s, --skip-
|
|
20
|
+
"-s, --skip-optimizations",
|
|
21
21
|
"Skips asset optimization steps such as compression, minification and purging.",
|
|
22
22
|
false
|
|
23
23
|
)
|
|
@@ -27,7 +27,7 @@ export default function (program) {
|
|
|
27
27
|
|
|
28
28
|
const args = ["deploy", "--environment", options.env];
|
|
29
29
|
|
|
30
|
-
if (options.
|
|
30
|
+
if (options.skipOptimizations) args.push("--skip-optimization");
|
|
31
31
|
else process.env.NODE_ENV = "production";
|
|
32
32
|
|
|
33
33
|
spawn(
|
package/src/gulpfile.js
CHANGED
package/src/tasks/build-css.js
CHANGED
package/src/tasks/build-utils.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const gulp = require("gulp");
|
|
2
|
+
const gulpif = require("gulp-if");
|
|
2
3
|
const del = require("del");
|
|
3
4
|
const zip = require("gulp-zip");
|
|
4
5
|
const size = require("gulp-size");
|
|
@@ -6,6 +7,7 @@ const plumber = require("gulp-plumber");
|
|
|
6
7
|
|
|
7
8
|
const config = require("./includes/config.js");
|
|
8
9
|
const utils = require("./includes/utilities.js");
|
|
10
|
+
const messages = require("./includes/messages.js");
|
|
9
11
|
|
|
10
12
|
const assetsPaths = [
|
|
11
13
|
config.src.assets,
|
|
@@ -29,16 +31,10 @@ const themeSettingsAssets = [config.tmp.templates, config.tmp.config];
|
|
|
29
31
|
* @returns {Stream}
|
|
30
32
|
* @private
|
|
31
33
|
*/
|
|
32
|
-
function copyFiles(files, srcOptions, dest) {
|
|
33
|
-
return gulp
|
|
34
|
-
.src(files, srcOptions)
|
|
34
|
+
function copyFiles(files, srcOptions, dest, log = false) {
|
|
35
|
+
return gulp.src(files, srcOptions)
|
|
35
36
|
.pipe(plumber(utils.errorHandler))
|
|
36
|
-
.pipe(
|
|
37
|
-
size({
|
|
38
|
-
showFiles: true,
|
|
39
|
-
pretty: true,
|
|
40
|
-
})
|
|
41
|
-
)
|
|
37
|
+
.pipe(gulpif(log, size({ showFiles: true, pretty: true })))
|
|
42
38
|
.pipe(gulp.dest(dest));
|
|
43
39
|
}
|
|
44
40
|
|
|
@@ -63,8 +59,7 @@ gulp.task("clean", () => {
|
|
|
63
59
|
gulp.task("compress", () => {
|
|
64
60
|
const distFiles = `${config.dist.root}**/*`;
|
|
65
61
|
|
|
66
|
-
return gulp
|
|
67
|
-
.src([distFiles])
|
|
62
|
+
return gulp.src([distFiles])
|
|
68
63
|
.pipe(plumber(utils.errorHandler))
|
|
69
64
|
.pipe(zip(`${config.packageJson.name}.zip` || "theme.zip"))
|
|
70
65
|
.pipe(size({ showFiles: true, pretty: true }))
|
|
@@ -79,6 +74,7 @@ gulp.task("compress", () => {
|
|
|
79
74
|
* @static
|
|
80
75
|
*/
|
|
81
76
|
gulp.task("generate:tmp", () => {
|
|
77
|
+
messages.logProcessFiles('Generating tmp folder...')
|
|
82
78
|
return copyFiles(assetsPaths, { base: config.src.root }, config.tmp.root);
|
|
83
79
|
});
|
|
84
80
|
|
|
@@ -52,7 +52,7 @@ const messages = {
|
|
|
52
52
|
log('running task',
|
|
53
53
|
chalk.bold('[child process]'),
|
|
54
54
|
chalk.white('-'),
|
|
55
|
-
chalk.cyan(
|
|
55
|
+
chalk.cyan(cmd),
|
|
56
56
|
);
|
|
57
57
|
},
|
|
58
58
|
|
|
@@ -80,8 +80,8 @@ const messages = {
|
|
|
80
80
|
},
|
|
81
81
|
|
|
82
82
|
configChange: () => {
|
|
83
|
-
return 'Changes to
|
|
84
|
-
' and run a full <
|
|
83
|
+
return 'Changes to seed.config.js Detected: You may need to quit <seed watch>' +
|
|
84
|
+
' and run a full <seed deploy> as a result.';
|
|
85
85
|
},
|
|
86
86
|
|
|
87
87
|
translationsFailed: () => {
|
|
@@ -91,13 +91,13 @@ const messages = {
|
|
|
91
91
|
invalidThemeId: (themeId, env) => {
|
|
92
92
|
log('Invalid theme id for',
|
|
93
93
|
chalk.cyan(`${env}: ${themeId}`),
|
|
94
|
-
chalk.yellow('`theme_id` must be
|
|
94
|
+
chalk.yellow('`theme_id` must be a string.'),
|
|
95
95
|
);
|
|
96
96
|
},
|
|
97
97
|
|
|
98
98
|
configError: () => {
|
|
99
99
|
log('File missing:',
|
|
100
|
-
chalk.yellow('`config.
|
|
100
|
+
chalk.yellow('`seed.config.js` does not exist. You need to add a config file before you can make changes to your Shopify store.'),
|
|
101
101
|
);
|
|
102
102
|
},
|
|
103
103
|
|
package/src/tasks/shopify-cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const gulp = require("gulp");
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
const {
|
|
4
4
|
shopifyCLI,
|
|
5
5
|
extractThemeId,
|
|
@@ -9,6 +9,7 @@ const {
|
|
|
9
9
|
getThemeID,
|
|
10
10
|
} = require("../utils");
|
|
11
11
|
const config = require("./includes/config");
|
|
12
|
+
const messages = require("./includes/messages")
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Initiates shopify's cli command 'shopify theme serve' on the dist folder,
|
|
@@ -19,7 +20,7 @@ const config = require("./includes/config");
|
|
|
19
20
|
* @static
|
|
20
21
|
*/
|
|
21
22
|
gulp.task("shopify:serve:dist", () => {
|
|
22
|
-
|
|
23
|
+
messages.logChildProcess("'shopify theme serve' on dist...");
|
|
23
24
|
const childProcess = shopifyCLI.serve({
|
|
24
25
|
stdio: ["inherit", "pipe", "inherit"],
|
|
25
26
|
});
|
|
@@ -37,6 +38,7 @@ gulp.task("shopify:serve:dist", () => {
|
|
|
37
38
|
* @static
|
|
38
39
|
*/
|
|
39
40
|
gulp.task("shopify:pull:dev", (done) => {
|
|
41
|
+
messages.logChildProcess("'shopify theme pull' on development theme...");
|
|
40
42
|
const devThemeId = getDevThemeID(config.themeRoot);
|
|
41
43
|
if (!devThemeId) {
|
|
42
44
|
return done();
|
|
@@ -53,6 +55,7 @@ gulp.task("shopify:pull:dev", (done) => {
|
|
|
53
55
|
* @static
|
|
54
56
|
*/
|
|
55
57
|
gulp.task("shopify:pull:dev:tmp", (done) => {
|
|
58
|
+
messages.logChildProcess("'shopify theme pull' on tmp folder...");
|
|
56
59
|
const devThemeId = getDevThemeID(config.themeRoot);
|
|
57
60
|
if (!devThemeId) {
|
|
58
61
|
return done();
|
|
@@ -73,6 +76,7 @@ gulp.task("shopify:pull:dev:tmp", (done) => {
|
|
|
73
76
|
* @static
|
|
74
77
|
*/
|
|
75
78
|
gulp.task("shopify:push:dist", () => {
|
|
79
|
+
messages.logChildProcess("'shopify theme push' on dist folder...");
|
|
76
80
|
return shopifyCLI.push(getThemeID(config.themeRoot, config.environment));
|
|
77
81
|
});
|
|
78
82
|
|
package/src/tasks/watchers.js
CHANGED
|
@@ -2,18 +2,11 @@ const gulp = require("gulp");
|
|
|
2
2
|
const config = require("./includes/config");
|
|
3
3
|
const chokidar = require("chokidar");
|
|
4
4
|
const utils = require("./includes/utilities");
|
|
5
|
-
// const runSequence = require('gulp4-run-sequence');
|
|
6
|
-
// const _ = require('lodash');
|
|
7
|
-
// const debug = require('debug')('seed-tools:watchers');
|
|
8
|
-
// const fs = require('fs');
|
|
9
|
-
// const themekit = require('@shopify/themekit');
|
|
10
|
-
// const Promise = require('bluebird');
|
|
11
5
|
|
|
12
|
-
// const config = require('./includes/config.js');
|
|
13
6
|
const messages = require("./includes/messages.js");
|
|
14
7
|
|
|
8
|
+
const environment = config.environment.split(/\s*,\s*|\s+/)[0];
|
|
15
9
|
const cache = utils.createEventCache();
|
|
16
|
-
// const environment = config.environment.split(/\s*,\s*|\s+/)[0];
|
|
17
10
|
|
|
18
11
|
/**
|
|
19
12
|
* Aggregate task watching for file changes in `src` and
|
|
@@ -45,5 +38,6 @@ gulp.task("watch:dist", () => {
|
|
|
45
38
|
watcher.on("all", (event, path) => {
|
|
46
39
|
messages.logFileEvent(event, path);
|
|
47
40
|
cache.addEvent(event, path);
|
|
41
|
+
messages.deployTo(environment);
|
|
48
42
|
});
|
|
49
43
|
});
|