@deneb-ui/create-template 2.0.3 → 2.0.5
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/bin/index.js +33 -13
- package/package.json +1 -1
- package/template/package.json +1 -2
package/bin/index.js
CHANGED
|
@@ -79,34 +79,54 @@ function runScaffolding(targetInput) {
|
|
|
79
79
|
const skipInstall = process.argv.includes('--skip-install');
|
|
80
80
|
|
|
81
81
|
if (!skipInstall) {
|
|
82
|
-
console.log(
|
|
82
|
+
console.log(`\n\x1b[36m📦 Installing dependencies with npm...\x1b[0m \x1b[90m(Next.js 15, Tailwind CSS, @deneb-ui/ui)\x1b[0m\n`);
|
|
83
83
|
try {
|
|
84
84
|
const npmCmd = process.platform === 'win32' ? 'npm.cmd' : 'npm';
|
|
85
85
|
const installRes = require('node:child_process').spawnSync(npmCmd, ['install'], {
|
|
86
86
|
cwd: targetPath,
|
|
87
87
|
stdio: 'inherit',
|
|
88
|
+
shell: process.platform === 'win32',
|
|
88
89
|
});
|
|
89
90
|
|
|
90
91
|
if (installRes.status === 0) {
|
|
91
|
-
console.log(`\n\x1b[32m✔ All dependencies and DENEB UI
|
|
92
|
+
console.log(`\n\x1b[32m✔ All dependencies and DENEB UI components installed successfully!\x1b[0m\n`);
|
|
92
93
|
} else {
|
|
93
|
-
console.log(`\n\x1b[
|
|
94
|
+
console.log(`\n\x1b[33m! Note: npm install exited with code ${installRes.status}. Run "npm install" inside ${folderName}.\x1b[0m\n`);
|
|
94
95
|
}
|
|
95
|
-
} catch {
|
|
96
|
-
console.log(`\n\x1b[
|
|
96
|
+
} catch (err) {
|
|
97
|
+
console.log(`\n\x1b[33m! Note: Could not run npm install automatically: ${err.message}\x1b[0m\n`);
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
100
|
|
|
100
|
-
console.log(`
|
|
101
|
-
console.log(` \x1b[
|
|
101
|
+
console.log(`\x1b[32m══════════════════════════════════════════════════════════════════════════════\x1b[0m`);
|
|
102
|
+
console.log(` \x1b[1m\x1b[32m🎉 Success! Created ${folderName} at ${targetPath}\x1b[0m`);
|
|
103
|
+
console.log(`\x1b[32m══════════════════════════════════════════════════════════════════════════════\x1b[0m\n`);
|
|
104
|
+
console.log(`Your storefront template is pre-configured with:`);
|
|
105
|
+
console.log(` \x1b[36m⚡ Next.js 15 App Router\x1b[0m (React 19 + Static Export support)`);
|
|
106
|
+
console.log(` \x1b[36m🎨 Tailwind CSS\x1b[0m (Pre-configured tailwind.config.ts & tokens)`);
|
|
107
|
+
console.log(` \x1b[36m💎 @deneb-ui/ui\x1b[0m (28+ Visual-First Editable Components)`);
|
|
108
|
+
console.log(` \x1b[36m🛠️ @deneb-ui/cli\x1b[0m (Visual Lab, Preflight Validator & Packager)`);
|
|
109
|
+
console.log(` \x1b[36m📋 Fivora Manifest\x1b[0m (Version 2 Contract Compliant)\n`);
|
|
110
|
+
|
|
111
|
+
console.log(`\x1b[1mNext Steps:\x1b[0m\n`);
|
|
112
|
+
console.log(` \x1b[36m1. cd ${folderName}\x1b[0m`);
|
|
113
|
+
console.log(` Navigate into your template directory.\n`);
|
|
102
114
|
if (skipInstall) {
|
|
103
|
-
console.log(` \x1b[
|
|
115
|
+
console.log(` \x1b[36m2. npm install\x1b[0m`);
|
|
116
|
+
console.log(` Install dependencies.\n`);
|
|
104
117
|
}
|
|
105
|
-
console.log(` \x1b[
|
|
106
|
-
console.log(`
|
|
107
|
-
console.log(`
|
|
108
|
-
console.log(` \x1b[
|
|
109
|
-
console.log(`
|
|
118
|
+
console.log(` \x1b[36m${skipInstall ? '3' : '2'}. npm run dev\x1b[0m`);
|
|
119
|
+
console.log(` Start the local dev server at \x1b[4mhttp://localhost:3000\x1b[0m.`);
|
|
120
|
+
console.log(` Follow the in-app developer guide right on your homepage!\n`);
|
|
121
|
+
console.log(` \x1b[36m${skipInstall ? '4' : '3'}. npm run lab\x1b[0m`);
|
|
122
|
+
console.log(` Launch the interactive Fivora Visual Editing Lab simulation.\n`);
|
|
123
|
+
console.log(` \x1b[36m${skipInstall ? '5' : '4'}. npm run validate\x1b[0m`);
|
|
124
|
+
console.log(` Verify preflight compliance to ensure 100% marketplace approval.\n`);
|
|
125
|
+
console.log(` \x1b[36m${skipInstall ? '6' : '5'}. npm run zip\x1b[0m`);
|
|
126
|
+
console.log(` Package a clean, upload-ready \x1b[1mfivora-template.zip\x1b[0m.\n`);
|
|
127
|
+
|
|
128
|
+
console.log(`\x1b[90mArchitecture created by Chamika Gayashan & Induranga Kawishwara\x1b[0m`);
|
|
129
|
+
console.log(`\x1b[1m\x1b[36mHappy building with DENEB UI! 🚀\x1b[0m\n`);
|
|
110
130
|
}
|
|
111
131
|
|
|
112
132
|
printBanner();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deneb-ui/create-template",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "Scaffold a modern, pre-validated DENEB UI storefront template in seconds. Created by Chamika Gayashan & Induranga Kawishwara.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-deneb-template": "bin/index.js",
|
package/template/package.json
CHANGED