@lucifer91299/create-portal-app 1.0.3 → 1.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/README.md +7 -7
- package/dist/cli/index.js +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
## Quick start
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npx create-portal-app my-portal
|
|
14
|
+
npx @lucifer91299/create-portal-app my-portal
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
The CLI walks you through each choice with arrow-key menus, then generates a ready-to-run project.
|
|
@@ -31,23 +31,23 @@ npm run dev
|
|
|
31
31
|
Skip every prompt and use defaults instantly:
|
|
32
32
|
|
|
33
33
|
```bash
|
|
34
|
-
npx create-portal-app my-portal --yes
|
|
34
|
+
npx @lucifer91299/create-portal-app my-portal --yes
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
Override specific options while skipping the rest:
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
40
|
# Change login style and sidebar
|
|
41
|
-
npx create-portal-app my-portal --yes --login=simple --sidebar=rail
|
|
41
|
+
npx @lucifer91299/create-portal-app my-portal --yes --login=simple --sidebar=rail
|
|
42
42
|
|
|
43
43
|
# Custom brand colours
|
|
44
|
-
npx create-portal-app my-portal --yes --primary=#E11D48 --accent=#F59E0B --success=#10B981
|
|
44
|
+
npx @lucifer91299/create-portal-app my-portal --yes --primary=#E11D48 --accent=#F59E0B --success=#10B981
|
|
45
45
|
|
|
46
46
|
# Laravel backend
|
|
47
|
-
npx create-portal-app my-portal --yes --auth=laravel
|
|
47
|
+
npx @lucifer91299/create-portal-app my-portal --yes --auth=laravel
|
|
48
48
|
|
|
49
49
|
# Show all flags
|
|
50
|
-
npx create-portal-app --help
|
|
50
|
+
npx @lucifer91299/create-portal-app --help
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
---
|
|
@@ -198,7 +198,7 @@ Clean gradient card login with optional role-select splash. Best for SaaS or min
|
|
|
198
198
|
## Local development (use a local SDK build)
|
|
199
199
|
|
|
200
200
|
```bash
|
|
201
|
-
npx create-portal-app my-portal --yes --local-ui=../../packages/ui
|
|
201
|
+
npx @lucifer91299/create-portal-app my-portal --yes --local-ui=../../packages/ui
|
|
202
202
|
# generates: "@lucifer91299/ui": "file:../../packages/ui" in package.json
|
|
203
203
|
```
|
|
204
204
|
|
package/dist/cli/index.js
CHANGED
|
@@ -595,7 +595,7 @@ export default function DashboardHome() {
|
|
|
595
595
|
|
|
596
596
|
// src/cli/index.ts
|
|
597
597
|
function write(filePath, content) {
|
|
598
|
-
const dir =
|
|
598
|
+
const dir = (0, import_path.dirname)(filePath);
|
|
599
599
|
if (dir) (0, import_fs.mkdirSync)(dir, { recursive: true });
|
|
600
600
|
(0, import_fs.writeFileSync)(filePath, content, "utf-8");
|
|
601
601
|
}
|
|
@@ -827,7 +827,7 @@ function countFiles(dir) {
|
|
|
827
827
|
async function main() {
|
|
828
828
|
const { flags, positional } = parseArgs(process.argv.slice(2));
|
|
829
829
|
if (flags["help"] || flags["h"]) {
|
|
830
|
-
log("Usage: create-portal-app [project-name] [options]");
|
|
830
|
+
log("Usage: npx @lucifer91299/create-portal-app [project-name] [options]");
|
|
831
831
|
log("");
|
|
832
832
|
log(" Without options \u2192 interactive prompts for all settings");
|
|
833
833
|
log("");
|
|
@@ -843,11 +843,11 @@ async function main() {
|
|
|
843
843
|
log(" --local-ui=PATH Use local @lucifer91299/ui (file: reference, for development)");
|
|
844
844
|
log("");
|
|
845
845
|
log("Examples:");
|
|
846
|
-
log(" create-portal-app");
|
|
847
|
-
log(" create-portal-app my-portal");
|
|
848
|
-
log(" create-portal-app my-portal --yes");
|
|
849
|
-
log(" create-portal-app my-portal --yes --auth=laravel --primary=#E11D48");
|
|
850
|
-
log(" create-portal-app my-portal --yes --local-ui=../../ui");
|
|
846
|
+
log(" npx @lucifer91299/create-portal-app");
|
|
847
|
+
log(" npx @lucifer91299/create-portal-app my-portal");
|
|
848
|
+
log(" npx @lucifer91299/create-portal-app my-portal --yes");
|
|
849
|
+
log(" npx @lucifer91299/create-portal-app my-portal --yes --auth=laravel --primary=#E11D48");
|
|
850
|
+
log(" npx @lucifer91299/create-portal-app my-portal --yes --local-ui=../../ui");
|
|
851
851
|
process.exit(0);
|
|
852
852
|
}
|
|
853
853
|
const projectNameArg = positional[0];
|
package/package.json
CHANGED