create-secra 0.1.0 → 0.1.1

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.
Files changed (38) hide show
  1. package/README.md +3 -5
  2. package/bin/index.mjs +15 -11
  3. package/package.json +4 -6
  4. package/template/apps/core/index.html +13 -0
  5. package/template/apps/core/package.json +18 -0
  6. package/template/apps/core/public/favicon.ico +1 -0
  7. package/template/apps/core/public/favicon.svg +1 -0
  8. package/template/apps/core/public/logo.svg +1 -0
  9. package/template/apps/core/src/assets/react.svg +1 -0
  10. package/template/apps/core/src/main.tsx +21 -0
  11. package/template/apps/core/src/pages/index.tsx +4 -0
  12. package/template/apps/core/src/router.ts +15 -0
  13. package/template/apps/core/src/types/auto-imports.d.ts +130 -0
  14. package/template/apps/core/tsconfig.app.json +7 -0
  15. package/template/apps/core/tsconfig.json +7 -0
  16. package/template/apps/core/tsconfig.node.json +7 -0
  17. package/template/apps/core/vite.config.ts +86 -0
  18. package/template/eslint.config.js +23 -0
  19. package/template/package.json +60 -0
  20. package/template/packages/sdk/.swcrc +18 -0
  21. package/template/packages/sdk/package-lock.json +1621 -0
  22. package/template/packages/sdk/package.json +32 -0
  23. package/template/packages/sdk/src/build/index.ts +33 -0
  24. package/template/packages/sdk/src/build/plugins/auto-import.ts +47 -0
  25. package/template/packages/sdk/src/build/plugins/bundle-analyzer.ts +35 -0
  26. package/template/packages/sdk/src/build/plugins/remove-console.ts +21 -0
  27. package/template/packages/sdk/src/build/plugins/unocss.ts +110 -0
  28. package/template/packages/sdk/src/build/plugins/unplugin-icon.ts +43 -0
  29. package/template/packages/sdk/src/index.ts +1 -0
  30. package/template/packages/sdk/src/request/index.ts +341 -0
  31. package/template/packages/sdk/src/styles/reset.css +111 -0
  32. package/template/packages/sdk/tsconfig.json +16 -0
  33. package/template/pnpm-lock.yaml +8055 -0
  34. package/template/pnpm-workspace.yaml +3 -0
  35. package/template/tsconfig.app.json +29 -0
  36. package/template/tsconfig.json +7 -0
  37. package/template/tsconfig.node.json +27 -0
  38. package/template/turbo.json +17 -0
@@ -0,0 +1,3 @@
1
+ packages:
2
+ - "apps/*"
3
+ - "packages/*"
@@ -0,0 +1,29 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
4
+ "composite": true,
5
+ "target": "ES2022",
6
+ "useDefineForClassFields": true,
7
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
8
+ "module": "ESNext",
9
+ "types": ["vite/client"],
10
+ "skipLibCheck": true,
11
+
12
+ /* Bundler mode */
13
+ "moduleResolution": "bundler",
14
+ "allowImportingTsExtensions": true,
15
+ "verbatimModuleSyntax": true,
16
+ "moduleDetection": "force",
17
+ "noEmit": true,
18
+ "jsx": "react-jsx",
19
+
20
+ /* Linting */
21
+ "strict": true,
22
+ "noUnusedLocals": true,
23
+ "noUnusedParameters": true,
24
+ "erasableSyntaxOnly": true,
25
+ "noFallthroughCasesInSwitch": true,
26
+ "noUncheckedSideEffectImports": true
27
+ },
28
+ "include": ["src"]
29
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "files": [],
3
+ "references": [
4
+ { "path": "./tsconfig.app.json" },
5
+ { "path": "./tsconfig.node.json" }
6
+ ]
7
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "compilerOptions": {
3
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4
+ "composite": true,
5
+ "target": "ES2023",
6
+ "lib": ["ES2023"],
7
+ "module": "ESNext",
8
+ "types": ["node"],
9
+ "skipLibCheck": true,
10
+
11
+ /* Bundler mode */
12
+ "moduleResolution": "bundler",
13
+ "allowImportingTsExtensions": true,
14
+ "verbatimModuleSyntax": true,
15
+ "moduleDetection": "force",
16
+ "noEmit": true,
17
+
18
+ /* Linting */
19
+ "strict": true,
20
+ "noUnusedLocals": true,
21
+ "noUnusedParameters": true,
22
+ "erasableSyntaxOnly": true,
23
+ "noFallthroughCasesInSwitch": true,
24
+ "noUncheckedSideEffectImports": true
25
+ },
26
+ "include": ["vite.config.ts"]
27
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "https://turbo.build/schema.json",
3
+ "tasks": {
4
+ "build": {
5
+ "dependsOn": ["^build"],
6
+ "outputs": ["dist/**", "build/**"]
7
+ },
8
+ "dev": {
9
+ "cache": false,
10
+ "persistent": true
11
+ },
12
+ "lint": {},
13
+ "test": {
14
+ "dependsOn": ["^test"]
15
+ }
16
+ }
17
+ }