aact 3.0.0-beta.2 → 3.0.0-beta.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/dist/cli/index.mjs +27 -1
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import * as v from 'valibot';
|
|
|
8
8
|
import fs, { readFile, writeFile } from 'node:fs/promises';
|
|
9
9
|
import { colors, box } from 'consola/utils';
|
|
10
10
|
|
|
11
|
-
const version = "3.0.0-beta.
|
|
11
|
+
const version = "3.0.0-beta.3";
|
|
12
12
|
|
|
13
13
|
const matchesPattern = (filePath, pattern) => {
|
|
14
14
|
if (pattern.startsWith("*")) {
|
|
@@ -540,6 +540,32 @@ const config: AactConfig = {
|
|
|
540
540
|
commonReuse: true, // Reuse all of a context's public API or none
|
|
541
541
|
},
|
|
542
542
|
|
|
543
|
+
// -----------------------------------------------------------------------
|
|
544
|
+
// Project-specific (custom) rules
|
|
545
|
+
//
|
|
546
|
+
// After \`npm install aact\` locally, switch from this type-only import to
|
|
547
|
+
// \`defineConfig\` to register your own checks alongside the built-ins:
|
|
548
|
+
//
|
|
549
|
+
// import { defineConfig } from "aact";
|
|
550
|
+
// import { bcIsolationRule } from "./rules/bcIsolation";
|
|
551
|
+
//
|
|
552
|
+
// export default defineConfig({
|
|
553
|
+
// source: { type: "plantuml", path: "./architecture.puml" },
|
|
554
|
+
//
|
|
555
|
+
// customRules: [bcIsolationRule],
|
|
556
|
+
//
|
|
557
|
+
// rules: {
|
|
558
|
+
// acl: true,
|
|
559
|
+
// // Configure custom rules with the same syntax as built-ins.
|
|
560
|
+
// // TypeScript autocompletes options based on the rule definition.
|
|
561
|
+
// bcIsolation: { apiSuffix: "_api" },
|
|
562
|
+
// },
|
|
563
|
+
// });
|
|
564
|
+
//
|
|
565
|
+
// Worked example with two rules and tests:
|
|
566
|
+
// https://github.com/Byndyusoft/aact/tree/main/examples/custom-rules
|
|
567
|
+
// -----------------------------------------------------------------------
|
|
568
|
+
|
|
543
569
|
// PlantUML generation from Kubernetes configs (aact generate)
|
|
544
570
|
// generate: {
|
|
545
571
|
// kubernetes: { path: "./fixtures/kubernetes" },
|