@hupu-tech/shaper 0.0.0-stage → 0.2.2
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/CHANGELOG.md +19 -0
- package/LICENSE +3 -0
- package/README.md +282 -2
- package/dist/api.d.ts +29 -0
- package/dist/auth.d.ts +80 -0
- package/dist/cli.js +14 -0
- package/dist/cloud-service.d.ts +55 -0
- package/dist/cloud.d.ts +71 -0
- package/dist/config.d.ts +21 -0
- package/dist/core.d.ts +17 -0
- package/dist/credentials.d.ts +23 -0
- package/dist/dev-runner.js +1 -0
- package/dist/dev.d.ts +66 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -0
- package/dist/legacy-cloud.d.ts +25 -0
- package/dist/runtime.d.ts +54 -0
- package/dist/runtime.js +1 -0
- package/dist/shared-2ZNSJXPO.js +15 -0
- package/dist/shared-BTZI42QW.js +17 -0
- package/dist/workspace.d.ts +84 -0
- package/package.json +73 -4
- package/skills/compat/hupu-cloud/SKILL.md +8 -0
- package/skills/core/hupu-business/SKILL.md +14 -0
- package/skills/core/hupu-business/references/runtime.md +55 -0
- package/skills/core/shaper-backend/SKILL.md +35 -0
- package/skills/core/shaper-backend/references/legacy.md +41 -0
- package/skills/core/shaper-backend/references/node-server.md +44 -0
- package/skills/core/shaper-design/SKILL.md +16 -0
- package/skills/core/shaper-development/SKILL.md +54 -0
- package/skills/core/shaper-game-development/SKILL.md +16 -0
- package/skills/core/shaper-product/SKILL.md +17 -0
- package/skills/core/shaper-product/references/ecosystem.md +10 -0
- package/skills/core/shaper-release/SKILL.md +17 -0
- package/skills/game/shaper-idle-game/SKILL.md +16 -0
- package/skills/manifest.json +18 -0
- package/templates/cloud-service/README.md +32 -0
- package/templates/cloud-service/cloud.json +30 -0
- package/templates/cloud-service/handlers.cjs +46 -0
- package/templates/cloud-service/migrations/202610250001_init.sql +5 -0
- package/templates/cloud-service/migrations/202610250002_events.sql +8 -0
- package/templates/h5/docs/design.md +3 -0
- package/templates/h5/docs/product.md +3 -0
- package/templates/h5/docs/validation.md +3 -0
- package/templates/h5/index.html +24 -0
- package/templates/h5/package-lock.json +828 -0
- package/templates/h5/package.json +15 -0
- package/templates/h5/public/.gitkeep +0 -0
- package/templates/h5/shaper.config.json +7 -0
- package/templates/h5/src/main.js +7 -0
- package/templates/h5/src/style.css +21 -0
- package/templates/h5/vite.config.js +4 -0
- package/templates/phaser/docs/design.md +3 -0
- package/templates/phaser/docs/product.md +3 -0
- package/templates/phaser/docs/validation.md +3 -0
- package/templates/phaser/index.html +2 -0
- package/templates/phaser/package-lock.json +1287 -0
- package/templates/phaser/package.json +19 -0
- package/templates/phaser/public/.gitkeep +0 -0
- package/templates/phaser/shaper.config.json +7 -0
- package/templates/phaser/src/game/create-game.ts +5 -0
- package/templates/phaser/src/game/rules/scoring.ts +2 -0
- package/templates/phaser/src/game/scenes/PlayScene.ts +15 -0
- package/templates/phaser/src/main.ts +4 -0
- package/templates/phaser/src/styles.css +1 -0
- package/templates/phaser/tsconfig.json +21 -0
- package/templates/phaser/vite.config.ts +4 -0
- package/templates/react/docs/design.md +3 -0
- package/templates/react/docs/product.md +3 -0
- package/templates/react/docs/validation.md +3 -0
- package/templates/react/index.html +2 -0
- package/templates/react/package-lock.json +1329 -0
- package/templates/react/package.json +22 -0
- package/templates/react/public/.gitkeep +0 -0
- package/templates/react/shaper.config.json +7 -0
- package/templates/react/src/app/App.tsx +5 -0
- package/templates/react/src/app/styles.css +1 -0
- package/templates/react/src/main.tsx +6 -0
- package/templates/react/tsconfig.json +21 -0
- package/templates/react/vite.config.ts +4 -0
- package/vendor/cloud-server/hupu-cloud-server-0.1.0.tgz +0 -0
- 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,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,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 } } });
|
|
Binary file
|
|
@@ -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
|
+
}
|