shopify-accelerate-app 1.0.45 → 1.0.47
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
|
@@ -268,7 +268,7 @@ export const generateLiquidFiles = (final?: boolean, cssOutput?: string) => {
|
|
|
268
268
|
};
|
|
269
269
|
|
|
270
270
|
const translationsJs = `<script data-no-block>
|
|
271
|
-
window.
|
|
271
|
+
window.__listify_translations = ${JSON.stringify(transformTranslations(translations), undefined, 2)};
|
|
272
272
|
</script>
|
|
273
273
|
`;
|
|
274
274
|
|
|
@@ -280,16 +280,13 @@ export const generateLiquidFiles = (final?: boolean, cssOutput?: string) => {
|
|
|
280
280
|
.replace(/\n\n/gi, "\n")};
|
|
281
281
|
declare global {
|
|
282
282
|
interface Window {
|
|
283
|
-
|
|
283
|
+
__listify_translations?: Translations;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
`;
|
|
287
287
|
|
|
288
288
|
writeCompareFile(path.join(process.cwd(), extension_path, "locales", "en.default.json"), JSON.stringify(translations, undefined, 2));
|
|
289
|
-
|
|
290
|
-
path.join(process.cwd(), extension_path, "snippets", "_layout.translations.liquid"),
|
|
291
|
-
translationsJs
|
|
292
|
-
);*/
|
|
289
|
+
writeCompareFile(path.join(process.cwd(), extension_path, "snippets", "translations.liquid"), translationsJs);
|
|
293
290
|
writeCompareFile(path.join(folders.types, "translations.ts"), translationTypes);
|
|
294
291
|
|
|
295
292
|
const dynamicJsImports = [];
|
|
@@ -89,7 +89,7 @@ export const runTailwindCSSWatcher = () => {
|
|
|
89
89
|
writeCompareFile(path.join(config.extension_path, `assets/tailwind.css`), content);
|
|
90
90
|
|
|
91
91
|
if (process.env.SHOPIFY_ACCELERATE_THEME_OUTPUT_PATH) {
|
|
92
|
-
writeCompareFile(path.join(config.theme_output_path, `assets/tailwind.css`), content);
|
|
92
|
+
writeCompareFile(path.join(config.theme_output_path, `assets/listify-dev-tailwind.css`), content);
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
writeCompareFile(
|
|
@@ -5,7 +5,8 @@ const { defaultExtractor: createDefaultExtractor } = require("tailwindcss/lib/li
|
|
|
5
5
|
|
|
6
6
|
const { default: resolveConfig } = require("tailwindcss/lib/util/resolveConfig");
|
|
7
7
|
const plugin = require("tailwindcss/plugin");
|
|
8
|
-
|
|
8
|
+
import { dotenvLoad } from "dotenv-mono";
|
|
9
|
+
const dotenv = dotenvLoad(); // Dotenv instance
|
|
9
10
|
|
|
10
11
|
/*const defaultExtractor = createDefaultExtractor({
|
|
11
12
|
tailwindConfig: resolveConfig([
|