create-wp-reactor 0.1.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.
- package/bin/create-app.js +61 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +62 -0
- package/dist/index.js.map +1 -0
- package/package.json +48 -0
- package/templates/client/.env.example +7 -0
- package/templates/client/.github/workflows/ci.yml +24 -0
- package/templates/client/.github/workflows/deploy.yml +43 -0
- package/templates/client/README.md +40 -0
- package/templates/client/apps/webapp/.env.example +10 -0
- package/templates/client/apps/webapp/README.md +14 -0
- package/templates/client/apps/webapp/blocks/cta-banner/block.json +39 -0
- package/templates/client/apps/webapp/blocks/cta-banner/edit.tsx +65 -0
- package/templates/client/apps/webapp/blocks/cta-banner/editor.scss +3 -0
- package/templates/client/apps/webapp/blocks/cta-banner/index.tsx +9 -0
- package/templates/client/apps/webapp/blocks/cta-banner/render.php +11 -0
- package/templates/client/apps/webapp/blocks/cta-banner/save.tsx +3 -0
- package/templates/client/apps/webapp/package.json +44 -0
- package/templates/client/apps/webapp/schemas/cta-banner.json +41 -0
- package/templates/client/apps/webapp/src/authOps.ts +17 -0
- package/templates/client/apps/webapp/src/blocks.tsx +29 -0
- package/templates/client/apps/webapp/src/cart.ts +28 -0
- package/templates/client/apps/webapp/src/env.ts +28 -0
- package/templates/client/apps/webapp/src/renderers/CtaBannerBlock.tsx +20 -0
- package/templates/client/apps/webapp/src/router.tsx +42 -0
- package/templates/client/apps/webapp/src/routes/__root.tsx +45 -0
- package/templates/client/apps/webapp/src/routes/index.tsx +51 -0
- package/templates/client/apps/webapp/src/routes/preview.tsx +32 -0
- package/templates/client/apps/webapp/src/server/auth.ts +66 -0
- package/templates/client/apps/webapp/src/server/authMiddleware.ts +79 -0
- package/templates/client/apps/webapp/src/server/cart.ts +68 -0
- package/templates/client/apps/webapp/src/server/cartMiddleware.ts +60 -0
- package/templates/client/apps/webapp/src/server/session.ts +34 -0
- package/templates/client/apps/webapp/src/start.ts +19 -0
- package/templates/client/apps/webapp/src/styles.css +1 -0
- package/templates/client/apps/webapp/tsconfig.json +12 -0
- package/templates/client/apps/webapp/vite.config.ts +49 -0
- package/templates/client/apps/webapp/wp-reactor.config.json +13 -0
- package/templates/client/apps/wordpress/Dockerfile +11 -0
- package/templates/client/apps/wordpress/docker/child-entrypoint.sh +13 -0
- package/templates/client/apps/wordpress/theme-__PROJECT_NAME__/functions.php +12 -0
- package/templates/client/apps/wordpress/theme-__PROJECT_NAME__/index.php +2 -0
- package/templates/client/apps/wordpress/theme-__PROJECT_NAME__/src/blocks/.gitkeep +0 -0
- package/templates/client/apps/wordpress/theme-__PROJECT_NAME__/style.css +8 -0
- package/templates/client/apps/wordpress/theme-__PROJECT_NAME__/theme.json +5 -0
- package/templates/client/gitignore +14 -0
- package/templates/client/npmrc +5 -0
- package/templates/client/package.json +20 -0
- package/templates/client/pnpm-workspace.yaml +3 -0
- package/templates/client/turbo.json +9 -0
- package/templates/client/wp-reactor.config.json +9 -0
|
File without changes
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Packages @wp-reactor/* publiés sur GitHub Packages (org wp-reactor).
|
|
2
|
+
# Auth locale requise : ajouter une ligne
|
|
3
|
+
# //npm.pkg.github.com/:_authToken=<PAT read:packages>
|
|
4
|
+
# (ou via ~/.npmrc). En CI, actions/setup-node l'injecte.
|
|
5
|
+
@wp-reactor:registry=https://npm.pkg.github.com
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@__PROJECT_NAME__/source",
|
|
3
|
+
"private": true,
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Repo client WP Reactor — coque webapp + thème enfant.",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "turbo run dev",
|
|
8
|
+
"build": "turbo run build",
|
|
9
|
+
"check-types": "turbo run check-types",
|
|
10
|
+
"lint": "turbo run lint",
|
|
11
|
+
"gen:block": "gen-block"
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@wp-reactor/cli": "^0.1.0",
|
|
15
|
+
"turbo": "^2.9.6",
|
|
16
|
+
"typescript": "5.9.2"
|
|
17
|
+
},
|
|
18
|
+
"packageManager": "pnpm@11.3.0",
|
|
19
|
+
"engines": { "node": ">=20.19.0 || >=22.12.0" }
|
|
20
|
+
}
|