shopify-accelerate-app 1.0.27 → 1.0.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopify-accelerate-app",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "Shopify App development with full Typescript Support",
5
5
  "author": "Felix Tellmann",
6
6
  "license": "MIT",
@@ -32,15 +32,9 @@ export const runTailwindCSSWatcher = () => {
32
32
  [
33
33
  "tailwindcss",
34
34
  "--config",
35
- /*hasConfig ? "tailwind.config.js" :*/ path.join(
36
- package_root,
37
- `src/tailwind/tailwind.config.js`
38
- ),
35
+ /*hasConfig ? "tailwind.config.js" :*/ path.join(package_root, `src/tailwind/tailwind.config.js`),
39
36
  "--postcss",
40
- /*hasPostCss ? "postcss.config.js" : */ path.join(
41
- package_root,
42
- `src/tailwind/postcss.config.js`
43
- ),
37
+ /*hasPostCss ? "postcss.config.js" : */ path.join(package_root, `src/tailwind/postcss.config.js`),
44
38
  "-i",
45
39
  path.join(root_dir, `assets`, `_tailwind.css`),
46
40
  "-o",
@@ -87,12 +81,7 @@ export const runTailwindCSSWatcher = () => {
87
81
  });
88
82
 
89
83
  if (writeOut) {
90
- const finalClassName = line
91
- .replace(/\./g, "")
92
- .replace(/{/g, "")
93
- .replace(/}/g, "")
94
- .replace(/\\/g, "")
95
- .trim();
84
+ const finalClassName = line.replace(/\./g, "").replace(/{/g, "").replace(/}/g, "").replace(/\\/g, "").trim();
96
85
  if (finalClassName !== "") {
97
86
  classesInOrder.push(`${finalClassName}`);
98
87
  }
@@ -111,11 +100,7 @@ export const runTailwindCSSWatcher = () => {
111
100
  .join("\n")
112
101
  .replace(
113
102
  new RegExp(
114
- `${
115
- process.env.SHOPIFY_ACCELERATE_TAILWIND_PREFIX
116
- ? `${process.env.SHOPIFY_ACCELERATE_TAILWIND_PREFIX}-`
117
- : ""
118
- }`,
103
+ `${process.env.SHOPIFY_ACCELERATE_TAILWIND_PREFIX ? `${process.env.SHOPIFY_ACCELERATE_TAILWIND_PREFIX}-` : ""}`,
119
104
  "gi"
120
105
  ),
121
106
  ""
@@ -302,10 +302,10 @@ module.exports = {
302
302
  theme: {
303
303
  "trigger-bg": "rgb(var(--lx-color-trigger-bg) / <alpha-value>)",
304
304
  "trigger-text": "rgb(var(--lx-color-trigger-text) / <alpha-value>)",
305
- bg: "rgb(var(--lx-color-bg / <alpha-value>)",
306
- text: "rgb(var(--lx-color-text / <alpha-value>)",
307
- "button-bg": "rgb(var(--lx-color-button-bg / <alpha-value>)",
308
- "button-text": "rgb(var(--lx-color-button-text / <alpha-value>)",
305
+ bg: "rgb(var(--lx-color-bg) / <alpha-value>)",
306
+ text: "rgb(var(--lx-color-text) / <alpha-value>)",
307
+ "button-bg": "rgb(var(--lx-color-button-bg) / <alpha-value>)",
308
+ "button-text": "rgb(var(--lx-color-button-text) / <alpha-value>)",
309
309
  },
310
310
  border: "hsl(var(--border))",
311
311
  input: "hsl(var(--input))",