@wpmoo/odoo 0.8.38 → 0.8.40
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/README.md +32 -22
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -183,23 +183,24 @@ Refresh generated environment files without deleting module source code:
|
|
|
183
183
|
npx @wpmoo/odoo reset
|
|
184
184
|
```
|
|
185
185
|
|
|
186
|
-
Run
|
|
186
|
+
Run local compose daily actions from a generated environment root with the
|
|
187
|
+
generated `./moo` dispatcher:
|
|
187
188
|
|
|
188
189
|
```bash
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
190
|
+
./moo start
|
|
191
|
+
./moo logs odoo
|
|
192
|
+
./moo restart
|
|
193
|
+
./moo stop
|
|
194
|
+
./moo shell
|
|
195
|
+
./moo psql devel
|
|
196
|
+
./moo install sale devel
|
|
197
|
+
./moo update sale devel
|
|
198
|
+
./moo test sale --db devel --mode update --tags /sale
|
|
199
|
+
./moo resetdb devel sale
|
|
200
|
+
./moo snapshot devel before-update
|
|
201
|
+
./moo restore-snapshot before-update devel
|
|
202
|
+
./moo lint
|
|
203
|
+
./moo pot sale devel i18n/sale.pot
|
|
203
204
|
```
|
|
204
205
|
|
|
205
206
|
The doctor command must be run from a generated environment root containing
|
|
@@ -210,10 +211,10 @@ Daily actions require `.wpmoo/odoo.json` in the current directory and delegate t
|
|
|
210
211
|
fixed scripts under `./scripts`; they do not search parent directories or accept
|
|
211
212
|
arbitrary script names.
|
|
212
213
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
214
|
+
Use `npx @wpmoo/odoo ...` for package/operator commands such as create,
|
|
215
|
+
add/remove repo, add/remove module, `doctor`, and `reset`. Generated
|
|
216
|
+
environments include `./moo` for local daily commands; it also falls back to
|
|
217
|
+
`npx @wpmoo/odoo@latest` for package commands such as `./moo doctor`.
|
|
217
218
|
|
|
218
219
|
## Defaults
|
|
219
220
|
|
|
@@ -276,14 +277,22 @@ npm run release:check
|
|
|
276
277
|
|
|
277
278
|
The script checks whether the current package version already exists on npm. If
|
|
278
279
|
it does, it runs a patch version bump without creating a git tag, then stops so
|
|
279
|
-
you can commit and push `package.json` and `package-lock.json` before
|
|
280
|
+
you can commit and push `package.json` and `package-lock.json` before tagging.
|
|
280
281
|
If the version is not published yet, it keeps the current version and runs
|
|
281
282
|
`npm test -- test/package.test.ts` and `npm pack --dry-run`. Actual publishing
|
|
282
283
|
is handled by the GitHub Actions workflow.
|
|
283
284
|
|
|
285
|
+
Before tagging, run the full local verification:
|
|
286
|
+
|
|
287
|
+
```bash
|
|
288
|
+
npm run typecheck
|
|
289
|
+
npm test
|
|
290
|
+
npm run build
|
|
291
|
+
```
|
|
292
|
+
|
|
284
293
|
For GitHub Actions publishing, configure npm Trusted Publishing for
|
|
285
|
-
`wpmoo-org/wpmoo-odoo` with workflow filename `publish.yml`, then
|
|
286
|
-
|
|
294
|
+
`wpmoo-org/wpmoo-odoo` with workflow filename `publish.yml`, then push a
|
|
295
|
+
matching release tag:
|
|
287
296
|
|
|
288
297
|
```bash
|
|
289
298
|
VERSION="$(node -p "require('./package.json').version")"
|
|
@@ -294,6 +303,7 @@ git push origin "v$VERSION"
|
|
|
294
303
|
The workflow uses OIDC instead of an npm token, verifies typecheck/tests/build,
|
|
295
304
|
fails if a pushed tag does not match the package version, fails if the package
|
|
296
305
|
version already exists on npm, runs `npm pack --dry-run`, and publishes to npm.
|
|
306
|
+
Do not run `npm publish` for the normal release path.
|
|
297
307
|
|
|
298
308
|
## Support
|
|
299
309
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wpmoo/odoo",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.40",
|
|
4
4
|
"description": "WPMoo Odoo lifecycle tooling for development, staging, and production workflows.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"prebuild": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
40
40
|
"build": "tsc -p tsconfig.build.json",
|
|
41
41
|
"release:check": "bash scripts/release-check.sh",
|
|
42
|
+
"smoke:published": "bash scripts/smoke-published.sh",
|
|
42
43
|
"test": "vitest run",
|
|
43
44
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
44
45
|
},
|