create-mercato-app 0.4.9-develop-db9ecc46fc → 0.4.9-develop-d989387b7a
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/agentic/shared/AGENTS.md.template +2 -0
- package/agentic/shared/ai/skills/eject-and-customize/SKILL.md +3 -1
- package/dist/agentic/shared/AGENTS.md.template +2 -0
- package/dist/agentic/shared/ai/skills/eject-and-customize/SKILL.md +3 -1
- package/dist/index.js +3 -0
- package/package.json +1 -1
- package/template/AGENTS.md +1 -0
- package/template/package.json.template +2 -1
- package/template/src/app/globals.css +1 -0
|
@@ -7,6 +7,7 @@ Do NOT load the entire src/ tree — Open Mercato apps can have many modules.
|
|
|
7
7
|
|
|
8
8
|
A standalone Open Mercato application built ON TOP of the framework.
|
|
9
9
|
The framework lives in `node_modules/@open-mercato/*`. Never edit `node_modules` directly.
|
|
10
|
+
Install official packages with `yarn mercato module add @open-mercato/<package>`.
|
|
10
11
|
To customise a built-in module beyond extensions, eject with `yarn mercato eject <module>`.
|
|
11
12
|
|
|
12
13
|
## Task → Context Map
|
|
@@ -158,6 +159,7 @@ import type { ApiInterceptor } from '@open-mercato/shared/lib/crud/api-intercept
|
|
|
158
159
|
|---|---|
|
|
159
160
|
| `yarn dev` | Start dev server |
|
|
160
161
|
| `yarn generate` | Regenerate `.mercato/generated/` |
|
|
162
|
+
| `yarn mercato module add <package>` | Install and enable an official module package |
|
|
161
163
|
| `yarn db:generate` | Create migration for entity changes |
|
|
162
164
|
| `yarn db:migrate` | Apply pending migrations |
|
|
163
165
|
| `yarn initialize` | Bootstrap DB + first admin account |
|
|
@@ -99,11 +99,13 @@ Save this in `.ai/specs/` or a project README for future reference.
|
|
|
99
99
|
### Run the Eject Command
|
|
100
100
|
|
|
101
101
|
```bash
|
|
102
|
-
yarn mercato eject <module-id>
|
|
102
|
+
yarn mercato module eject <module-id>
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
This copies the module from `node_modules/@open-mercato/core/dist/modules/<module-id>/` to `src/modules/<module-id>/`.
|
|
106
106
|
|
|
107
|
+
The legacy alias `yarn mercato eject <module-id>` remains supported.
|
|
108
|
+
|
|
107
109
|
### Post-Ejection Steps
|
|
108
110
|
|
|
109
111
|
```bash
|
|
@@ -7,6 +7,7 @@ Do NOT load the entire src/ tree — Open Mercato apps can have many modules.
|
|
|
7
7
|
|
|
8
8
|
A standalone Open Mercato application built ON TOP of the framework.
|
|
9
9
|
The framework lives in `node_modules/@open-mercato/*`. Never edit `node_modules` directly.
|
|
10
|
+
Install official packages with `yarn mercato module add @open-mercato/<package>`.
|
|
10
11
|
To customise a built-in module beyond extensions, eject with `yarn mercato eject <module>`.
|
|
11
12
|
|
|
12
13
|
## Task → Context Map
|
|
@@ -158,6 +159,7 @@ import type { ApiInterceptor } from '@open-mercato/shared/lib/crud/api-intercept
|
|
|
158
159
|
|---|---|
|
|
159
160
|
| `yarn dev` | Start dev server |
|
|
160
161
|
| `yarn generate` | Regenerate `.mercato/generated/` |
|
|
162
|
+
| `yarn mercato module add <package>` | Install and enable an official module package |
|
|
161
163
|
| `yarn db:generate` | Create migration for entity changes |
|
|
162
164
|
| `yarn db:migrate` | Apply pending migrations |
|
|
163
165
|
| `yarn initialize` | Bootstrap DB + first admin account |
|
|
@@ -99,11 +99,13 @@ Save this in `.ai/specs/` or a project README for future reference.
|
|
|
99
99
|
### Run the Eject Command
|
|
100
100
|
|
|
101
101
|
```bash
|
|
102
|
-
yarn mercato eject <module-id>
|
|
102
|
+
yarn mercato module eject <module-id>
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
This copies the module from `node_modules/@open-mercato/core/dist/modules/<module-id>/` to `src/modules/<module-id>/`.
|
|
106
106
|
|
|
107
|
+
The legacy alias `yarn mercato eject <module-id>` remains supported.
|
|
108
|
+
|
|
107
109
|
### Post-Ejection Steps
|
|
108
110
|
|
|
109
111
|
```bash
|
package/dist/index.js
CHANGED
|
@@ -509,6 +509,9 @@ async function main() {
|
|
|
509
509
|
};
|
|
510
510
|
try {
|
|
511
511
|
copyDirRecursive(TEMPLATE_DIR, targetDir, placeholders);
|
|
512
|
+
const generatedDir = join5(targetDir, ".mercato", "generated");
|
|
513
|
+
mkdirSync5(generatedDir, { recursive: true });
|
|
514
|
+
writeFileSync5(join5(generatedDir, "module-package-sources.css"), "");
|
|
512
515
|
console.log(pc.green("Success!") + ` Created ${pc.bold(appName)}`);
|
|
513
516
|
console.log("");
|
|
514
517
|
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
package/package.json
CHANGED
package/template/AGENTS.md
CHANGED
|
@@ -97,6 +97,7 @@ Custom modules go in `src/modules/`. Each module can define:
|
|
|
97
97
|
- Navigation entries
|
|
98
98
|
|
|
99
99
|
Add new modules to `src/modules.ts` with `from: '@app'`.
|
|
100
|
+
Install official package-backed modules with `yarn mercato module add @open-mercato/<package>`.
|
|
100
101
|
|
|
101
102
|
### Path Aliases
|
|
102
103
|
|
|
@@ -66,7 +66,8 @@
|
|
|
66
66
|
"zod": "^4.1.13",
|
|
67
67
|
"@stripe/react-stripe-js": "^3.9.0",
|
|
68
68
|
"@stripe/stripe-js": "^7.8.0",
|
|
69
|
-
"@open-mercato/gateway-stripe": "{{PACKAGE_VERSION}}"
|
|
69
|
+
"@open-mercato/gateway-stripe": "{{PACKAGE_VERSION}}",
|
|
70
|
+
"@open-mercato/sync-akeneo": "{{PACKAGE_VERSION}}"
|
|
70
71
|
},
|
|
71
72
|
"devDependencies": {
|
|
72
73
|
"@tailwindcss/postcss": "^4.1.17",
|