@canonical/webarchitect 0.17.1 → 0.21.0
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
CHANGED
|
@@ -8,13 +8,14 @@ webarchitect library
|
|
|
8
8
|
|
|
9
9
|
## Built-in Rulesets
|
|
10
10
|
|
|
11
|
-
Pragma uses
|
|
11
|
+
Pragma uses four rulesets:
|
|
12
12
|
|
|
13
13
|
| Ruleset | License | Use Case |
|
|
14
14
|
|---------|---------|----------|
|
|
15
15
|
| `library` | LGPL-3.0 | Packages consumed by other packages or applications |
|
|
16
16
|
| `tool` | GPL-3.0 | Compiled CLI tools with a build step |
|
|
17
17
|
| `tool-ts` | GPL-3.0 | TypeScript tools that run directly with Bun (no build) |
|
|
18
|
+
| `assets` | LGPL-3.0 | Asset packages (design tokens, fonts) with no build scripts |
|
|
18
19
|
|
|
19
20
|
Each ruleset validates package.json structure, required scripts, TypeScript configuration, Biome setup, and license compliance.
|
|
20
21
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonical/webarchitect",
|
|
3
3
|
"description": "A tool to test the compliance with architecture specifications for packages and applications.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.21.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "src/index.ts",
|
|
7
7
|
"types": "src/index.ts",
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "https://github.com/canonical/
|
|
21
|
+
"url": "https://github.com/canonical/pragma"
|
|
22
22
|
},
|
|
23
23
|
"license": "GPL-3.0",
|
|
24
24
|
"bugs": {
|
|
25
|
-
"url": "https://github.com/canonical/
|
|
25
|
+
"url": "https://github.com/canonical/pragma/issues"
|
|
26
26
|
},
|
|
27
|
-
"homepage": "https://github.com/canonical/
|
|
27
|
+
"homepage": "https://github.com/canonical/pragma#readme",
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "echo 'No build needed - runs directly from TypeScript'",
|
|
30
30
|
"build:all": "bun run build",
|
|
@@ -37,17 +37,17 @@
|
|
|
37
37
|
"check:webarchitect": "bun run src/cli.ts tool-ts"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@biomejs/biome": "2.4.
|
|
41
|
-
"@canonical/biome-config": "^0.
|
|
42
|
-
"@canonical/typescript-config": "^0.
|
|
40
|
+
"@biomejs/biome": "2.4.9",
|
|
41
|
+
"@canonical/biome-config": "^0.21.0",
|
|
42
|
+
"@canonical/typescript-config": "^0.21.0",
|
|
43
43
|
"@types/json-schema": "^7.0.15",
|
|
44
|
-
"@types/node": "^24.
|
|
44
|
+
"@types/node": "^24.12.0",
|
|
45
45
|
"typescript": "^5.9.3"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"ajv": "^8.
|
|
48
|
+
"ajv": "^8.18.0",
|
|
49
49
|
"chalk": "^5.6.2",
|
|
50
50
|
"commander": "^14.0.3"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "4a39c954e7bbad4903397f8371f801982034a26d"
|
|
53
53
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/canonical/pragma/refs/heads/main/packages/webarchitect/src/schema.json",
|
|
3
|
+
"name": "assets",
|
|
4
|
+
"extends": ["base"],
|
|
5
|
+
"package-license": {
|
|
6
|
+
"file": {
|
|
7
|
+
"name": "package.json",
|
|
8
|
+
"contains": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"license": {
|
|
12
|
+
"const": "LGPL-3.0"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": ["license"]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -2,23 +2,6 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/canonical/pragma/refs/heads/main/packages/webarchitect/src/schema.json",
|
|
3
3
|
"name": "package-svelte",
|
|
4
4
|
"extends": ["package"],
|
|
5
|
-
"biome": {
|
|
6
|
-
"file": {
|
|
7
|
-
"name": "biome.json",
|
|
8
|
-
"contains": {
|
|
9
|
-
"type": "object",
|
|
10
|
-
"properties": {
|
|
11
|
-
"extends": {
|
|
12
|
-
"type": "array",
|
|
13
|
-
"items": { "const": "@canonical/biome-config-svelte" },
|
|
14
|
-
"minItems": 1,
|
|
15
|
-
"maxItems": 1
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"required": ["extends"]
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
5
|
"package-structure": {
|
|
23
6
|
"file": {
|
|
24
7
|
"name": "package.json",
|