@runwell/shopify-toolkit 0.14.1 → 0.14.2
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/init.js +5 -17
- package/package.json +1 -1
package/lib/init.js
CHANGED
|
@@ -82,26 +82,14 @@ export async function init(flags) {
|
|
|
82
82
|
|
|
83
83
|
fs.writeFileSync(path.join(targetDir, 'runwell.config.json'), JSON.stringify(config, null, 2) + '\n');
|
|
84
84
|
|
|
85
|
-
// Scaffold settings_data.json with
|
|
86
|
-
// body_scale
|
|
87
|
-
//
|
|
88
|
-
//
|
|
89
|
-
const premiumEditorial = flags.premiumEditorial || flags['premium-editorial'];
|
|
90
|
-
const settingsData = {
|
|
91
|
-
current: 'Default',
|
|
92
|
-
presets: {
|
|
93
|
-
Default: premiumEditorial
|
|
94
|
-
? { body_scale: 110, heading_scale: 120 }
|
|
95
|
-
: {}
|
|
96
|
-
}
|
|
97
|
-
};
|
|
85
|
+
// Scaffold settings_data.json with an empty Default preset.
|
|
86
|
+
// Dawn defaults (body_scale 100, heading_scale 100) apply automatically
|
|
87
|
+
// when keys are absent. Each tenant adjusts via Theme Editor or by
|
|
88
|
+
// editing this file directly. No Runwell-opinionated defaults.
|
|
98
89
|
fs.writeFileSync(
|
|
99
90
|
path.join(targetDir, 'config', 'settings_data.json'),
|
|
100
|
-
JSON.stringify(
|
|
91
|
+
JSON.stringify({ current: 'Default', presets: { Default: {} } }, null, 2) + '\n'
|
|
101
92
|
);
|
|
102
|
-
if (premiumEditorial) {
|
|
103
|
-
console.log('Applied premium-editorial typography defaults: body_scale=110, heading_scale=120');
|
|
104
|
-
}
|
|
105
93
|
|
|
106
94
|
// Scaffold templates
|
|
107
95
|
fs.writeFileSync(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runwell/shopify-toolkit",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"description": "Reusable Shopify theme modules from Runwell. Replaces typically app-driven features (reviews, wishlist, urgency, FAQ, post-purchase upsell, exit popups, free-ship progress, sticky ATC, testimonials, badges, bundles) with native Liquid + JS + CSS that ship across multiple client themes via a config-driven sync CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|