@madebyseed/seed-cli-tools 2.0.1 → 2.2.0

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.
@@ -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
@@ -16,8 +16,8 @@ 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];
20
- var themeSettingsAssets = [config.tmp.templates, config.tmp.config];
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
+ var themeSettingsAssets = [config.tmp.templates, config.tmp.config, config.tmp.sectionsJson, config.tmp.blocksJson, config.tmp.locales];
21
21
  /**
22
22
  * Copies files from one fold to another, creating a new dir if doesn't exists and
23
23
  * overwriting if it does exist
@@ -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,9 @@ var config = {
94
95
  templates: "tmp/templates/**/*",
95
96
  snippets: "tmp/snippets/*",
96
97
  sections: "tmp/sections/*",
98
+ sectionsJson: "tmp/sections/*.json",
99
+ blocks: "tmp/blocks/*",
100
+ blocksJson: "tmp/blocks/*.json",
97
101
  locales: "tmp/locales/*",
98
102
  config: "tmp/config/*",
99
103
  layout: "tmp/layout/*",
@@ -104,6 +108,7 @@ var config = {
104
108
  assets: "dist/assets/",
105
109
  snippets: "dist/snippets/",
106
110
  sections: "dist/sections/",
111
+ blocks: "dist/blocks",
107
112
  layout: "dist/layout/",
108
113
  templates: "dist/templates/",
109
114
  locales: "dist/locales/",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@madebyseed/seed-cli-tools",
3
- "version": "2.0.1",
3
+ "version": "2.2.0",
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": "5cfc7c6e6d19d0757e8ea6fcbe4ecd1191c8379f"
59
+ "gitHead": "533a09375f52663debed2398bb22cac2788eb790"
60
60
  }
@@ -14,6 +14,7 @@ const assetsPaths = [
14
14
  config.src.templates,
15
15
  config.src.sections,
16
16
  config.src.snippets,
17
+ config.src.blocks,
17
18
  config.src.locales,
18
19
  config.src.config,
19
20
  config.src.layout,
@@ -13,12 +13,19 @@ const assetsPaths = [
13
13
  config.src.templates,
14
14
  config.src.sections,
15
15
  config.src.snippets,
16
+ config.src.blocks,
16
17
  config.src.locales,
17
18
  config.src.config,
18
19
  config.src.layout,
19
20
  ];
20
21
 
21
- const themeSettingsAssets = [config.tmp.templates, config.tmp.config];
22
+ const themeSettingsAssets = [
23
+ config.tmp.templates,
24
+ config.tmp.config,
25
+ config.tmp.sectionsJson,
26
+ config.tmp.blocksJson,
27
+ config.tmp.locales
28
+ ];
22
29
 
23
30
  /**
24
31
  * Copies files from one fold to another, creating a new dir if doesn't exists and
@@ -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,9 @@ const config = {
89
90
  templates: "tmp/templates/**/*",
90
91
  snippets: "tmp/snippets/*",
91
92
  sections: "tmp/sections/*",
93
+ sectionsJson: "tmp/sections/*.json",
94
+ blocks: "tmp/blocks/*",
95
+ blocksJson: "tmp/blocks/*.json",
92
96
  locales: "tmp/locales/*",
93
97
  config: "tmp/config/*",
94
98
  layout: "tmp/layout/*",
@@ -100,6 +104,7 @@ const config = {
100
104
  assets: "dist/assets/",
101
105
  snippets: "dist/snippets/",
102
106
  sections: "dist/sections/",
107
+ blocks: "dist/blocks",
103
108
  layout: "dist/layout/",
104
109
  templates: "dist/templates/",
105
110
  locales: "dist/locales/",