fabrique 0.2.5 → 0.3.5
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/.yarn/releases/{yarn-4.6.0.cjs → yarn-4.8.1.cjs} +346 -345
- package/.yarnrc.yml +1 -1
- package/README.md +29 -22
- package/package.json +6 -6
- package/src/actions/refactor.js +10 -11
- package/src/helpers/cmd.js +1 -0
- package/src/helpers/fs/explore-directory-sequentially.js +19 -0
- package/templates/lib/.prettierrc +1 -1
- package/templates/lib/.yarn/releases/{yarn-4.6.0.cjs → yarn-4.8.1.cjs} +346 -345
- package/templates/lib/.yarnrc.yml +1 -1
- package/templates/lib/CONTRIBUTING.md +33 -4
- package/templates/lib/LICENSE +1 -1
- package/templates/lib/README.md +5 -0
- package/templates/lib/fabrique/actions/build-and-publish.js +5 -0
- package/templates/lib/fabrique/actions/build.js +205 -71
- package/templates/lib/fabrique/actions/cli/generate-changelog.cli.js +3 -0
- package/templates/lib/fabrique/actions/cli/git-tag.cli.js +1 -0
- package/templates/lib/fabrique/actions/generate-changelog.js +7 -0
- package/templates/lib/fabrique/actions/git-tag.js +27 -0
- package/templates/lib/fabrique/actions/publish.js +5 -4
- package/templates/lib/fabrique/constants/root-path.constant.js +4 -0
- package/templates/lib/fabrique/helpers/cmd.js +1 -0
- package/templates/lib/fabrique/helpers/explore-directory.js +5 -2
- package/templates/lib/fabrique/test/tools.ts +9 -1
- package/templates/lib/package.json +9 -4
- package/templates/lib/tsconfig.build.json +6 -11
- package/templates/lib/tsconfig.json +46 -19
- package/templates/lib/typedoc.json +17 -0
- package/templates/lib/vitest.config.ts +12 -1
- package/templates/lib/yarn.lock +0 -1734
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
"fb:format": "prettier --write --ignore-unknown --config ./.prettierrc \"src/**/*.{js,jsx,ts,tsx,html,css,scss}\"",
|
|
9
9
|
"fb:test": "vitest",
|
|
10
10
|
"fb:test:coverage": "vitest run --coverage",
|
|
11
|
+
"fb:bench": "vitest bench",
|
|
12
|
+
"fb:typedoc": "typedoc --options typedoc.json --tsconfig tsconfig.json",
|
|
11
13
|
"fb:prod": "node fabrique/actions/cli/build-and-publish.cli.js --mode prod",
|
|
12
14
|
"fb:dev": "node fabrique/actions/cli/build-and-publish.cli.js --mode dev",
|
|
13
15
|
"fb:rc": "node fabrique/actions/cli/build-and-publish.cli.js --mode rc"
|
|
@@ -22,10 +24,13 @@
|
|
|
22
24
|
"url": "{{giturl}}"
|
|
23
25
|
},
|
|
24
26
|
"devDependencies": {
|
|
25
|
-
"
|
|
27
|
+
"@types/node": "^22.14.0",
|
|
28
|
+
"@vitest/coverage-istanbul": "^3.1.1",
|
|
29
|
+
"prettier": "^3.5.3",
|
|
26
30
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
31
|
+
"typedoc": "^0.28.1",
|
|
32
|
+
"typescript": "5.8.2",
|
|
33
|
+
"vitest": "^3.1.1"
|
|
29
34
|
},
|
|
30
|
-
"packageManager": "yarn@4.
|
|
35
|
+
"packageManager": "yarn@4.8.1"
|
|
31
36
|
}
|
|
@@ -3,15 +3,10 @@
|
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"declaration": true,
|
|
5
5
|
"declarationDir": "./dist",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
"preserveConstEnums": false,
|
|
13
|
-
"pretty": true,
|
|
14
|
-
"removeComments": false,
|
|
15
|
-
"sourceMap": true
|
|
16
|
-
}
|
|
6
|
+
"outDir": "dist"
|
|
7
|
+
},
|
|
8
|
+
"include": [
|
|
9
|
+
"src/index.ts",
|
|
10
|
+
"src/index.protected.ts"
|
|
11
|
+
]
|
|
17
12
|
}
|
|
@@ -1,37 +1,64 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"alwaysStrict": true,
|
|
7
|
-
"experimentalDecorators": true,
|
|
3
|
+
/* Build */
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"module": "NodeNext",
|
|
8
6
|
"lib": [
|
|
9
7
|
"ESNext",
|
|
10
8
|
"DOM"
|
|
11
9
|
],
|
|
12
|
-
"
|
|
10
|
+
"types": [
|
|
11
|
+
"node"
|
|
12
|
+
],
|
|
13
|
+
"typeRoots": [
|
|
14
|
+
"node_modules/@types"
|
|
15
|
+
],
|
|
16
|
+
"useDefineForClassFields": true,
|
|
17
|
+
"skipLibCheck": true,
|
|
18
|
+
"declaration": false,
|
|
19
|
+
"experimentalDecorators": true,
|
|
20
|
+
"emitDecoratorMetadata": false,
|
|
21
|
+
"importHelpers": false,
|
|
22
|
+
"noEmitHelpers": false,
|
|
23
|
+
"pretty": true,
|
|
24
|
+
"removeComments": false,
|
|
25
|
+
"downlevelIteration": false,
|
|
26
|
+
"resolveJsonModule": true,
|
|
27
|
+
"sourceMap": true,
|
|
28
|
+
"stripInternal": false,
|
|
29
|
+
"preserveConstEnums": false,
|
|
30
|
+
"alwaysStrict": true,
|
|
31
|
+
|
|
32
|
+
/* Mode */
|
|
33
|
+
"esModuleInterop": true,
|
|
13
34
|
"moduleResolution": "NodeNext",
|
|
14
|
-
"
|
|
35
|
+
"allowImportingTsExtensions": false,
|
|
36
|
+
"isolatedModules": false,
|
|
37
|
+
"moduleDetection": "force",
|
|
38
|
+
"noEmit": false,
|
|
39
|
+
"allowSyntheticDefaultImports": true,
|
|
40
|
+
|
|
41
|
+
/* Linting */
|
|
42
|
+
"strict": true,
|
|
43
|
+
"noUnusedLocals": true,
|
|
44
|
+
"noUnusedParameters": true,
|
|
45
|
+
"noFallthroughCasesInSwitch": true,
|
|
46
|
+
"noUncheckedSideEffectImports": true,
|
|
47
|
+
"allowUnreachableCode": false,
|
|
48
|
+
"allowUnusedLabels": false,
|
|
49
|
+
"forceConsistentCasingInFileNames": true,
|
|
50
|
+
"noImplicitOverride": true,
|
|
15
51
|
"noImplicitAny": true,
|
|
16
52
|
"noImplicitReturns": true,
|
|
17
53
|
"noImplicitThis": true,
|
|
18
54
|
"noImplicitUseStrict": false,
|
|
19
|
-
"
|
|
20
|
-
"
|
|
55
|
+
"noLib": false,
|
|
56
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
21
57
|
"strictFunctionTypes": true,
|
|
22
58
|
"strictNullChecks": true,
|
|
23
59
|
"strictPropertyInitialization": true,
|
|
24
|
-
"stripInternal": false,
|
|
25
|
-
"target": "esnext",
|
|
26
|
-
"typeRoots": [
|
|
27
|
-
"node_modules/@types"
|
|
28
|
-
]
|
|
29
60
|
},
|
|
30
61
|
"include": [
|
|
31
|
-
"src
|
|
32
|
-
],
|
|
33
|
-
"exclude": [
|
|
34
|
-
"src/**/*.spec.ts",
|
|
35
|
-
"src/**/*.test.ts",
|
|
62
|
+
"src/**/*.ts"
|
|
36
63
|
]
|
|
37
64
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entryPoints": ["src/**/*.ts"],
|
|
3
|
+
"readme": "README.md",
|
|
4
|
+
"exclude": [
|
|
5
|
+
"src/**/*.{test,bench,protected,private}.ts",
|
|
6
|
+
"src/**/*.{protected,private}/**/*.ts"
|
|
7
|
+
],
|
|
8
|
+
"compilerOptions": {
|
|
9
|
+
"skipLibCheck": true
|
|
10
|
+
},
|
|
11
|
+
"outputs": [
|
|
12
|
+
{
|
|
13
|
+
"name": "html",
|
|
14
|
+
"path": "./docs"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -2,6 +2,17 @@ import { defineConfig } from 'vitest/config';
|
|
|
2
2
|
|
|
3
3
|
export default defineConfig({
|
|
4
4
|
test: {
|
|
5
|
-
|
|
5
|
+
dir: 'src',
|
|
6
|
+
coverage: {
|
|
7
|
+
provider: 'istanbul',
|
|
8
|
+
include: ['src/**/*.ts'],
|
|
9
|
+
exclude: [
|
|
10
|
+
'src/**/*.{test,bench,protected,private}.ts',
|
|
11
|
+
'src/**/*.{protected,private}/**/*.ts',
|
|
12
|
+
],
|
|
13
|
+
thresholds: {
|
|
14
|
+
100: true,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
6
17
|
},
|
|
7
18
|
});
|