@wocker/core 1.0.26-beta.0 → 1.0.26-beta.2

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,10 +1,11 @@
1
- import { EnvConfig } from "../types";
1
+ import { EnvConfig, PackageManagerType } from "../types";
2
2
  import { PluginRef } from "../types/PluginRef";
3
3
  import { PresetRef } from "../types/PresetRef";
4
4
  import { ProjectRef, ProjectOldRef } from "../types/ProjectRef";
5
5
  import { PresetSource } from "./Preset";
6
6
  export type AppConfigProperties = {
7
7
  debug?: boolean;
8
+ pm?: PackageManagerType;
8
9
  keystore?: string;
9
10
  logLevel?: "off" | "info" | "warn" | "error";
10
11
  plugins?: PluginRef[];
@@ -15,6 +16,7 @@ export type AppConfigProperties = {
15
16
  };
16
17
  export declare class AppConfig {
17
18
  debug?: boolean;
19
+ pm?: PackageManagerType;
18
20
  keystore?: string;
19
21
  logLevel: "off" | "info" | "warn" | "error";
20
22
  plugins: PluginRef[];
@@ -166,6 +166,7 @@ class AppConfig {
166
166
  toObject() {
167
167
  return {
168
168
  debug: this.debug,
169
+ pm: this.pm,
169
170
  logLevel: this.logLevel,
170
171
  keystore: this.keystore,
171
172
  plugins: this.plugins.length > 0 ? this.plugins : undefined,
@@ -6,12 +6,15 @@ export declare class Project {
6
6
  name: string;
7
7
  type: ProjectType;
8
8
  path: string;
9
+ cmd?: string[];
9
10
  imageName?: string;
10
11
  dockerfile?: string;
11
12
  composefile?: string;
12
13
  preset?: string;
13
14
  presetMode?: "global" | "project";
14
- scripts?: string[];
15
+ scripts?: {
16
+ [script: string]: string;
17
+ };
15
18
  services: {
16
19
  [name: string]: ServiceProperties;
17
20
  };
@@ -267,6 +267,7 @@ class Project {
267
267
  composefile: this.composefile,
268
268
  preset: this.preset,
269
269
  presetMode: this.presetMode,
270
+ cmd: this.cmd,
270
271
  scripts: this.scripts,
271
272
  services: Object.keys(this.services).length > 0 ? this.services : undefined,
272
273
  buildArgs: Object.keys(this.buildArgs).length > 0 ? this.buildArgs : undefined,
@@ -10,7 +10,10 @@ export type ProjectV1 = {
10
10
  composefile?: string;
11
11
  preset?: string;
12
12
  presetMode?: "global" | "project";
13
- scripts?: string[];
13
+ cmd?: string[];
14
+ scripts?: {
15
+ [script: string]: string;
16
+ };
14
17
  services?: {
15
18
  [service: string]: ServiceProperties;
16
19
  };
@@ -0,0 +1 @@
1
+ export type PackageManagerType = "npm" | "yarn" | "pnpm";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,6 +3,7 @@ export * from "./EnvConfig";
3
3
  export * from "./FileSystemDriver";
4
4
  export * from "./InjectionToken";
5
5
  export * from "./ModuleMetadata";
6
+ export * from "./PackageManagerType";
6
7
  export * from "./PickProperties";
7
8
  export * from "./PluginMetadata";
8
9
  export * from "./Type";
@@ -19,6 +19,7 @@ __exportStar(require("./EnvConfig"), exports);
19
19
  __exportStar(require("./FileSystemDriver"), exports);
20
20
  __exportStar(require("./InjectionToken"), exports);
21
21
  __exportStar(require("./ModuleMetadata"), exports);
22
+ __exportStar(require("./PackageManagerType"), exports);
22
23
  __exportStar(require("./PickProperties"), exports);
23
24
  __exportStar(require("./PluginMetadata"), exports);
24
25
  __exportStar(require("./Type"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wocker/core",
3
3
  "type": "commonjs",
4
- "version": "1.0.26-beta.0",
4
+ "version": "1.0.26-beta.2",
5
5
  "author": "Kris Papercut <krispcut@gmail.com>",
6
6
  "description": "Core of the Wocker",
7
7
  "license": "MIT",