@softlimit/theme-envy 0.1.8-alpha → 0.1.10-alpha

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.
@@ -14,6 +14,14 @@ const templateOutputPath = path.resolve(ThemeEnvy.outputPath, 'templates')
14
14
  fs.ensureDirSync(templateOutputPath)
15
15
  globbedTemplates.forEach(file => {
16
16
  // write each file to dist
17
+ // if the file path includes customers, output into a customers directory in templates
18
+ if (file.includes('customers')) {
19
+ const customerOutputPath = path.resolve(templateOutputPath, 'customers')
20
+ fs.ensureDirSync(customerOutputPath)
21
+ fs.copyFileSync(file, path.resolve(customerOutputPath, path.basename(file)))
22
+ ThemeEnvy.progress.increment('templates', 1)
23
+ return
24
+ }
17
25
  fs.copyFileSync(file, path.resolve(templateOutputPath, path.basename(file)))
18
26
  // update progress bar
19
27
  ThemeEnvy.progress.increment('templates', 1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softlimit/theme-envy",
3
- "version": "0.1.8-alpha",
3
+ "version": "0.1.10-alpha",
4
4
  "description": "Softlimit Shopify Theme Development Environment",
5
5
  "bin": {
6
6
  "theme-envy": "./index.js"