@adonisjs/packages 0.1.1 → 0.1.3
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 +18 -1
- package/db.json +641 -32
- package/icons/.gitkeep +0 -0
- package/icons/adminjs.png +0 -0
- package/icons/adonis-captcha-guard.png +0 -0
- package/icons/adonis.png +0 -0
- package/icons/adonisjs-clickhouse.png +0 -0
- package/icons/adonisjs-crud-generator.png +0 -0
- package/icons/agora.svg +14 -0
- package/icons/apple.png +0 -0
- package/icons/audit.png +0 -0
- package/icons/azure.png +0 -0
- package/icons/blizzard.png +0 -0
- package/icons/bull.png +0 -0
- package/icons/bullmq.png +0 -0
- package/icons/clickhouse.png +0 -0
- package/icons/cloudflare.png +0 -0
- package/icons/cloudinary.png +0 -0
- package/icons/credentials.png +0 -0
- package/icons/datatables.png +0 -0
- package/icons/dropbox.png +0 -0
- package/icons/dynamodb.png +0 -0
- package/icons/edge.jpeg +0 -0
- package/icons/eslint.png +0 -0
- package/icons/firebase.png +0 -0
- package/icons/foadonis.png +0 -0
- package/icons/gcs.png +0 -0
- package/icons/gerermesaffaires.png +0 -0
- package/icons/girouette.png +0 -0
- package/icons/gitlab.png +0 -0
- package/icons/goauthentik.png +0 -0
- package/icons/grpc-consumer.png +0 -0
- package/icons/hcaptcha.png +0 -0
- package/icons/inertia.png +0 -0
- package/icons/japa.png +0 -0
- package/icons/jrmc.svg +32 -0
- package/icons/jsx.png +0 -0
- package/icons/lucid.svg +4 -0
- package/icons/meilisearch.png +0 -0
- package/icons/microsoft.png +0 -0
- package/icons/mix.png +0 -0
- package/icons/modules.png +0 -0
- package/icons/orange.png +0 -0
- package/icons/patreon.png +0 -0
- package/icons/prisma.png +0 -0
- package/icons/prometheus.png +0 -0
- package/icons/radonis.png +0 -0
- package/icons/react-router.png +0 -0
- package/icons/recaptcha.png +0 -0
- package/icons/redis.png +0 -0
- package/icons/resque.png +0 -0
- package/icons/s3.png +0 -0
- package/icons/sail.png +0 -0
- package/icons/sentry.png +0 -0
- package/icons/slack.png +0 -0
- package/icons/socketio.png +0 -0
- package/icons/strava.png +0 -0
- package/icons/stripe.png +0 -0
- package/icons/stripe6.png +0 -0
- package/icons/swagger.png +0 -0
- package/icons/telegram.png +0 -0
- package/icons/tiktok.png +0 -0
- package/icons/turnstile.png +0 -0
- package/icons/tuyau.png +0 -0
- package/icons/twitch.png +0 -0
- package/icons/unpoly.png +0 -0
- package/icons/vite.png +0 -0
- package/icons/vk.png +0 -0
- package/icons/vscode.png +0 -0
- package/icons/whatsapp.png +0 -0
- package/icons/yandex.png +0 -0
- package/icons/zed.png +0 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -17,6 +17,8 @@ pnpm sync <name> <repo>
|
|
|
17
17
|
|
|
18
18
|
Example: `pnpm sync lucid adonisjs/lucid`
|
|
19
19
|
|
|
20
|
+
For a package living in a monorepo, create `packages/<name>.yml` with a `directory` field pointing to the package folder (e.g. `directory: packages/core`) before running `pnpm sync <name> <repo>`.
|
|
21
|
+
|
|
20
22
|
To sync with a branch different than the default, suffix the repo with `#repo-branch`, example: `pnpm sync lucid adonisjs/lucid#next`.
|
|
21
23
|
|
|
22
24
|
### Contribution
|
|
@@ -50,6 +52,8 @@ import db from '@adonisjs/packages'
|
|
|
50
52
|
// ^? { generatedAt, version, categories, packages }
|
|
51
53
|
```
|
|
52
54
|
|
|
55
|
+
The npm package also includes `icons/`. Resolve an entry's `icon` filename relative to that directory and include it in your website's asset build.
|
|
56
|
+
|
|
53
57
|
### Schema
|
|
54
58
|
|
|
55
59
|
| Field | Auto sync | Description |
|
|
@@ -57,6 +61,7 @@ import db from '@adonisjs/packages'
|
|
|
57
61
|
| `name` | No | Canonical name. Must match the filename. |
|
|
58
62
|
| `description` | Yes | Short description, pulled from upstream `package.json`. |
|
|
59
63
|
| `repo` | No | GitHub repository. Format is `org/name` or `org/name#branch`. |
|
|
64
|
+
| `directory` | No | Folder of the package inside a monorepo, e.g. `packages/core`. `npm` and `description` are read from its `package.json`. |
|
|
60
65
|
| `npm` | Yes | NPM package name. |
|
|
61
66
|
| `icon` | No | Icon of the package from the [./icons](./icons) directory. |
|
|
62
67
|
| `github` | Yes | GitHub URL, derived from `repo`. |
|
|
@@ -107,7 +112,19 @@ git push origin main
|
|
|
107
112
|
git push origin "v$(node -p "require('./package.json').version")"
|
|
108
113
|
```
|
|
109
114
|
|
|
110
|
-
Pushing the tag publishes the package. The tag must match the version in `package.json`. Published versions cannot be reused, including the version published manually during setup.
|
|
115
|
+
Pushing the tag publishes the package. The tag must match the version in `package.json`. Published versions cannot be reused, including the version published manually during setup.
|
|
116
|
+
|
|
117
|
+
### Weekly conditional releases
|
|
118
|
+
|
|
119
|
+
After `Healthcheck (weekly)` succeeds on this repository's `main` branch, `release.yml` checks out the updated `main` and builds the registry. The healthcheck runs on Mondays at 06:00 UTC. A successful manual healthcheck also triggers this comparison.
|
|
120
|
+
|
|
121
|
+
The prepare job downloads `@adonisjs/packages@latest` from npm and compares its `packages` and `categories` with the local build. Object key order, `generatedAt`, and the registry's `version` do not affect the comparison. Download errors and invalid JSON fail the job instead of triggering an initial publication.
|
|
122
|
+
|
|
123
|
+
If the data matches, the job does nothing. Otherwise, it uses the next patch of the published version, or keeps the local manifest version if it is already higher. The GitHub App configured for the healthcheck commits only `package.json`, creates `vVERSION`, and pushes the commit and tag atomically. If `main` advanced, the push fails rather than releasing an outdated checkout. The tag starts the existing OIDC publish job in `release.yml`; the prepare job never publishes to npm. Prepare and publish runs share a concurrency group without cancelling an active run.
|
|
124
|
+
|
|
125
|
+
If publishing fails after the tag was pushed, rerun that tag's failed `Release` run. The prepare job never replaces an existing tag. Changes to packaging or icon files alone require a manual release.
|
|
126
|
+
|
|
127
|
+
To simulate the comparison, run `Release` from the Actions tab on `main` with `dry_run` enabled, which is the default. The simulation can update `package.json` in its temporary checkout but does not commit, push, tag, or publish. Disable `dry_run` only to prepare a real release.
|
|
111
128
|
|
|
112
129
|
## Healthiness bot
|
|
113
130
|
|