@wocker/core
Advanced tools
Comparing version 1.0.18-dev.1 to 1.0.18-dev.2
@@ -30,7 +30,2 @@ import { EnvConfig, PickProperties } from "../types"; | ||
getProject(id: string): ProjectData | undefined; | ||
/** | ||
* @deprecated | ||
* @see Project.addProject | ||
*/ | ||
setProject(id: string, path: string): void; | ||
addProject(id: string, name: string, path: string): void; | ||
@@ -37,0 +32,0 @@ removeProject(id: string): void; |
@@ -36,26 +36,2 @@ "use strict"; | ||
} | ||
/* istanbul ignore next */ | ||
/** | ||
* @deprecated | ||
* @see Project.addProject | ||
*/ | ||
setProject(id, path) { | ||
if (!this.projects) { | ||
this.projects = []; | ||
} | ||
let projectData = this.projects.find((projectData) => { | ||
return projectData.id === id; | ||
}); | ||
if (!projectData) { | ||
this.projects.push({ | ||
id, | ||
path, | ||
src: path | ||
}); | ||
return; | ||
} | ||
projectData.name = id; | ||
projectData.path = path; | ||
projectData.src = path; | ||
} | ||
addProject(id, name, path) { | ||
@@ -62,0 +38,0 @@ if (!this.projects) { |
import { AppConfig } from "../makes"; | ||
declare abstract class AppConfigService { | ||
export declare abstract class AppConfigService { | ||
protected config?: AppConfig; | ||
abstract pwd(...parts: string[]): string; | ||
abstract setPWD(pwd: string): void; | ||
abstract pwd(...parts: string[]): string; | ||
abstract dataPath(...args: string[]): string; | ||
@@ -11,2 +11,1 @@ abstract pluginsPath(...args: string[]): string; | ||
} | ||
export { AppConfigService }; |
{ | ||
"name": "@wocker/core", | ||
"version": "1.0.18-dev.1", | ||
"version": "1.0.18-dev.2", | ||
"author": "Kris Papercut <krispcut@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "Core of the Wocker", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100218
2510