task-script-support-cli 0.2.9 → 0.2.11

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,4 +1,4 @@
1
- import { AppState as State } from "task-script-support";
1
+ import { AppState as State, TaskClass } from "task-script-support";
2
2
 
3
3
  // Add app data here as needed. Use readonly for immutable fields.
4
4
  //
@@ -29,3 +29,5 @@ export const EnvironmentConfigKeys = {
29
29
  PINO_LOG_FILENAME: "PINO_LOG_FILENAME",
30
30
  PINO_LOG_TARGET: "PINO_LOG_TARGET",
31
31
  };
32
+
33
+ export type AppTaskClass = TaskClass<AppStateData, CLIArgs>;
@@ -1,9 +1,11 @@
1
- import { CommandService, TaskClass } from "task-script-support";
1
+ import { CommandService } from "task-script-support";
2
2
  import { inject } from "tsyringe";
3
- import { AppStateData, CLIArgs } from "../types/state";
3
+ import { AppStateData, AppTaskClass, CLIArgs } from "../types/state";
4
+
5
+ export type AppTaskEntry = AppTaskClass | AppTaskClass[];
4
6
 
5
7
  export class Command {
6
- tasks: TaskClass<AppStateData, CLIArgs>[] = [];
8
+ tasks: AppTaskEntry[] = [];
7
9
 
8
10
  constructor(
9
11
  @inject(CommandService<AppStateData, CLIArgs>)
@@ -14,7 +16,7 @@ export class Command {
14
16
  return this.commandService.fromTasks(this.getTasks());
15
17
  }
16
18
 
17
- getTasks(): TaskClass<AppStateData, CLIArgs>[] {
19
+ getTasks(): AppTaskEntry[] {
18
20
  return this.tasks;
19
21
  }
20
22
  }
@@ -1,4 +1,4 @@
1
- import { AppState as State } from "task-script-support";
1
+ import { AppState as State, TaskClass } from "task-script-support";
2
2
 
3
3
  // Add app data here as needed. Use readonly for immutable fields.
4
4
  //
@@ -29,3 +29,5 @@ export const EnvironmentConfigKeys = {
29
29
  PINO_LOG_FILENAME: "PINO_LOG_FILENAME",
30
30
  PINO_LOG_TARGET: "PINO_LOG_TARGET",
31
31
  };
32
+
33
+ export type AppTaskClass = TaskClass<AppStateData, CLIArgs>;
@@ -1,9 +1,11 @@
1
- import { CommandService, TaskClass } from "task-script-support";
1
+ import { CommandService } from "task-script-support";
2
2
  import { inject } from "tsyringe";
3
- import { AppStateData, CLIArgs } from "../types/state";
3
+ import { AppStateData, AppTaskClass, CLIArgs } from "../types/state";
4
+
5
+ export type AppTaskEntry = AppTaskClass | AppTaskClass[];
4
6
 
5
7
  export class Command {
6
- tasks: TaskClass<AppStateData, CLIArgs>[] = [];
8
+ tasks: AppTaskEntry[] = [];
7
9
 
8
10
  constructor(
9
11
  @inject(CommandService<AppStateData, CLIArgs>)
@@ -14,7 +16,7 @@ export class Command {
14
16
  return this.commandService.fromTasks(this.getTasks());
15
17
  }
16
18
 
17
- getTasks(): TaskClass<AppStateData, CLIArgs>[] {
19
+ getTasks(): AppTaskEntry[] {
18
20
  return this.tasks;
19
21
  }
20
22
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "task-script-support-cli",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
  "main": "index.js",
5
5
  "type": "commonjs",
6
6
  "preferGlobal": true,
@@ -19,6 +19,7 @@
19
19
  "hooks-one-time-setup": "npx simple-git-hooks",
20
20
  "prettier-watch": "onchange \"**/*\" -- prettier --write --ignore-unknown {{changed}}",
21
21
  "build": "rm -rf ./dist && npx tsc && node dist/src/index.js -v && npm run cp-assets",
22
+ "prepublishOnly": "npm run build",
22
23
  "test": "vitest run",
23
24
  "test-watch": "vitest"
24
25
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "task-script-support-cli",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
  "main": "index.js",
5
5
  "type": "commonjs",
6
6
  "preferGlobal": true,
@@ -19,6 +19,7 @@
19
19
  "hooks-one-time-setup": "npx simple-git-hooks",
20
20
  "prettier-watch": "onchange \"**/*\" -- prettier --write --ignore-unknown {{changed}}",
21
21
  "build": "rm -rf ./dist && npx tsc && node dist/src/index.js -v && npm run cp-assets",
22
+ "prepublishOnly": "npm run build",
22
23
  "test": "vitest run",
23
24
  "test-watch": "vitest"
24
25
  },
@@ -1,34 +0,0 @@
1
- # Include any files or directories that you don't want to be copied to your
2
- # container here (e.g., local build artifacts, temporary files, etc.).
3
- #
4
- # For more help, visit the .dockerignore file reference guide at
5
- # https://docs.docker.com/go/build-context-dockerignore/
6
-
7
- **/.classpath
8
- **/.dockerignore
9
- **/.env
10
- **/.git
11
- **/.gitignore
12
- **/.project
13
- **/.settings
14
- **/.toolstarget
15
- **/.vs
16
- **/.vscode
17
- **/.next
18
- **/.cache
19
- **/*.*proj.user
20
- **/*.dbmdl
21
- **/*.jfm
22
- **/charts
23
- **/docker-compose*
24
- **/compose.y*ml
25
- **/Dockerfile*
26
- **/node_modules
27
- **/npm-debug.log
28
- **/obj
29
- **/secrets.dev.yaml
30
- **/values.dev.yaml
31
- **/build
32
- **/dist
33
- LICENSE
34
- README.md