0.15.0 • Published 12 months ago
ts-archlint v0.15.0
Archlint
Simple linter for enforcing architecture rules in typescript.
Getting Started
- Install via
npm install --save-dev ts-archlint
- Create a folder
.archlint
to store the JSON-description(s) of the architecture - Create the JSON-descriptions in this folder (see below)
- Run via
node ./node_modules/ts-archlint/dist/index.js ../src/app
where '/src/app' is your main source folder
File structure
Example
{
"$schema": "../node_modules/ts-archlint/dist/schema.json",
"name": "technical-layers",
"failOnUnassigned": true,
"exclude": [
"node_modules**",
"**.spec.ts"
],
"artifacts": [
{
"name": "module",
"include": [
"**/*.module.ts"
],
"mayUseAllBelow": true
},
{
"name": "component",
"include": [
"**/component/**"
],
"mayUse": [
"service",
"domain"
]
},
{
"name": "service",
"include": [
"**/service/**"
],
"mayUse": "domain"
},
{
"name": "domain",
"include": "**/domain/**",
"mayBeUsedFromAllAbove": true
}
]
}
0.13.0
1 year ago
0.14.0
1 year ago
0.15.0
12 months ago
0.12.0
1 year ago
0.11.1
1 year ago
0.11.2
1 year ago
0.10.0
1 year ago
0.11.0
1 year ago
0.9.0
1 year ago
0.8.1
1 year ago
0.8.0
1 year ago
0.3.0
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.5.0
2 years ago
0.4.1
2 years ago
0.4.0
2 years ago
0.3.1
2 years ago
0.6.0
2 years ago
0.4.2
2 years ago
0.1.0
2 years ago