jnprofile-typescript

jnprofile-typescript is the TypeScript profile of jnterfaces. A profile sets up a project in one language. It has tools, for example lint, and each tool brings its packages, its parts of the config files and its recipes. A recipe is a command of the project’s Justfile, such as just lint.

The profile is for a TypeScript project with npm. The installer finds such a project by its package.json or tsconfig.json.

Install

Run this command in a project that has the jnterfaces installer:

just install --profile typescript

In a folder with no package.json, the command first runs npm init --yes. It then installs the default tools lint, typecheck, test, docstring and api. If you do not choose other roles, it also turns on the default roles of the profile, tasker and prose. The section The roles of the jnterfaces guide says what each role installs.

Then add or remove a tool:

just install test
just uninstall lint

The machine needs just and uv. uv runs node and npm from the nodejs-wheel package, so you do not install node. To install every dependency into node_modules, run just setup.

The tools

Tool Packages Recipes
lint biome just fmt, just fmt-check, just lint
typecheck typescript, @types/node just typecheck
test typescript, @types/node, c8 just build, just test, just coverage-check, just cov, just typescript::test-paths
docstring none, because npm exec runs eslint just docstring-check
api none, because uv runs smalldocs just api-check, just api-prose-check
integration typescript, @types/node, c8 just integration

The tools fill six steps of just check, which are fmt-check, lint, typecheck, test, coverage-check and docstring-check. coverage-check fails on each changed line that no test runs. docstring-check fails on each function or class with no JSDoc comment. api-check fails on each exported item with no JSDoc comment or no comment on a parameter, in the step docs-check of the docs role.

The tool integration is not a default tool. It runs the tests in tests/integration, and fills the step integration. The tools gives each recipe and each part that a tool adds to a config file.

How the parts work

A part is the piece of a shared config file that a tool owns. just install adds the part, and just uninstall takes out only that part. Your own settings stay. A part is an include or a block of lines.

  • biome.json and tsconfig.json get an include. The installer writes the settings of the profile to a file under .agents/config/typescript/, and adds that file to extends in your file. A setting in your file wins over the setting of the profile. When the project has a biome.jsonc and no biome.json, the include goes to biome.jsonc.
  • .gitignore and .worktreedisposable get a block of lines. A block starts and ends with a comment that names its owner.

Do not edit a file under .agents/config/. Only the installer writes these files. The section Shared files and the record of the jnterfaces guide says how the installer keeps a record of each part.

The other sites