@dpuse/dpuse-development 0.3.461 → 0.3.468
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 +0 -1
- package/dist/dpuse-development.es.js +1313 -1320
- package/dist/dpuse-development.es.js.map +1 -1
- package/dist/types/src/index.d.ts +1 -5
- package/dist/types/src/operations/auditDependencies.d.ts +1 -5
- package/dist/types/src/operations/checkDependencies.d.ts +1 -7
- package/dist/types/src/operations/documentDependencies.d.ts +1 -7
- package/dist/types/src/operations/formatCode.d.ts +1 -5
- package/dist/types/src/operations/lintCode.d.ts +1 -5
- package/dist/types/src/operations/manageProject.d.ts +4 -8
- package/dist/types/src/operations/test.d.ts +1 -5
- package/dist/types/src/operations/updateDPUseDependencies.d.ts +1 -5
- package/dist/types/src/utilities/cloudflare.d.ts +4 -5
- package/dist/types/src/utilities/index.d.ts +18 -36
- package/eslint.config.ts +2 -6
- package/package.json +2 -2
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Development utilities.
|
|
3
|
-
*/
|
|
4
|
-
declare function buildDirectoryIndex(id: string): Promise<void>;
|
|
5
|
-
export { buildDirectoryIndex };
|
|
1
|
+
export declare function buildDirectoryIndex(id: string): Promise<void>;
|
|
6
2
|
export { buildProject, releaseProject, syncProjectWithGitHub, testProject } from './operations/manageProject';
|
|
7
3
|
export { auditDependencies } from './operations/auditDependencies';
|
|
8
4
|
export { checkDependencies } from './operations/checkDependencies';
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Document dependencies utilities.
|
|
3
|
-
*/
|
|
4
|
-
/** Utilities - Document. */
|
|
5
|
-
declare function documentDependencies(licenses?: string[], checkRecursive?: boolean): Promise<void>;
|
|
6
|
-
/** Exposures */
|
|
7
|
-
export { documentDependencies };
|
|
1
|
+
export declare function documentDependencies(licenses?: string[], checkRecursive?: boolean): Promise<void>;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare function
|
|
5
|
-
declare function releaseProject(): Promise<void>;
|
|
6
|
-
declare function syncProjectWithGitHub(): Promise<void>;
|
|
7
|
-
declare function testProject(): void;
|
|
8
|
-
export { buildProject, releaseProject, syncProjectWithGitHub, testProject };
|
|
1
|
+
export declare function buildProject(): Promise<void>;
|
|
2
|
+
export declare function releaseProject(): Promise<void>;
|
|
3
|
+
export declare function syncProjectWithGitHub(): Promise<void>;
|
|
4
|
+
export declare function testProject(): void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PackageJson } from 'type-fest';
|
|
2
2
|
import { ModuleConfig } from '@datapos/datapos-shared/component';
|
|
3
|
-
declare function putState(): Promise<void>;
|
|
4
|
-
declare function uploadDirectoryToR2(sourceDirectory: string, uploadDirectory: string): Promise<void>;
|
|
5
|
-
declare function uploadModuleConfigToDO(configJSON: ModuleConfig): Promise<void>;
|
|
6
|
-
declare function uploadModuleToR2(packageJSON: PackageJson, uploadDirectoryPath: string): Promise<void>;
|
|
7
|
-
export { putState, uploadDirectoryToR2, uploadModuleConfigToDO, uploadModuleToR2 };
|
|
3
|
+
export declare function putState(): Promise<void>;
|
|
4
|
+
export declare function uploadDirectoryToR2(sourceDirectory: string, uploadDirectory: string): Promise<void>;
|
|
5
|
+
export declare function uploadModuleConfigToDO(configJSON: ModuleConfig): Promise<void>;
|
|
6
|
+
export declare function uploadModuleToR2(packageJSON: PackageJson, uploadDirectoryPath: string): Promise<void>;
|
|
@@ -1,42 +1,24 @@
|
|
|
1
1
|
import { Dirent, ObjectEncodingOptions, Stats } from 'node:fs';
|
|
2
|
-
/** Interfaces/Types */
|
|
3
2
|
export interface ModuleTypeConfig {
|
|
4
3
|
idPrefix: string;
|
|
5
4
|
typeId: 'app' | 'api' | 'connector' | 'context' | 'development' | 'engine' | 'eslint' | 'presenter' | 'resources' | 'shared' | 'tool';
|
|
6
|
-
|
|
5
|
+
isPublished: boolean;
|
|
7
6
|
uploadGroupName: 'connectors' | 'contexts' | 'engine' | 'presenters' | 'tools' | undefined;
|
|
8
7
|
}
|
|
9
|
-
|
|
10
|
-
declare function
|
|
11
|
-
|
|
12
|
-
declare function
|
|
13
|
-
|
|
14
|
-
declare function
|
|
15
|
-
|
|
16
|
-
declare function
|
|
17
|
-
declare function
|
|
18
|
-
|
|
19
|
-
declare function
|
|
20
|
-
|
|
21
|
-
declare function
|
|
22
|
-
|
|
23
|
-
declare function
|
|
24
|
-
|
|
25
|
-
declare function
|
|
26
|
-
/** Utilities - Log step header. */
|
|
27
|
-
declare function logStepHeader(text: string): void;
|
|
28
|
-
/** Utilities - Read JSON file. */
|
|
29
|
-
declare function readJSONFile<T>(path: string): Promise<T>;
|
|
30
|
-
declare function readTextFile(path: string): Promise<string>;
|
|
31
|
-
/** Utilities - Remove file. */
|
|
32
|
-
declare function removeFile(path: string): Promise<void>;
|
|
33
|
-
/** Utilities - Spawn command. */
|
|
34
|
-
declare function spawnCommand(label: string, command: string, arguments_?: string[], ignoreErrors?: boolean, useShell?: boolean): Promise<void>;
|
|
35
|
-
/** Utilities - Substitute content. */
|
|
36
|
-
declare function substituteContent(originalContent: string, substituteContent: string, startMarker: string, endMarker: string): string;
|
|
37
|
-
/** Utilities - Write JSON file. */
|
|
38
|
-
declare function writeJSONFile(path: string, data: object): Promise<void>;
|
|
39
|
-
/** Utilities - Write text file. */
|
|
40
|
-
declare function writeTextFile(path: string, data: string): Promise<void>;
|
|
41
|
-
/** Exposures */
|
|
42
|
-
export { clearDirectory, execCommand, extractOperationsFromSource, getDirectoryEntries, getModuleConfig, getStatsForPath, logOperationHeader, logOperationSuccess, logStepHeader, readJSONFile, readTextFile, removeFile, spawnCommand, substituteContent, writeJSONFile, writeTextFile };
|
|
8
|
+
export declare function clearDirectory(directoryPath: string): Promise<void>;
|
|
9
|
+
export declare function getDirectoryEntries(path: string): Promise<string[]>;
|
|
10
|
+
export declare function getDirectoryEntries(path: string, options: ObjectEncodingOptions): Promise<Dirent[]>;
|
|
11
|
+
export declare function execCommand(label: string | undefined, command_: string, arguments_?: string[], outputFilePath?: string): Promise<void>;
|
|
12
|
+
export declare function spawnCommand(label: string, command: string, arguments_?: string[], ignoreErrors?: boolean, useShell?: boolean): Promise<void>;
|
|
13
|
+
export declare function readJSONFile<T>(path: string): Promise<T>;
|
|
14
|
+
export declare function readTextFile(path: string): Promise<string>;
|
|
15
|
+
export declare function removeFile(path: string): Promise<void>;
|
|
16
|
+
export declare function writeJSONFile(path: string, data: object): Promise<void>;
|
|
17
|
+
export declare function writeTextFile(path: string, data: string): Promise<void>;
|
|
18
|
+
export declare function logOperationHeader(text: string): void;
|
|
19
|
+
export declare function logOperationSuccess(message: string): void;
|
|
20
|
+
export declare function logStepHeader(text: string): void;
|
|
21
|
+
export declare function getModuleConfig(configId: string): ModuleTypeConfig;
|
|
22
|
+
export declare function getStatsForPath(path: string): Promise<Stats>;
|
|
23
|
+
export declare function extractOperationsFromSource<T>(source: string): T[];
|
|
24
|
+
export declare function substituteText(originalText: string, substituteText: string, startMarker: string, endMarker: string): string;
|
package/eslint.config.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-development",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "A collection of utilities for managing
|
|
3
|
+
"version": "0.3.468",
|
|
4
|
+
"description": "A collection of utilities for managing DPUse projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|
|
7
7
|
"private": false,
|