@wpmoo/odoo 0.8.39 → 0.8.41

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.
Files changed (2) hide show
  1. package/README.md +38 -23
  2. package/package.json +1 -2
package/README.md CHANGED
@@ -2,7 +2,12 @@
2
2
 
3
3
  ![WPMoo Odoo lifecycle tooling across development, staging, and production](docs/assets/wpmoo-banner.png)
4
4
 
5
- [![CI](https://img.shields.io/github/actions/workflow/status/wpmoo-org/wpmoo-odoo/ci.yml?branch=main&label=CI)](https://github.com/wpmoo-org/wpmoo-odoo/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![Buy Me a Coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-cangir-FFDD00?logo=buymeacoffee&logoColor=000000)](https://www.buymeacoffee.com/cangir)
5
+ [![CI](https://img.shields.io/github/actions/workflow/status/wpmoo-org/wpmoo-odoo/ci.yml?branch=main&label=CI)](https://github.com/wpmoo-org/wpmoo-odoo/actions/workflows/ci.yml)
6
+ [![GitHub Source](https://img.shields.io/badge/source-GitHub-181717?logo=github)](https://github.com/wpmoo-org/wpmoo-odoo)
7
+ [![npm](https://img.shields.io/npm/v/@wpmoo/odoo?label=npm&logo=npm)](https://www.npmjs.com/package/@wpmoo/odoo)
8
+ [![Socket](https://socket.dev/api/badge/npm/package/@wpmoo/odoo)](https://socket.dev/npm/package/@wpmoo/odoo)
9
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
10
+ [![Buy Me a Coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-cangir-FFDD00?logo=buymeacoffee&logoColor=000000)](https://www.buymeacoffee.com/cangir)
6
11
 
7
12
  WPMoo Odoo lifecycle tooling for development, staging, and production workflows.
8
13
 
@@ -183,23 +188,24 @@ Refresh generated environment files without deleting module source code:
183
188
  npx @wpmoo/odoo reset
184
189
  ```
185
190
 
186
- Run daily local development actions from a generated environment root:
191
+ Run local compose daily actions from a generated environment root with the
192
+ generated `./moo` dispatcher:
187
193
 
188
194
  ```bash
189
- npx @wpmoo/odoo start
190
- npx @wpmoo/odoo logs odoo
191
- npx @wpmoo/odoo restart
192
- npx @wpmoo/odoo stop
193
- npx @wpmoo/odoo shell
194
- npx @wpmoo/odoo psql devel
195
- npx @wpmoo/odoo install sale devel
196
- npx @wpmoo/odoo update sale devel
197
- npx @wpmoo/odoo test sale --db devel --mode update --tags /sale
198
- npx @wpmoo/odoo resetdb devel sale
199
- npx @wpmoo/odoo snapshot devel before-update
200
- npx @wpmoo/odoo restore-snapshot before-update devel
201
- npx @wpmoo/odoo lint
202
- npx @wpmoo/odoo pot sale devel i18n/sale.pot
195
+ ./moo start
196
+ ./moo logs odoo
197
+ ./moo restart
198
+ ./moo stop
199
+ ./moo shell
200
+ ./moo psql devel
201
+ ./moo install sale devel
202
+ ./moo update sale devel
203
+ ./moo test sale --db devel --mode update --tags /sale
204
+ ./moo resetdb devel sale
205
+ ./moo snapshot devel before-update
206
+ ./moo restore-snapshot before-update devel
207
+ ./moo lint
208
+ ./moo pot sale devel i18n/sale.pot
203
209
  ```
204
210
 
205
211
  The doctor command must be run from a generated environment root containing
@@ -210,10 +216,10 @@ Daily actions require `.wpmoo/odoo.json` in the current directory and delegate t
210
216
  fixed scripts under `./scripts`; they do not search parent directories or accept
211
217
  arbitrary script names.
212
218
 
213
- Generated environments also include a local `./moo` shortcut for local compose
214
- daily commands such as `./moo start`, `./moo restart`, and `./moo stop`. The
215
- shortcut supports the same daily action arguments as `npx @wpmoo/odoo`. It also
216
- falls back to `npx @wpmoo/odoo@latest doctor` for `./moo doctor`.
219
+ Use `npx @wpmoo/odoo ...` for package/operator commands such as create,
220
+ add/remove repo, add/remove module, `doctor`, and `reset`. Generated
221
+ environments include `./moo` for local daily commands; it also falls back to
222
+ `npx @wpmoo/odoo@latest` for package commands such as `./moo doctor`.
217
223
 
218
224
  ## Defaults
219
225
 
@@ -276,14 +282,22 @@ npm run release:check
276
282
 
277
283
  The script checks whether the current package version already exists on npm. If
278
284
  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 publishing.
285
+ you can commit and push `package.json` and `package-lock.json` before tagging.
280
286
  If the version is not published yet, it keeps the current version and runs
281
287
  `npm test -- test/package.test.ts` and `npm pack --dry-run`. Actual publishing
282
288
  is handled by the GitHub Actions workflow.
283
289
 
290
+ Before tagging, run the full local verification:
291
+
292
+ ```bash
293
+ npm run typecheck
294
+ npm test
295
+ npm run build
296
+ ```
297
+
284
298
  For GitHub Actions publishing, configure npm Trusted Publishing for
285
- `wpmoo-org/wpmoo-odoo` with workflow filename `publish.yml`, then run the
286
- `Publish` workflow manually from GitHub Actions or push a matching release tag:
299
+ `wpmoo-org/wpmoo-odoo` with workflow filename `publish.yml`, then push a
300
+ matching release tag:
287
301
 
288
302
  ```bash
289
303
  VERSION="$(node -p "require('./package.json').version")"
@@ -294,6 +308,7 @@ git push origin "v$VERSION"
294
308
  The workflow uses OIDC instead of an npm token, verifies typecheck/tests/build,
295
309
  fails if a pushed tag does not match the package version, fails if the package
296
310
  version already exists on npm, runs `npm pack --dry-run`, and publishes to npm.
311
+ Do not run `npm publish` for the normal release path.
297
312
 
298
313
  ## Support
299
314
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wpmoo/odoo",
3
- "version": "0.8.39",
3
+ "version": "0.8.41",
4
4
  "description": "WPMoo Odoo lifecycle tooling for development, staging, and production workflows.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -12,7 +12,6 @@
12
12
  "url": "https://github.com/wpmoo-org/wpmoo-odoo/issues"
13
13
  },
14
14
  "readmeFilename": "README.md",
15
- "fundingUrl": "https://buymeacoffee.com/cangir",
16
15
  "keywords": [
17
16
  "odoo",
18
17
  "odoo development",