@madebyseed/seed-cli-tools 2.0.0 → 2.0.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/watch.js
CHANGED
|
@@ -22,7 +22,13 @@ function _default(program) {
|
|
|
22
22
|
logger("--cwd ".concat(_config["default"].themeRoot));
|
|
23
23
|
var gulpArgs = ["watch", "--gulpfile", _config["default"].gulpFile, "--cwd", _config["default"].themeRoot, "--environment", options.env];
|
|
24
24
|
if (!options.optimize) gulpArgs.push("--skip-optimizations");
|
|
25
|
-
|
|
25
|
+
|
|
26
|
+
if (options.store) {
|
|
27
|
+
gulpArgs.push("--store");
|
|
28
|
+
gulpArgs.push(options.store);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
process.env.NODE_ENV = options.optimize ? "production" : "development";
|
|
26
32
|
(0, _crossSpawn["default"])(_config["default"].gulp, gulpArgs, {
|
|
27
33
|
detached: false,
|
|
28
34
|
stdio: "inherit"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@madebyseed/seed-cli-tools",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Seed CLI Tools",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"webpack-stream": "^7.0.0",
|
|
57
57
|
"yargs": "^17.0.1"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "5cfc7c6e6d19d0757e8ea6fcbe4ecd1191c8379f"
|
|
60
60
|
}
|
package/src/commands/watch.js
CHANGED
|
@@ -36,10 +36,14 @@ export default function (program) {
|
|
|
36
36
|
options.env,
|
|
37
37
|
];
|
|
38
38
|
|
|
39
|
-
if (!options.optimize)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
if (!options.optimize) gulpArgs.push("--skip-optimizations");
|
|
40
|
+
|
|
41
|
+
if (options.store) {
|
|
42
|
+
gulpArgs.push("--store");
|
|
43
|
+
gulpArgs.push(options.store);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
process.env.NODE_ENV = options.optimize ? "production" : "development";
|
|
43
47
|
|
|
44
48
|
spawn(config.gulp, gulpArgs, {
|
|
45
49
|
detached: false,
|
package/src/tasks/shopify-cli.js
CHANGED
|
@@ -14,7 +14,6 @@ const messages = require("./includes/messages")
|
|
|
14
14
|
const environment = config.environment.split(/\s*,\s*|\s+/)[0];
|
|
15
15
|
const store = config.store;
|
|
16
16
|
|
|
17
|
-
|
|
18
17
|
/**
|
|
19
18
|
* Initiates shopify's cli command 'shopify theme serve' on the dist folder,
|
|
20
19
|
* watching files and uploading them to development store
|