Skip to content

About

RunEazy's shared tooling: the runeazy-check command (cloud-terms, dependency-rule), ESLint, Prettier, TypeScript and commitlint configs, and the Renovate preset.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

runeazy-devkit

RunEazy's shared tooling, used by every RunEazy repository by version instead of copies.

Package What it is Use it
@runeazy/devkit-checks The runeazy-check command: cloud-terms and dependency-rule npx runeazy-check cloud-terms
@runeazy/devkit-eslint ESLint flat config: TypeScript, sorted imports, React hooks export default [...runeazy({ react: true })]
@runeazy/devkit-prettier Prettier config export { default } from '@runeazy/devkit-prettier'
@runeazy/devkit-tsconfig TypeScript strictness "extends": "@runeazy/devkit-tsconfig/base"
@runeazy/devkit-commitlint Conventional Commits export default { extends: ['@runeazy/devkit-commitlint'] }
default.json The Renovate preset { "extends": ["github>runeazy/runeazy-devkit"] }

The CI jobs that run these live in runeazy/.github's reusable workflows.

Install

The packages are published to npmjs, so anyone installs them with no token:

npm install --save-dev @runeazy/devkit-checks

RunEazy's own repositories map @runeazy to GitHub Packages while the SDK is there, so every release is published to both registries at the same version. In such a repository:

@runeazy:registry=https://npm.pkg.github.com

CI reads with its workflow token (packages: read); on a laptop, a personal token with read:packages only, in ~/.npmrc as //npm.pkg.github.com/:_authToken=<token>.

The checks

Each repository keeps only its own data: a baseline file and runeazy-checks.json.

{
  "cloudTerms": {
    "baseline": "scripts/check-cloud-terms.baseline.json",
    "allowTasks": ["server-kit/tasks/**"],
    "exempt": ["src/lessons/**"]
  },
  "dependencyRule": {
    "allow": [
      {
        "file": ".github/workflows/ci.yml",
        "target": "runeazy/runeazy-sdk",
        "reason": "links the Node SDK until it is published"
      }
    ]
  }
}
  • cloud-terms fails when a tracked file gains a line naming Google Cloud. Only the deployment repository may name a cloud. The baseline counts today's lines per file and may only shrink: --prune after removing some, --base=<ref> in CI on a pull request, --all to list them, --init once. allowTasks lets Cloud Tasks and Cloud Scheduler be named in those files alone, until their open-source adapters replace them. exempt skips content that teaches or states a cloud.
  • dependency-rule fails when code crosses a repository other than as a versioned artifact: a file:/link: specifier that leaves the repository or names another repository's @runeazy/ package, or a workflow that checks out another RunEazy repository (except runeazy/.github). allow lists today's exceptions with the change that ends each; an entry that no longer matches fails as stale, so the list only shrinks.

Releasing

All packages share one version. Commits are Conventional Commits; release-please keeps a release PR open, and merging it tags vX.Y.Z, writes CHANGELOG.md and publishes to npmjs (trusted publishing, with provenance) and GitHub Packages. A published version is never unpublished: a bad one is deprecated and fixed by a patch.

Licence

Apache-2.0.

About

RunEazy's shared tooling: the runeazy-check command (cloud-terms, dependency-rule), ESLint, Prettier, TypeScript and commitlint configs, and the Renovate preset.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages