@appinit/cli 1.1.0 → 1.2.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.
Files changed (39) hide show
  1. package/LICENSE +33 -0
  2. package/dist/index.js +82 -10
  3. package/dist/templates/frontend-react/.appinit-generate/project/README.md +14 -0
  4. package/dist/templates/frontend-react/.appinit-generate/project/index.html +12 -0
  5. package/dist/templates/frontend-react/.appinit-generate/project/package.json +26 -0
  6. package/dist/templates/frontend-react/.appinit-generate/project/public/vite.svg +30 -0
  7. package/dist/templates/frontend-react/.appinit-generate/project/src/App.tsx +16 -0
  8. package/dist/templates/frontend-react/.appinit-generate/project/src/assets/react.svg +1 -0
  9. package/dist/templates/frontend-react/.appinit-generate/project/src/index.css +9 -0
  10. package/dist/templates/frontend-react/.appinit-generate/project/src/main.tsx +10 -0
  11. package/dist/templates/frontend-react/.appinit-generate/project/tsconfig.app.json +31 -0
  12. package/dist/templates/frontend-react/.appinit-generate/project/tsconfig.json +7 -0
  13. package/dist/templates/frontend-react/.appinit-generate/project/tsconfig.node.json +26 -0
  14. package/dist/templates/frontend-react/.appinit-generate/project/vite.config.ts +16 -0
  15. package/dist/templates/frontend-react/docs/README.md +12 -0
  16. package/dist/templates/frontend-react/hooks/afterRender.ts +3 -0
  17. package/dist/templates/frontend-react/hooks/afterWrite.ts +3 -0
  18. package/dist/templates/frontend-react/hooks/beforeRender.ts +3 -0
  19. package/dist/templates/frontend-react/hooks/beforeWrite.ts +3 -0
  20. package/dist/templates/frontend-react/package.json +16 -0
  21. package/dist/templates/frontend-react/template/.env__tmpl +1 -0
  22. package/dist/templates/frontend-react/template/README.md__tmpl +14 -0
  23. package/dist/templates/frontend-react/template/_gitignore +41 -0
  24. package/dist/templates/frontend-react/template/index.html__tmpl +12 -0
  25. package/dist/templates/frontend-react/template/package.json__tmpl +26 -0
  26. package/dist/templates/frontend-react/template/public/vite.svg +30 -0
  27. package/dist/templates/frontend-react/template/src/App.tsx__tmpl +16 -0
  28. package/dist/templates/frontend-react/template/src/assets/react.svg +1 -0
  29. package/dist/templates/frontend-react/template/src/index.css__tmpl +9 -0
  30. package/dist/templates/frontend-react/template/src/main.tsx__tmpl +10 -0
  31. package/dist/templates/frontend-react/template/tsconfig.app.json__tmpl +31 -0
  32. package/dist/templates/frontend-react/template/tsconfig.json__tmpl +7 -0
  33. package/dist/templates/frontend-react/template/tsconfig.node.json__tmpl +26 -0
  34. package/dist/templates/frontend-react/template/vite.config.ts__tmpl +16 -0
  35. package/dist/templates/frontend-react/template.config.ts +30 -0
  36. package/dist/templates/frontend-react/variables/defaults.ts +6 -0
  37. package/dist/templates/frontend-react/variables/schema.ts +17 -0
  38. package/dist/templates/frontend-react/variables/transform.ts +10 -0
  39. package/package.json +24 -3
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@appinit/cli",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "description": "The command-line interface for Appinit OS.",
7
7
  "main": "./dist/index.js",
8
8
  "module": "./dist/index.js",
9
+ "license": "UNLICENSED",
9
10
  "exports": {
10
11
  ".": {
11
12
  "import": "./dist/index.js"
@@ -14,18 +15,32 @@
14
15
  "bin": {
15
16
  "appinit": "./bin/appinit.js"
16
17
  },
18
+ "keywords": [
19
+ "appinit",
20
+ "developer-os",
21
+ "project-initializer",
22
+ "template-engine",
23
+ "addon-system"
24
+ ],
17
25
  "files": [
18
- "dist"
26
+ "dist",
27
+ "bin",
28
+ "LICENSE",
29
+ "README.md",
30
+ "templates"
19
31
  ],
20
32
  "dependencies": {
21
33
  "@clack/prompts": "^0.11.0",
34
+ "chokidar": "^5.0.0",
35
+ "esbuild": "^0.27.1",
22
36
  "kleur": "^4.1.5",
23
37
  "mri": "^1.2.0",
38
+ "sirv": "^3.0.2",
24
39
  "zod": "^4.1.12"
25
40
  },
26
41
  "devDependencies": {
27
- "typescript": "^5.4.0",
28
42
  "@types/node": "^20.0.0",
43
+ "typescript": "^5.4.0",
29
44
  "vitest": "^1.5.0"
30
45
  },
31
46
  "publishConfig": {
@@ -38,11 +53,17 @@
38
53
  "name": "Pradeep Kumar",
39
54
  "url": "git@fwak:frontendweb-ak/appinit.git"
40
55
  },
56
+ "bugs": {
57
+ "url": "https://github.com/frontendweb-ak/appinit/issues"
58
+ },
59
+ "homepage": "",
41
60
  "scripts": {
42
61
  "clean": "node ../../scripts/clean-dist.mjs dist",
43
62
  "prebuild": "pnpm clean",
44
63
  "build": "tsup src/index.ts --format esm --clean",
64
+ "postbuild": "node ./scripts/copy-templates.js",
45
65
  "dev": "tsup src/index.ts --format esm --watch",
66
+ "postdev": "node ./scripts/copy-templates.js",
46
67
  "typecheck": "tsc -p tsconfig.json --noEmit",
47
68
  "test": "vitest"
48
69
  }