@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.
- package/README.md +38 -23
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
5
|
-
[](https://github.com/wpmoo-org/wpmoo-odoo/actions/workflows/ci.yml)
|
|
5
|
+
[](https://github.com/wpmoo-org/wpmoo-odoo/actions/workflows/ci.yml)
|
|
6
|
+
[](https://github.com/wpmoo-org/wpmoo-odoo)
|
|
7
|
+
[](https://www.npmjs.com/package/@wpmoo/odoo)
|
|
8
|
+
[](https://socket.dev/npm/package/@wpmoo/odoo)
|
|
9
|
+
[](LICENSE)
|
|
10
|
+
[](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
|
|
191
|
+
Run local compose daily actions from a generated environment root with the
|
|
192
|
+
generated `./moo` dispatcher:
|
|
187
193
|
|
|
188
194
|
```bash
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
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
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
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
|
|
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
|
|
286
|
-
|
|
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.
|
|
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",
|