@hupu-tech/shaper 0.0.0-stage → 0.2.3

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 (82) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/LICENSE +3 -0
  3. package/README.md +98 -2
  4. package/dist/api.d.ts +29 -0
  5. package/dist/auth.d.ts +80 -0
  6. package/dist/cli.js +14 -0
  7. package/dist/cloud-service.d.ts +55 -0
  8. package/dist/cloud.d.ts +71 -0
  9. package/dist/config.d.ts +21 -0
  10. package/dist/core.d.ts +17 -0
  11. package/dist/credentials.d.ts +23 -0
  12. package/dist/dev-runner.js +1 -0
  13. package/dist/dev.d.ts +66 -0
  14. package/dist/index.d.ts +9 -0
  15. package/dist/index.js +1 -0
  16. package/dist/legacy-cloud.d.ts +25 -0
  17. package/dist/runtime.d.ts +54 -0
  18. package/dist/runtime.js +1 -0
  19. package/dist/shared-2ZNSJXPO.js +15 -0
  20. package/dist/shared-BTZI42QW.js +17 -0
  21. package/dist/workspace.d.ts +84 -0
  22. package/package.json +73 -4
  23. package/skills/compat/hupu-cloud/SKILL.md +8 -0
  24. package/skills/core/hupu-business/SKILL.md +14 -0
  25. package/skills/core/hupu-business/references/runtime.md +55 -0
  26. package/skills/core/shaper-backend/SKILL.md +35 -0
  27. package/skills/core/shaper-backend/references/legacy.md +41 -0
  28. package/skills/core/shaper-backend/references/node-server.md +44 -0
  29. package/skills/core/shaper-design/SKILL.md +16 -0
  30. package/skills/core/shaper-development/SKILL.md +54 -0
  31. package/skills/core/shaper-game-development/SKILL.md +16 -0
  32. package/skills/core/shaper-product/SKILL.md +17 -0
  33. package/skills/core/shaper-product/references/ecosystem.md +10 -0
  34. package/skills/core/shaper-release/SKILL.md +17 -0
  35. package/skills/game/shaper-idle-game/SKILL.md +16 -0
  36. package/skills/manifest.json +18 -0
  37. package/templates/cloud-service/README.md +32 -0
  38. package/templates/cloud-service/cloud.json +30 -0
  39. package/templates/cloud-service/handlers.cjs +46 -0
  40. package/templates/cloud-service/migrations/202610250001_init.sql +5 -0
  41. package/templates/cloud-service/migrations/202610250002_events.sql +8 -0
  42. package/templates/h5/docs/design.md +3 -0
  43. package/templates/h5/docs/product.md +3 -0
  44. package/templates/h5/docs/validation.md +3 -0
  45. package/templates/h5/index.html +24 -0
  46. package/templates/h5/package-lock.json +828 -0
  47. package/templates/h5/package.json +15 -0
  48. package/templates/h5/public/.gitkeep +0 -0
  49. package/templates/h5/shaper.config.json +7 -0
  50. package/templates/h5/src/main.js +7 -0
  51. package/templates/h5/src/style.css +21 -0
  52. package/templates/h5/vite.config.js +4 -0
  53. package/templates/phaser/docs/design.md +3 -0
  54. package/templates/phaser/docs/product.md +3 -0
  55. package/templates/phaser/docs/validation.md +3 -0
  56. package/templates/phaser/index.html +2 -0
  57. package/templates/phaser/package-lock.json +1287 -0
  58. package/templates/phaser/package.json +19 -0
  59. package/templates/phaser/public/.gitkeep +0 -0
  60. package/templates/phaser/shaper.config.json +7 -0
  61. package/templates/phaser/src/game/create-game.ts +5 -0
  62. package/templates/phaser/src/game/rules/scoring.ts +2 -0
  63. package/templates/phaser/src/game/scenes/PlayScene.ts +15 -0
  64. package/templates/phaser/src/main.ts +4 -0
  65. package/templates/phaser/src/styles.css +1 -0
  66. package/templates/phaser/tsconfig.json +21 -0
  67. package/templates/phaser/vite.config.ts +4 -0
  68. package/templates/react/docs/design.md +3 -0
  69. package/templates/react/docs/product.md +3 -0
  70. package/templates/react/docs/validation.md +3 -0
  71. package/templates/react/index.html +2 -0
  72. package/templates/react/package-lock.json +1329 -0
  73. package/templates/react/package.json +22 -0
  74. package/templates/react/public/.gitkeep +0 -0
  75. package/templates/react/shaper.config.json +7 -0
  76. package/templates/react/src/app/App.tsx +5 -0
  77. package/templates/react/src/app/styles.css +1 -0
  78. package/templates/react/src/main.tsx +6 -0
  79. package/templates/react/tsconfig.json +21 -0
  80. package/templates/react/vite.config.ts +4 -0
  81. package/vendor/cloud-server/hupu-cloud-server-0.1.0.tgz +0 -0
  82. package/vendor/cloud-server/release.json +12 -0
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "shaper-react-app",
3
+ "version": "0.0.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite",
8
+ "build": "tsc --noEmit && vite build",
9
+ "check": "tsc --noEmit",
10
+ "preview": "vite preview"
11
+ },
12
+ "dependencies": {
13
+ "react": "19.2.0",
14
+ "react-dom": "19.2.0"
15
+ },
16
+ "devDependencies": {
17
+ "vite": "8.3.4",
18
+ "typescript": "7.0.2",
19
+ "@types/react": "19.2.2",
20
+ "@types/react-dom": "19.2.2"
21
+ }
22
+ }
File without changes
@@ -0,0 +1,7 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "devCommand": "npm run dev -- --host 127.0.0.1 --port {port} --strictPort",
4
+ "devUrl": "http://127.0.0.1:{port}",
5
+ "buildCommand": "npm run build",
6
+ "outputDir": "dist"
7
+ }
@@ -0,0 +1,5 @@
1
+ import { useState } from 'react';
2
+ export function App() {
3
+ const [started, setStarted] = useState(false);
4
+ return <main><p>SHAPER</p><h1>今天,想创造点什么?</h1><p aria-live="polite">{started ? '准备好了,把你的想法变成作品。' : '你的第一个页面已经准备好。'}</p><button onClick={() => setStarted(!started)}>{started ? '重新开始' : '开始体验'}</button></main>;
5
+ }
@@ -0,0 +1 @@
1
+ body{margin:0;font-family:system-ui,sans-serif;color:#1a1f26;background:#fff}main{max-width:640px;margin:15vh auto;padding:24px}h1{font-size:clamp(28px,6vw,44px)}button{padding:12px 24px;background:#4a8b8f;color:white;border:0;font:inherit;cursor:pointer}button:focus-visible{outline:3px solid #1a1f26;outline-offset:4px}
@@ -0,0 +1,6 @@
1
+ import { createRoot } from 'react-dom/client';
2
+ import { App } from './app/App';
3
+ import './app/styles.css';
4
+ const root = createRoot(document.getElementById('app')!);
5
+ root.render(<App />);
6
+ if (import.meta.hot) import.meta.hot.dispose(() => root.unmount());
@@ -0,0 +1,21 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "moduleResolution": "Bundler",
6
+ "strict": true,
7
+ "noEmit": true,
8
+ "skipLibCheck": true,
9
+ "lib": [
10
+ "ES2022",
11
+ "DOM"
12
+ ],
13
+ "jsx": "react-jsx",
14
+ "types": [
15
+ "vite/client"
16
+ ]
17
+ },
18
+ "include": [
19
+ "src"
20
+ ]
21
+ }
@@ -0,0 +1,4 @@
1
+ import { defineConfig } from 'vite';
2
+ // Shaper's host handles requests. Modern target browsers support modulepreload;
3
+ // avoid injecting Vite's fetch-based preload fallback into the delivered app.
4
+ export default defineConfig({ base: './', build: { modulePreload: { polyfill: false } } });
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "@hupu/cloud-server",
3
+ "version": "0.1.0",
4
+ "archive": "hupu-cloud-server-0.1.0.tgz",
5
+ "sha256": "774296e92033680ad1261c44e2af03c424f1375c54bbc973656324c4ba7b81dd",
6
+ "templateHashes": {
7
+ "handlers.cjs": "b1244fbbc043820fb3485c49a1452804a8214251c5937eb8e5f237ef0104e9a9",
8
+ "cloud.json": "45045523a27516339a3d7e1d4b6ac73e761e4e18db184a74639af605cf0df249",
9
+ "migrations/202610250001_init.sql": "38f9a69e1f0f4967e20d1f07c02e2d0b719ddb284ddee7b3136a0dc016766797",
10
+ "migrations/202610250002_events.sql": "bb9a198a7babe4040cf09c7c29def25f4d7bcbeaf1dcad4a396b3778251dd19b"
11
+ }
12
+ }