@dpuse/dpuse-development 0.3.751 → 0.3.753
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/.github/workflows/codeql.yml +3 -0
- package/README.md +63 -46
- package/dist/dpuse-development.es.js +450 -424
- package/dist/dpuse-development.es.js.map +1 -1
- package/dist/types/src/utilities/index.d.ts +3 -3
- package/package.json +6 -2
- package/vitest.config.ts +3 -2
- package/dist/types/eslint.config.d.ts +0 -3
- package/dist/types/eslint.config.default.d.ts +0 -3
- package/dist/types/tests/utilities/index.fuzz.test.d.ts +0 -1
- package/dist/types/vite.config.d.ts +0 -2
- package/dist/types/vite.config.default.d.ts +0 -2
- package/dist/types/vite.config.tool.d.ts +0 -2
- package/dist/types/vite.config.wasm.d.ts +0 -2
- package/dist/types/vitest.config.d.ts +0 -2
|
@@ -6,6 +6,9 @@ export interface ModuleTypeConfig {
|
|
|
6
6
|
publishedTo: 'app' | 'api' | 'dpuse' | 'github' | 'kb' | 'npm' | 'sampleData';
|
|
7
7
|
uploadGroupName: 'connectors' | 'contexts' | 'cookbooks' | 'engine' | 'presenters' | 'tools' | undefined;
|
|
8
8
|
}
|
|
9
|
+
export declare const FALLOW_DIRECTORY = "code-health-reports/fallow";
|
|
10
|
+
export declare const FALLOW_BADGE_PATH = "code-health-reports/fallow/badge.json";
|
|
11
|
+
export declare const FALLOW_REPORT_PATH = "code-health-reports/fallow/index.md";
|
|
9
12
|
export declare function clearDirectory(label: string | undefined, directoryPath: string): Promise<void>;
|
|
10
13
|
export declare function getDirectoryEntries(path: string): Promise<string[]>;
|
|
11
14
|
export declare function getDirectoryEntries(path: string, options: ObjectEncodingOptions): Promise<Dirent[]>;
|
|
@@ -15,10 +18,8 @@ export declare function spawnCommandToFile(label: string, command: string, argum
|
|
|
15
18
|
export declare function readJSONFile<T>(path: string): Promise<T>;
|
|
16
19
|
export declare function readTextFile(path: string): Promise<string>;
|
|
17
20
|
export declare function readTextFileOrNull(path: string): Promise<string | null>;
|
|
18
|
-
export declare function removeFile(path: string): Promise<void>;
|
|
19
21
|
export declare function writeJSONFile(path: string, data: object): Promise<void>;
|
|
20
22
|
export declare function writeReadmeSection(content: string, startMarker: string, endMarker: string): Promise<void>;
|
|
21
|
-
export declare function writeTextFile(path: string, data: string): Promise<void>;
|
|
22
23
|
export declare function logOperationHeader(text: string): void;
|
|
23
24
|
export declare function logOperationSuccess(message: string): void;
|
|
24
25
|
export declare function logStepHeader(text: string): void;
|
|
@@ -29,4 +30,3 @@ export declare function resolveOwnerAndRepo(packageJSON: PackageJson, purpose: s
|
|
|
29
30
|
};
|
|
30
31
|
export declare function getStatsForPath(path: string): Promise<Stats>;
|
|
31
32
|
export declare function extractOperationsFromSource<T>(source: string): T[];
|
|
32
|
-
export declare function substituteText(originalText: string, substituteText: string, startMarker: string, endMarker: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-development",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.753",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Actions for managing DPUse projects.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -79,10 +79,12 @@
|
|
|
79
79
|
"documentOpening": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.documentOpening())\"",
|
|
80
80
|
"documentUsage": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.documentUsage())\"",
|
|
81
81
|
"format": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.formatCode())\"",
|
|
82
|
+
"health": "npm run test:coverage && fallow --coverage coverage/coverage-final.json",
|
|
82
83
|
"lint": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.lintCode())\"",
|
|
83
84
|
"release": "npm run sync && gh release create \"v$(npm pkg get version | tr -d '\"')\" --target \"$(git rev-parse HEAD)\" --generate-notes --latest",
|
|
84
85
|
"sync": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.syncProjectWithGitHub())\"",
|
|
85
|
-
"test": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.testProject())\""
|
|
86
|
+
"test": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.testProject())\"",
|
|
87
|
+
"test:coverage": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.testProject(['unit'], true))\""
|
|
86
88
|
},
|
|
87
89
|
"dependencies": {
|
|
88
90
|
"@dpuse/dpuse-shared": "^0.3.851",
|
|
@@ -95,7 +97,9 @@
|
|
|
95
97
|
"devDependencies": {
|
|
96
98
|
"@dpuse/eslint-config-dpuse": "^1.0.123",
|
|
97
99
|
"@types/node": "^26.6.3",
|
|
100
|
+
"@vitest/coverage-v8": "^5.0.2",
|
|
98
101
|
"eslint": "^10.11.0",
|
|
102
|
+
"fallow": "^3.30.0",
|
|
99
103
|
"fast-check": "^4.10.2",
|
|
100
104
|
"prettier": "^3.9.9",
|
|
101
105
|
"sonda": "^0.14.0",
|
package/vitest.config.ts
CHANGED
|
@@ -13,11 +13,12 @@ export default defineConfig({
|
|
|
13
13
|
},
|
|
14
14
|
test: {
|
|
15
15
|
coverage: {
|
|
16
|
-
// 'json' writes the coverage-final.json that `fallow health --coverage` reads
|
|
16
|
+
// 'json' writes the coverage-final.json that `fallow health --coverage` reads; 'json-summary' writes the totals
|
|
17
|
+
// the README's Testing table reports.
|
|
17
18
|
exclude: ['dist/**', 'scripts/**', 'tests/**'],
|
|
18
19
|
include: ['src/**/*.ts'],
|
|
19
20
|
provider: 'v8',
|
|
20
|
-
reporter: ['text', 'json'],
|
|
21
|
+
reporter: ['text', 'json', 'json-summary'],
|
|
21
22
|
reportsDirectory: './coverage'
|
|
22
23
|
},
|
|
23
24
|
globals: true,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|