create-super-admin 0.0.0-bootstrap.0
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 +9 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +4 -0
- package/dist/generate-starter.d.ts +9 -0
- package/dist/generate-starter.d.ts.map +1 -0
- package/dist/generate-starter.js +150 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/parse-args.d.ts +21 -0
- package/dist/parse-args.d.ts.map +1 -0
- package/dist/parse-args.js +104 -0
- package/dist/run-create-super-admin.d.ts +8 -0
- package/dist/run-create-super-admin.d.ts.map +1 -0
- package/dist/run-create-super-admin.js +33 -0
- package/dist/templates.d.ts +22 -0
- package/dist/templates.d.ts.map +1 -0
- package/dist/templates.js +998 -0
- package/dist/theme-options.d.ts +14 -0
- package/dist/theme-options.d.ts.map +1 -0
- package/dist/theme-options.js +35 -0
- package/package.json +43 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const starterThemeIds: readonly ["base", "crypto", "cyberpunk", "industrial", "newsprint"];
|
|
2
|
+
export declare const starterPackageManagers: readonly ["pnpm", "npm", "yarn", "bun"];
|
|
3
|
+
export type StarterThemeId = (typeof starterThemeIds)[number];
|
|
4
|
+
export type StarterPackageManager = (typeof starterPackageManagers)[number];
|
|
5
|
+
export type StarterLocaleId = 'zh-CN' | 'en-US';
|
|
6
|
+
export type ThemeDefinition = {
|
|
7
|
+
id: StarterThemeId;
|
|
8
|
+
packageName: string;
|
|
9
|
+
profileExport: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const themeDefinitions: Record<StarterThemeId, ThemeDefinition>;
|
|
12
|
+
export declare function isStarterThemeId(value: string): value is StarterThemeId;
|
|
13
|
+
export declare function isStarterPackageManager(value: string): value is StarterPackageManager;
|
|
14
|
+
//# sourceMappingURL=theme-options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-options.d.ts","sourceRoot":"","sources":["../src/theme-options.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,qEAAsE,CAAA;AAClG,eAAO,MAAM,sBAAsB,yCAA0C,CAAA;AAE7E,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAA;AAC7D,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAA;AAC3E,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,OAAO,CAAA;AAE/C,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,cAAc,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,cAAc,EAAE,eAAe,CA0BpE,CAAA;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAEvE;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAErF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export const starterThemeIds = ['base', 'crypto', 'cyberpunk', 'industrial', 'newsprint'];
|
|
2
|
+
export const starterPackageManagers = ['pnpm', 'npm', 'yarn', 'bun'];
|
|
3
|
+
export const themeDefinitions = {
|
|
4
|
+
base: {
|
|
5
|
+
id: 'base',
|
|
6
|
+
packageName: '@super-admin-org/theme-base',
|
|
7
|
+
profileExport: 'baseProfile'
|
|
8
|
+
},
|
|
9
|
+
crypto: {
|
|
10
|
+
id: 'crypto',
|
|
11
|
+
packageName: '@super-admin-org/theme-crypto',
|
|
12
|
+
profileExport: 'cryptoProfile'
|
|
13
|
+
},
|
|
14
|
+
cyberpunk: {
|
|
15
|
+
id: 'cyberpunk',
|
|
16
|
+
packageName: '@super-admin-org/theme-cyberpunk',
|
|
17
|
+
profileExport: 'cyberpunkProfile'
|
|
18
|
+
},
|
|
19
|
+
industrial: {
|
|
20
|
+
id: 'industrial',
|
|
21
|
+
packageName: '@super-admin-org/theme-industrial',
|
|
22
|
+
profileExport: 'industrialProfile'
|
|
23
|
+
},
|
|
24
|
+
newsprint: {
|
|
25
|
+
id: 'newsprint',
|
|
26
|
+
packageName: '@super-admin-org/theme-newsprint',
|
|
27
|
+
profileExport: 'newsprintProfile'
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
export function isStarterThemeId(value) {
|
|
31
|
+
return starterThemeIds.includes(value);
|
|
32
|
+
}
|
|
33
|
+
export function isStarterPackageManager(value) {
|
|
34
|
+
return starterPackageManagers.includes(value);
|
|
35
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "create-super-admin",
|
|
3
|
+
"version": "0.0.0-bootstrap.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"bin": {
|
|
6
|
+
"create-super-admin": "./dist/cli.js"
|
|
7
|
+
},
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"prepublishOnly": "node ../../scripts/prepublish-guard.mjs .",
|
|
16
|
+
"build": "tsc -p tsconfig.build.json",
|
|
17
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
18
|
+
"test": "vitest run",
|
|
19
|
+
"lint": "tsc -p tsconfig.json --noEmit"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@types/node": "^24.0.0",
|
|
23
|
+
"typescript": "^5.0.0",
|
|
24
|
+
"vitest": "^4.0.0"
|
|
25
|
+
},
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "https://github.com/lineo7387/super-admin.git",
|
|
30
|
+
"directory": "packages/cli"
|
|
31
|
+
},
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/lineo7387/super-admin/issues"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://github.com/lineo7387/super-admin#readme",
|
|
36
|
+
"files": [
|
|
37
|
+
"dist",
|
|
38
|
+
"README.md"
|
|
39
|
+
],
|
|
40
|
+
"main": "./dist/index.js",
|
|
41
|
+
"module": "./dist/index.js",
|
|
42
|
+
"types": "./dist/index.d.ts"
|
|
43
|
+
}
|