@wocker/core 1.0.18-dev.1 → 1.0.18

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.
@@ -27,11 +27,6 @@ export declare abstract class AppConfig {
27
27
  addPlugin(plugin: string): void;
28
28
  removePlugin(removePlugin: string): void;
29
29
  getProject(id: string): ProjectData | undefined;
30
- /**
31
- * @deprecated
32
- * @see Project.addProject
33
- */
34
- setProject(id: string, path: string): void;
35
30
  addProject(id: string, name: string, path: string): void;
36
31
  removeProject(id: string): void;
37
32
  registerPreset(name: string, source: PresetType, path?: string): void;
@@ -33,30 +33,6 @@ class AppConfig {
33
33
  return projectData.id === id;
34
34
  });
35
35
  }
36
- /* istanbul ignore next */
37
- /**
38
- * @deprecated
39
- * @see Project.addProject
40
- */
41
- setProject(id, path) {
42
- if (!this.projects) {
43
- this.projects = [];
44
- }
45
- let projectData = this.projects.find((projectData) => {
46
- return projectData.id === id;
47
- });
48
- if (!projectData) {
49
- this.projects.push({
50
- id,
51
- path,
52
- src: path
53
- });
54
- return;
55
- }
56
- projectData.name = id;
57
- projectData.path = path;
58
- projectData.src = path;
59
- }
60
36
  addProject(id, name, path) {
61
37
  if (!this.projects) {
62
38
  this.projects = [];
@@ -1,11 +1,10 @@
1
1
  import { AppConfig } from "../makes";
2
- declare abstract class AppConfigService {
2
+ export declare abstract class AppConfigService {
3
3
  protected config?: AppConfig;
4
- abstract setPWD(pwd: string): void;
5
4
  abstract pwd(...parts: string[]): string;
5
+ abstract setPWD(pwd: string): void;
6
6
  abstract dataPath(...args: string[]): string;
7
7
  abstract pluginsPath(...args: string[]): string;
8
8
  getConfig(): AppConfig;
9
9
  protected abstract loadConfig(): AppConfig;
10
10
  }
11
- export { AppConfigService };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wocker/core",
3
- "version": "1.0.18-dev.1",
3
+ "version": "1.0.18",
4
4
  "author": "Kris Papercut <krispcut@gmail.com>",
5
5
  "description": "Core of the Wocker",
6
6
  "license": "MIT",