@on-par/factory-config 0.0.0-stage → 0.9.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/LICENSE +21 -0
- package/README.md +19 -2
- package/dist/constitutions/_template.md +87 -0
- package/dist/constitutions/default-review.md +31 -0
- package/dist/constitutions/example-client-delivery.md +90 -0
- package/dist/constitutions/example-data-app.md +78 -0
- package/dist/constitutions/example-marketing-site.md +102 -0
- package/dist/defaults.d.ts +198 -0
- package/dist/defaults.d.ts.map +1 -0
- package/dist/defaults.js +631 -0
- package/dist/defaults.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/package.json +48 -4
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolve a config file shipped by this package. The constitution markdown lives
|
|
3
|
+
* in src/ and the build copies it next to the compiled code (dist/constitutions,
|
|
4
|
+
* see the `copy-assets` script), so the file sits beside this module both in dev
|
|
5
|
+
* (src/index.ts under tsx/vitest) and after build (dist/index.js). The published
|
|
6
|
+
* tarball carries dist/ only (#2336).
|
|
7
|
+
*/
|
|
8
|
+
export declare function resolveConfigPath(filename: string): string;
|
|
9
|
+
/** Directory containing constitution markdown files */
|
|
10
|
+
export declare const constitutionsDir: string;
|
|
11
|
+
export { defaultEvidenceCaps, defaultFactoryConfig, defaultLaneBreakerThreshold, defaultModelsConfig, defaultRoutesConfig, type EvidenceCapsDefaults, type FactoryDefaults, type ModelDefaults, type ModelsDefaults, type RouteDefaults, type RoutesDefaults, } from './defaults.js';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAWA;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED,uDAAuD;AACvD,eAAO,MAAM,gBAAgB,QAAqC,CAAC;AAEnE,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,EACnB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,cAAc,GACpB,MAAM,eAAe,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// packages/config/src/index.ts — Config package: resolve paths to shared config files
|
|
2
|
+
//
|
|
3
|
+
// Other packages import `resolveConfigPath` to find the constitution markdown
|
|
4
|
+
// files shipped by this package, and the default config objects from
|
|
5
|
+
// ./defaults.ts.
|
|
6
|
+
import { dirname, resolve } from 'node:path';
|
|
7
|
+
import { fileURLToPath } from 'node:url';
|
|
8
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
/**
|
|
10
|
+
* Resolve a config file shipped by this package. The constitution markdown lives
|
|
11
|
+
* in src/ and the build copies it next to the compiled code (dist/constitutions,
|
|
12
|
+
* see the `copy-assets` script), so the file sits beside this module both in dev
|
|
13
|
+
* (src/index.ts under tsx/vitest) and after build (dist/index.js). The published
|
|
14
|
+
* tarball carries dist/ only (#2336).
|
|
15
|
+
*/
|
|
16
|
+
export function resolveConfigPath(filename) {
|
|
17
|
+
return resolve(__dirname, filename);
|
|
18
|
+
}
|
|
19
|
+
/** Directory containing constitution markdown files */
|
|
20
|
+
export const constitutionsDir = resolveConfigPath('constitutions');
|
|
21
|
+
export { defaultEvidenceCaps, defaultFactoryConfig, defaultLaneBreakerThreshold, defaultModelsConfig, defaultRoutesConfig, } from './defaults.js';
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,EAAE;AACF,8EAA8E;AAC9E,qEAAqE;AACrE,iBAAiB;AAEjB,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAE1D;;;;;;GAMG;AACH,MAAM,UAAU,iBAAiB,CAAC,QAAgB;IAChD,OAAO,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;AACtC,CAAC;AAED,uDAAuD;AACvD,MAAM,CAAC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC,eAAe,CAAC,CAAC;AAEnE,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,2BAA2B,EAC3B,mBAAmB,EACnB,mBAAmB,GAOpB,MAAM,eAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@on-par/factory-config",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.9.0",
|
|
4
|
+
"description": "Shared configuration defaults and product constitutions for the Software Factory.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"development": "./src/index.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./constitutions/*": {
|
|
15
|
+
"development": "./src/constitutions/*",
|
|
16
|
+
"default": "./dist/constitutions/*"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"!dist/.tsbuildinfo"
|
|
22
|
+
],
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/on-par/software-factory.git",
|
|
29
|
+
"directory": "packages/config"
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://github.com/on-par/software-factory#readme",
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/on-par/software-factory/issues"
|
|
34
|
+
},
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=24.0.0"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "tsc -p tsconfig.build.json && npm run copy-assets",
|
|
40
|
+
"copy-assets": "rm -rf dist/constitutions && cp -R src/constitutions dist/constitutions",
|
|
41
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
42
|
+
"test": "vitest run",
|
|
43
|
+
"prepublishOnly": "npm run build",
|
|
44
|
+
"prepack": "node ../../scripts/pack-hygiene-cli.ts prepack"
|
|
45
|
+
},
|
|
46
|
+
"license": "MIT",
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@types/node": "^26.6.4"
|
|
49
|
+
}
|
|
50
|
+
}
|