@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,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "shaper-h5-app",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite",
|
|
8
|
+
"build": "vite build",
|
|
9
|
+
"preview": "vite preview",
|
|
10
|
+
"check": "node --check src/main.js"
|
|
11
|
+
},
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"vite": "8.3.4"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import './style.css';
|
|
2
|
+
let count = 0;
|
|
3
|
+
document.querySelector('#play').addEventListener('click', () => {
|
|
4
|
+
count += 1;
|
|
5
|
+
document.querySelector('#status').textContent = `第 ${count} 个灵感,已经点亮。`;
|
|
6
|
+
document.querySelector('.orb').style.transform = `rotate(${count % 2 ? -6 : 6}deg)`;
|
|
7
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
:root { color: #173b35; background: #f1f0e7; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-synthesis: none; }
|
|
2
|
+
* { box-sizing: border-box; }
|
|
3
|
+
body { margin: 0; }
|
|
4
|
+
main { max-width: 1200px; min-height: 100svh; margin: auto; padding: 36px 48px; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 32px; }
|
|
5
|
+
header, footer { grid-column: 1 / -1; }
|
|
6
|
+
header { align-self: start; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
|
|
7
|
+
.brand { font-size: 22px; letter-spacing: .14em; font-weight: 800; }
|
|
8
|
+
.tag, footer { font-size: 12px; color: #5b6c63; }
|
|
9
|
+
.eyebrow { font-size: 12px; letter-spacing: .2em; font-weight: 600; }
|
|
10
|
+
h1 { font-size: clamp(36px, 4.5vw, 62px); line-height: 1.18; letter-spacing: -.04em; margin: 25px 0; }
|
|
11
|
+
.intro { max-width: 400px; color: #5b6c63; font-size: 16px; line-height: 1.8; }
|
|
12
|
+
button { margin-top: 20px; cursor: pointer; background: #173b35; color: white; border: 0; border-radius: 6px; padding: 17px 24px; font-size: 15px; }
|
|
13
|
+
button span { margin-left: 32px; }
|
|
14
|
+
button:focus-visible { outline: 3px solid #a07822; outline-offset: 4px; }
|
|
15
|
+
#status { font-size: 13px; margin-top: 18px; }
|
|
16
|
+
.orb { width: min(100%, 420px); aspect-ratio: 1; border-radius: 45% 55% 49% 51%; background: #d9e48a; display: grid; place-items: center; transform: rotate(6deg); transition: transform .3s; }
|
|
17
|
+
.orb span { font-size: clamp(28px, 3.5vw, 46px); line-height: 1.15; font-weight: 800; letter-spacing: -.035em; }
|
|
18
|
+
.orb em { font-style: normal; color: #6c8031; }
|
|
19
|
+
footer { align-self: end; border-top: 1px solid #d6dacf; padding-top: 22px; }
|
|
20
|
+
@media (max-width: 700px) { main { padding: 24px; grid-template-columns: 1fr; } .tag { max-width: 120px; } aside { padding: 12px 30px; } footer { line-height: 1.8; } }
|
|
21
|
+
@media (prefers-reduced-motion: reduce) { .orb { transition: none; } }
|
|
@@ -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 } } });
|