@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.
@@ -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,5 +1 @@
1
- /**
2
- * Audit dependencies utilities.
3
- */
4
- declare function auditDependencies(): Promise<void>;
5
- export { auditDependencies };
1
+ export declare function auditDependencies(): Promise<void>;
@@ -1,7 +1 @@
1
- /**
2
- * Check dependencies utilities.
3
- */
4
- /** Utilities - Check dependencies. */
5
- declare function checkDependencies(): Promise<void>;
6
- /** Exposures */
7
- export { checkDependencies };
1
+ export declare function checkDependencies(): Promise<void>;
@@ -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,5 +1 @@
1
- /**
2
- * Format code utilities.
3
- */
4
- declare function formatCode(): Promise<void>;
5
- export { formatCode };
1
+ export declare function formatCode(): Promise<void>;
@@ -1,5 +1 @@
1
- /**
2
- * Lint code utilities.
3
- */
4
- declare function lintCode(): Promise<void>;
5
- export { lintCode };
1
+ export declare function lintCode(): Promise<void>;
@@ -1,8 +1,4 @@
1
- /**
2
- * Manage project utilities.
3
- */
4
- declare function buildProject(): Promise<void>;
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,5 +1 @@
1
- /**
2
- * Manage project utilities.
3
- */
4
- declare function test(): void;
5
- export { test };
1
+ export declare function test(): void;
@@ -1,5 +1 @@
1
- /**
2
- * Update datapos dependencies utilities.
3
- */
4
- declare function updateDPUseDependencies(dependencies?: string[]): Promise<void>;
5
- export { updateDPUseDependencies };
1
+ export declare function updateDPUseDependencies(dependencies?: string[]): Promise<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
- isPublish: boolean;
5
+ isPublished: boolean;
7
6
  uploadGroupName: 'connectors' | 'contexts' | 'engine' | 'presenters' | 'tools' | undefined;
8
7
  }
9
- /** Utilities - Clear directory. */
10
- declare function clearDirectory(directoryPath: string): Promise<void>;
11
- /** Utilities - Extract operations from source. */
12
- declare function extractOperationsFromSource<T>(source: string): T[];
13
- /** TODO Utilities - Execute command. */
14
- declare function execCommand(label: string | undefined, command_: string, arguments_?: string[], outputFilePath?: string): Promise<void>;
15
- /** Utilities - Get directory entries. */
16
- declare function getDirectoryEntries(path: string): Promise<string[]>;
17
- declare function getDirectoryEntries(path: string, options: ObjectEncodingOptions): Promise<Dirent[]>;
18
- /** Utilities - Get module type identifier. */
19
- declare function getModuleConfig(configId: string): ModuleTypeConfig;
20
- /** Utilities - Get stats for path. */
21
- declare function getStatsForPath(path: string): Promise<Stats>;
22
- /** Utilities - Log operation header. */
23
- declare function logOperationHeader(text: string): void;
24
- /** Utilities - Log operation success. */
25
- declare function logOperationSuccess(message: string): void;
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
@@ -1,9 +1,5 @@
1
- /**
2
- * ESLint configuration.
3
- */
4
-
5
- /** Dependencies - Framework. */
1
+ // DPUse Framework
6
2
  import dpuse from '@dpuse/eslint-config-dpuse';
7
3
 
8
- /** Exposures - Configuration. */
4
+ // ESlint Configuration
9
5
  export default [...dpuse];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-development",
3
- "version": "0.3.461",
4
- "description": "A collection of utilities for managing Data Positioning projects.",
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,