@akanjs/devkit 0.0.153 → 0.9.1
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.
package/cjs/src/constants.js
CHANGED
|
@@ -29,8 +29,7 @@ module.exports = __toCommonJS(constants_exports);
|
|
|
29
29
|
var import_os = require("os");
|
|
30
30
|
const basePath = `${(0, import_os.homedir)()}/.akan`;
|
|
31
31
|
const configPath = `${basePath}/config.json`;
|
|
32
|
-
const akanCloudHost = process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? "http://localhost" : "https://
|
|
33
|
-
//! Temp
|
|
32
|
+
const akanCloudHost = process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? "http://localhost" : "https://cloud.akanjs.com";
|
|
34
33
|
const akanCloudBackendUrl = `${akanCloudHost}${process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? ":8080" : ""}/backend`;
|
|
35
34
|
const akanCloudClientUrl = `${akanCloudHost}${process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? ":4200" : ""}`;
|
|
36
35
|
const defaultHostConfig = {};
|
package/cjs/src/uploadRelease.js
CHANGED
|
@@ -47,7 +47,7 @@ const uploadRelease = async (appName, {
|
|
|
47
47
|
local
|
|
48
48
|
}) => {
|
|
49
49
|
const logger = new import_common.Logger("uploadRelease");
|
|
50
|
-
const basePath = local ? "http://localhost:8080/backend" : "https://
|
|
50
|
+
const basePath = local ? "http://localhost:8080/backend" : "https://cloud.akanjs.com/backend";
|
|
51
51
|
const buildPath = `${workspaceRoot}/releases/builds/${appName}-release.tar.gz`;
|
|
52
52
|
const appBuildPath = `${workspaceRoot}/releases/builds/${appName}-appBuild.zip`;
|
|
53
53
|
const sourcePath = `${workspaceRoot}/releases/sources/${appName}-source.tar.gz`;
|
package/esm/src/constants.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { homedir } from "os";
|
|
2
2
|
const basePath = `${homedir()}/.akan`;
|
|
3
3
|
const configPath = `${basePath}/config.json`;
|
|
4
|
-
const akanCloudHost = process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? "http://localhost" : "https://
|
|
5
|
-
//! Temp
|
|
4
|
+
const akanCloudHost = process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? "http://localhost" : "https://cloud.akanjs.com";
|
|
6
5
|
const akanCloudBackendUrl = `${akanCloudHost}${process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? ":8080" : ""}/backend`;
|
|
7
6
|
const akanCloudClientUrl = `${akanCloudHost}${process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? ":4200" : ""}`;
|
|
8
7
|
const defaultHostConfig = {};
|
package/esm/src/uploadRelease.js
CHANGED
|
@@ -15,7 +15,7 @@ const uploadRelease = async (appName, {
|
|
|
15
15
|
local
|
|
16
16
|
}) => {
|
|
17
17
|
const logger = new Logger("uploadRelease");
|
|
18
|
-
const basePath = local ? "http://localhost:8080/backend" : "https://
|
|
18
|
+
const basePath = local ? "http://localhost:8080/backend" : "https://cloud.akanjs.com/backend";
|
|
19
19
|
const buildPath = `${workspaceRoot}/releases/builds/${appName}-release.tar.gz`;
|
|
20
20
|
const appBuildPath = `${workspaceRoot}/releases/builds/${appName}-appBuild.zip`;
|
|
21
21
|
const sourcePath = `${workspaceRoot}/releases/sources/${appName}-source.tar.gz`;
|
package/package.json
CHANGED
package/src/executors.d.ts
CHANGED
|
@@ -102,7 +102,7 @@ export declare class WorkspaceExecutor extends Executor {
|
|
|
102
102
|
getBaseDevEnv(): {
|
|
103
103
|
repoName: string;
|
|
104
104
|
serveDomain: string;
|
|
105
|
-
env: "
|
|
105
|
+
env: "debug" | "testing" | "local" | "develop" | "main";
|
|
106
106
|
name?: string | undefined;
|
|
107
107
|
};
|
|
108
108
|
scan(): Promise<WorkspaceScanResult>;
|
|
@@ -215,7 +215,7 @@ export declare class AppExecutor extends SysExecutor {
|
|
|
215
215
|
emoji: string;
|
|
216
216
|
constructor({ workspace, name }: AppExecutorOptions);
|
|
217
217
|
static from(executor: SysExecutor | WorkspaceExecutor, name: string): AppExecutor;
|
|
218
|
-
getEnv(): "
|
|
218
|
+
getEnv(): "debug" | "testing" | "local" | "develop" | "main";
|
|
219
219
|
getConfig(command?: string): Promise<AppConfigResult>;
|
|
220
220
|
syncAssets(libDeps: string[]): Promise<void>;
|
|
221
221
|
}
|