create-bdpa-react-scaffold 2.0.6 → 2.0.8
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/BDPA_edited.avif +0 -0
- package/create-ui-lib.js +23 -0
- package/package.json +2 -2
- package/BDPA_edited.png +0 -0
package/BDPA_edited.avif
ADDED
|
Binary file
|
package/create-ui-lib.js
CHANGED
|
@@ -253,6 +253,8 @@ write(".vscode/settings.json", `
|
|
|
253
253
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
254
254
|
"editor.formatOnSave": true,
|
|
255
255
|
"editor.quickSuggestions": {
|
|
256
|
+
"other": "on",
|
|
257
|
+
"comments": "off",
|
|
256
258
|
"strings": "on"
|
|
257
259
|
},
|
|
258
260
|
"editor.inlineSuggest.enabled": true,
|
|
@@ -1809,4 +1811,25 @@ if (!doInstall) {
|
|
|
1809
1811
|
console.log("\nℹ️ Skipping npm install (flag --no-install). Run manually later.");
|
|
1810
1812
|
}
|
|
1811
1813
|
|
|
1814
|
+
// cd into app directory, npm install, then npm run dev
|
|
1815
|
+
const isWin = process.platform === "win32";
|
|
1816
|
+
const npmCmd = isWin ? "npm.cmd" : "npm";
|
|
1817
|
+
|
|
1818
|
+
console.log(`\n📂 Changing into project directory: ${BASE_DIR}`);
|
|
1819
|
+
process.chdir(BASE_DIR);
|
|
1820
|
+
|
|
1821
|
+
console.log("\n📦 Running npm install...");
|
|
1822
|
+
const installResult = spawnSync(npmCmd, ["install"], { stdio: "inherit", cwd: BASE_DIR });
|
|
1823
|
+
if (installResult.status !== 0) {
|
|
1824
|
+
console.error(`\n❌ npm install failed with status ${installResult.status}.`);
|
|
1825
|
+
process.exit(installResult.status || 1);
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
console.log("\n🚀 Starting dev server with npm run dev...");
|
|
1829
|
+
const devResult = spawnSync(npmCmd, ["run", "dev"], { stdio: "inherit", cwd: BASE_DIR });
|
|
1830
|
+
if (devResult.status !== 0) {
|
|
1831
|
+
console.error(`\n❌ npm run dev failed with status ${devResult.status}.`);
|
|
1832
|
+
process.exit(devResult.status || 1);
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1812
1835
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-bdpa-react-scaffold",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "Scaffold a React + Tailwind + shadcn/ui component demo via Vite.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-bdpa-react-scaffold": "create-ui-lib.js"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"create-ui-lib.js",
|
|
10
10
|
"README.md",
|
|
11
|
-
"BDPA_edited.
|
|
11
|
+
"BDPA_edited.avif"
|
|
12
12
|
],
|
|
13
13
|
"keywords": [
|
|
14
14
|
"create",
|
package/BDPA_edited.png
DELETED
|
Binary file
|