@madebyseed/seed-cli-tools 2.0.0 → 2.1.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 +7 -1
- package/lib/tasks/build-assets.js +1 -1
- package/lib/tasks/build-utils.js +1 -1
- package/lib/tasks/includes/config.js +3 -0
- package/package.json +2 -2
- package/src/commands/watch.js +8 -4
- package/src/tasks/build-assets.js +1 -0
- package/src/tasks/build-utils.js +1 -0
- package/src/tasks/includes/config.js +3 -0
- package/src/tasks/shopify-cli.js +0 -1
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"
|
|
@@ -18,7 +18,7 @@ var utils = require('./includes/utilities.js');
|
|
|
18
18
|
|
|
19
19
|
var messages = require('./includes/messages.js');
|
|
20
20
|
|
|
21
|
-
var assetsPaths = [config.src.assets, config.src.templates, config.src.sections, config.src.snippets, config.src.locales, config.src.config, config.src.layout];
|
|
21
|
+
var assetsPaths = [config.src.assets, config.src.templates, config.src.sections, config.src.snippets, config.src.blocks, config.src.locales, config.src.config, config.src.layout];
|
|
22
22
|
var rootAssets = [config.shopifyIgnore];
|
|
23
23
|
/**
|
|
24
24
|
* Copies assets to the `/dist` directory
|
package/lib/tasks/build-utils.js
CHANGED
|
@@ -16,7 +16,7 @@ var utils = require("./includes/utilities.js");
|
|
|
16
16
|
|
|
17
17
|
var messages = require("./includes/messages.js");
|
|
18
18
|
|
|
19
|
-
var assetsPaths = [config.src.assets, config.src.templates, config.src.sections, config.src.snippets, config.src.locales, config.src.config, config.src.layout];
|
|
19
|
+
var assetsPaths = [config.src.assets, config.src.templates, config.src.sections, config.src.snippets, config.src.blocks, config.src.locales, config.src.config, config.src.layout];
|
|
20
20
|
var themeSettingsAssets = [config.tmp.templates, config.tmp.config];
|
|
21
21
|
/**
|
|
22
22
|
* Copies files from one fold to another, creating a new dir if doesn't exists and
|
|
@@ -75,6 +75,7 @@ var config = {
|
|
|
75
75
|
templates: "src/templates/**/*",
|
|
76
76
|
snippets: "src/snippets/*",
|
|
77
77
|
sections: "src/sections/*",
|
|
78
|
+
blocks: "src/blocks/*",
|
|
78
79
|
locales: "src/locales/*",
|
|
79
80
|
config: "src/config/*",
|
|
80
81
|
layout: "src/layout/*",
|
|
@@ -94,6 +95,7 @@ var config = {
|
|
|
94
95
|
templates: "tmp/templates/**/*",
|
|
95
96
|
snippets: "tmp/snippets/*",
|
|
96
97
|
sections: "tmp/sections/*",
|
|
98
|
+
blocks: "tmp/blocks/*",
|
|
97
99
|
locales: "tmp/locales/*",
|
|
98
100
|
config: "tmp/config/*",
|
|
99
101
|
layout: "tmp/layout/*",
|
|
@@ -104,6 +106,7 @@ var config = {
|
|
|
104
106
|
assets: "dist/assets/",
|
|
105
107
|
snippets: "dist/snippets/",
|
|
106
108
|
sections: "dist/sections/",
|
|
109
|
+
blocks: "dist/blocks",
|
|
107
110
|
layout: "dist/layout/",
|
|
108
111
|
templates: "dist/templates/",
|
|
109
112
|
locales: "dist/locales/",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@madebyseed/seed-cli-tools",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.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": "adebf3adcf1cafaf15ce55333cf72535489cd06b"
|
|
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/build-utils.js
CHANGED
|
@@ -69,6 +69,7 @@ const config = {
|
|
|
69
69
|
templates: "src/templates/**/*",
|
|
70
70
|
snippets: "src/snippets/*",
|
|
71
71
|
sections: "src/sections/*",
|
|
72
|
+
blocks: "src/blocks/*",
|
|
72
73
|
locales: "src/locales/*",
|
|
73
74
|
config: "src/config/*",
|
|
74
75
|
layout: "src/layout/*",
|
|
@@ -89,6 +90,7 @@ const config = {
|
|
|
89
90
|
templates: "tmp/templates/**/*",
|
|
90
91
|
snippets: "tmp/snippets/*",
|
|
91
92
|
sections: "tmp/sections/*",
|
|
93
|
+
blocks: "tmp/blocks/*",
|
|
92
94
|
locales: "tmp/locales/*",
|
|
93
95
|
config: "tmp/config/*",
|
|
94
96
|
layout: "tmp/layout/*",
|
|
@@ -100,6 +102,7 @@ const config = {
|
|
|
100
102
|
assets: "dist/assets/",
|
|
101
103
|
snippets: "dist/snippets/",
|
|
102
104
|
sections: "dist/sections/",
|
|
105
|
+
blocks: "dist/blocks",
|
|
103
106
|
layout: "dist/layout/",
|
|
104
107
|
templates: "dist/templates/",
|
|
105
108
|
locales: "dist/locales/",
|
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
|