@ratiu5/solidui-cli 0.7.3 → 0.7.4
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/dist/index.js +18 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1143,10 +1143,17 @@ var init = new Command2().name("init").description("initialize your project and
|
|
|
1143
1143
|
const extension = config.tsx ? "ts" : "js";
|
|
1144
1144
|
await writeFile2(
|
|
1145
1145
|
config.resolvedPaths.tailwindConfig,
|
|
1146
|
-
TAILWIND_CONFIG.replace(
|
|
1146
|
+
TAILWIND_CONFIG.replace(
|
|
1147
|
+
"<%- prefix %>",
|
|
1148
|
+
config.tailwind.prefix
|
|
1149
|
+
),
|
|
1150
|
+
"utf-8"
|
|
1151
|
+
);
|
|
1152
|
+
await writeFile2(
|
|
1153
|
+
config.resolvedPaths.tailwindCss,
|
|
1154
|
+
TAILWIND_CSS,
|
|
1147
1155
|
"utf-8"
|
|
1148
1156
|
);
|
|
1149
|
-
await writeFile2(config.resolvedPaths.tailwindCss, TAILWIND_CSS, "utf-8");
|
|
1150
1157
|
await writeFile2(
|
|
1151
1158
|
`${config.resolvedPaths.utils}.${extension}`,
|
|
1152
1159
|
extension === "ts" ? UTILS : UTILS_JS,
|
|
@@ -1155,11 +1162,15 @@ var init = new Command2().name("init").description("initialize your project and
|
|
|
1155
1162
|
spinner3.stop(`Project initialized.`);
|
|
1156
1163
|
spinner3.start(`Installing dependencies...`);
|
|
1157
1164
|
const packageManager = await getPackageManager(cwd);
|
|
1158
|
-
await execa2(
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1165
|
+
await execa2(
|
|
1166
|
+
packageManager,
|
|
1167
|
+
[
|
|
1168
|
+
"add",
|
|
1169
|
+
...packageManager === "deno" ? ["--npm"] : [],
|
|
1170
|
+
...PROJECT_DEPENDENCIES
|
|
1171
|
+
],
|
|
1172
|
+
{ cwd }
|
|
1173
|
+
);
|
|
1163
1174
|
spinner3.stop(`Dependencies installed.`);
|
|
1164
1175
|
p3.outro(
|
|
1165
1176
|
`${highlight("Success!")} Project initialization completed. You may now add components.`
|