@akanjs/cli 0.0.153 → 0.9.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.
- package/cjs/index.js +16 -11
- package/cjs/src/templates/app/env/env.server.debug.ts.template +1 -1
- package/cjs/src/templates/app/env/env.server.develop.ts.template +1 -1
- package/cjs/src/templates/app/env/env.server.local.ts.template +1 -1
- package/cjs/src/templates/app/env/env.server.main.ts.template +1 -1
- package/esm/index.js +16 -11
- package/esm/src/templates/app/env/env.server.debug.ts.template +1 -1
- package/esm/src/templates/app/env/env.server.develop.ts.template +1 -1
- package/esm/src/templates/app/env/env.server.local.ts.template +1 -1
- package/esm/src/templates/app/env/env.server.main.ts.template +1 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -332,7 +332,7 @@ var uploadRelease = async (appName, {
|
|
|
332
332
|
local
|
|
333
333
|
}) => {
|
|
334
334
|
const logger = new Logger("uploadRelease");
|
|
335
|
-
const basePath2 = local ? "http://localhost:8080/backend" : "https://
|
|
335
|
+
const basePath2 = local ? "http://localhost:8080/backend" : "https://cloud.akanjs.com/backend";
|
|
336
336
|
const buildPath = `${workspaceRoot}/releases/builds/${appName}-release.tar.gz`;
|
|
337
337
|
const appBuildPath = `${workspaceRoot}/releases/builds/${appName}-appBuild.zip`;
|
|
338
338
|
const sourcePath = `${workspaceRoot}/releases/sources/${appName}-source.tar.gz`;
|
|
@@ -2264,7 +2264,7 @@ var ModuleExecutor = class _ModuleExecutor extends Executor {
|
|
|
2264
2264
|
var import_os = require("os");
|
|
2265
2265
|
var basePath = `${(0, import_os.homedir)()}/.akan`;
|
|
2266
2266
|
var configPath = `${basePath}/config.json`;
|
|
2267
|
-
var akanCloudHost = process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? "http://localhost" : "https://
|
|
2267
|
+
var akanCloudHost = process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? "http://localhost" : "https://cloud.akanjs.com";
|
|
2268
2268
|
var akanCloudBackendUrl = `${akanCloudHost}${process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? ":8080" : ""}/backend`;
|
|
2269
2269
|
var akanCloudClientUrl = `${akanCloudHost}${process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? ":4200" : ""}`;
|
|
2270
2270
|
var defaultHostConfig = {};
|
|
@@ -4523,12 +4523,18 @@ ${import_chalk6.default.green("\u27A4")} Authentication Required`));
|
|
|
4523
4523
|
const basePackageJson = workspace.readJson("pkgs/@akanjs/base/package.json");
|
|
4524
4524
|
const majorVersionOfBase = basePackageJson.version.split(".")[0];
|
|
4525
4525
|
const minorVersionOfBase = basePackageJson.version.split(".")[1];
|
|
4526
|
-
const
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4526
|
+
const getNextVersion = async (major, minor) => {
|
|
4527
|
+
try {
|
|
4528
|
+
const latestPublishedVersionOfBase = await (0, import_latest_version.default)("@akanjs/base", { version: `${major}.${minor}` });
|
|
4529
|
+
const latestPatch = parseInt(latestPublishedVersionOfBase.split(".")[2]);
|
|
4530
|
+
const nextVersion2 = `${major}.${minor}.${latestPatch + 1}`;
|
|
4531
|
+
return { nextVersion: nextVersion2, latestPublishedVersion: latestPublishedVersionOfBase };
|
|
4532
|
+
} catch (e) {
|
|
4533
|
+
return { nextVersion: `${major}.${minor}.0`, latestPublishedVersion: null };
|
|
4534
|
+
}
|
|
4535
|
+
};
|
|
4536
|
+
const { nextVersion, latestPublishedVersion } = await getNextVersion(majorVersionOfBase, minorVersionOfBase);
|
|
4537
|
+
Logger.info(`Latest published version of @akanjs/base: ${latestPublishedVersion ?? "none"}`);
|
|
4532
4538
|
Logger.info(`Next version of @akanjs/base: ${nextVersion}`);
|
|
4533
4539
|
for (const library of akanPkgs) {
|
|
4534
4540
|
const packageJson = workspace.readJson(`pkgs/${library}/package.json`);
|
|
@@ -5433,10 +5439,10 @@ var WorkspaceRunner = class {
|
|
|
5433
5439
|
connectionOptions: {
|
|
5434
5440
|
connectionString: `mongodb://${secret.mongo.account.user.username}:${secret.mongo.account.user.password}@mongo-0.mongo-svc.${appName}-${env}/?directConnection=true&authSource=${appName}-${env}`,
|
|
5435
5441
|
sshTunnel: {
|
|
5436
|
-
host: `${appName}-${env}.
|
|
5442
|
+
host: `${appName}-${env}.${workspace.getBaseDevEnv().serveDomain}`,
|
|
5437
5443
|
port: "32767",
|
|
5438
5444
|
username: "root",
|
|
5439
|
-
password:
|
|
5445
|
+
password: workspace.repoName
|
|
5440
5446
|
}
|
|
5441
5447
|
}
|
|
5442
5448
|
}))
|
|
@@ -6076,7 +6082,6 @@ void runCommands(
|
|
|
6076
6082
|
GuidelineCommand,
|
|
6077
6083
|
ScalarCommand
|
|
6078
6084
|
);
|
|
6079
|
-
//! Temp
|
|
6080
6085
|
//! will be deprecated
|
|
6081
6086
|
//! zip 명령어는 압축시 폴더 경로를 무시하는 게 안됨
|
|
6082
6087
|
//! 두 가지 방법이 있음
|
|
@@ -11,5 +11,5 @@ export const env: ModulesOptions = {
|
|
|
11
11
|
verifies: [["password", "phone", "naver", "kakao"]],
|
|
12
12
|
sso: {},
|
|
13
13
|
},
|
|
14
|
-
rootAdminInfo: { accountId: "
|
|
14
|
+
rootAdminInfo: { accountId: "admin@admin.com", password: "admin1234" },
|
|
15
15
|
};
|
|
@@ -11,5 +11,5 @@ export const env: ModulesOptions = {
|
|
|
11
11
|
verifies: [["password", "phone", "naver", "kakao"]],
|
|
12
12
|
sso: {},
|
|
13
13
|
},
|
|
14
|
-
rootAdminInfo: { accountId: "
|
|
14
|
+
rootAdminInfo: { accountId: "admin@admin.com", password: "admin1234" },
|
|
15
15
|
};
|
|
@@ -11,5 +11,5 @@ export const env: ModulesOptions = {
|
|
|
11
11
|
verifies: [["password", "phone", "naver", "kakao"]],
|
|
12
12
|
sso: {},
|
|
13
13
|
},
|
|
14
|
-
rootAdminInfo: { accountId: "
|
|
14
|
+
rootAdminInfo: { accountId: "admin@admin.com", password: "admin1234" },
|
|
15
15
|
};
|
|
@@ -11,5 +11,5 @@ export const env: ModulesOptions = {
|
|
|
11
11
|
verifies: [["password", "phone", "naver", "kakao"]],
|
|
12
12
|
sso: {},
|
|
13
13
|
},
|
|
14
|
-
rootAdminInfo: { accountId: "
|
|
14
|
+
rootAdminInfo: { accountId: "admin@admin.com", password: "admin1234" },
|
|
15
15
|
};
|
package/esm/index.js
CHANGED
|
@@ -319,7 +319,7 @@ var uploadRelease = async (appName, {
|
|
|
319
319
|
local
|
|
320
320
|
}) => {
|
|
321
321
|
const logger = new Logger("uploadRelease");
|
|
322
|
-
const basePath2 = local ? "http://localhost:8080/backend" : "https://
|
|
322
|
+
const basePath2 = local ? "http://localhost:8080/backend" : "https://cloud.akanjs.com/backend";
|
|
323
323
|
const buildPath = `${workspaceRoot}/releases/builds/${appName}-release.tar.gz`;
|
|
324
324
|
const appBuildPath = `${workspaceRoot}/releases/builds/${appName}-appBuild.zip`;
|
|
325
325
|
const sourcePath = `${workspaceRoot}/releases/sources/${appName}-source.tar.gz`;
|
|
@@ -2251,7 +2251,7 @@ var ModuleExecutor = class _ModuleExecutor extends Executor {
|
|
|
2251
2251
|
import { homedir } from "os";
|
|
2252
2252
|
var basePath = `${homedir()}/.akan`;
|
|
2253
2253
|
var configPath = `${basePath}/config.json`;
|
|
2254
|
-
var akanCloudHost = process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? "http://localhost" : "https://
|
|
2254
|
+
var akanCloudHost = process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? "http://localhost" : "https://cloud.akanjs.com";
|
|
2255
2255
|
var akanCloudBackendUrl = `${akanCloudHost}${process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? ":8080" : ""}/backend`;
|
|
2256
2256
|
var akanCloudClientUrl = `${akanCloudHost}${process.env.NEXT_PUBLIC_OPERATION_MODE === "local" ? ":4200" : ""}`;
|
|
2257
2257
|
var defaultHostConfig = {};
|
|
@@ -4515,12 +4515,18 @@ ${chalk6.green("\u27A4")} Authentication Required`));
|
|
|
4515
4515
|
const basePackageJson = workspace.readJson("pkgs/@akanjs/base/package.json");
|
|
4516
4516
|
const majorVersionOfBase = basePackageJson.version.split(".")[0];
|
|
4517
4517
|
const minorVersionOfBase = basePackageJson.version.split(".")[1];
|
|
4518
|
-
const
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4518
|
+
const getNextVersion = async (major, minor) => {
|
|
4519
|
+
try {
|
|
4520
|
+
const latestPublishedVersionOfBase = await latestVersion("@akanjs/base", { version: `${major}.${minor}` });
|
|
4521
|
+
const latestPatch = parseInt(latestPublishedVersionOfBase.split(".")[2]);
|
|
4522
|
+
const nextVersion2 = `${major}.${minor}.${latestPatch + 1}`;
|
|
4523
|
+
return { nextVersion: nextVersion2, latestPublishedVersion: latestPublishedVersionOfBase };
|
|
4524
|
+
} catch (e) {
|
|
4525
|
+
return { nextVersion: `${major}.${minor}.0`, latestPublishedVersion: null };
|
|
4526
|
+
}
|
|
4527
|
+
};
|
|
4528
|
+
const { nextVersion, latestPublishedVersion } = await getNextVersion(majorVersionOfBase, minorVersionOfBase);
|
|
4529
|
+
Logger.info(`Latest published version of @akanjs/base: ${latestPublishedVersion ?? "none"}`);
|
|
4524
4530
|
Logger.info(`Next version of @akanjs/base: ${nextVersion}`);
|
|
4525
4531
|
for (const library of akanPkgs) {
|
|
4526
4532
|
const packageJson = workspace.readJson(`pkgs/${library}/package.json`);
|
|
@@ -5425,10 +5431,10 @@ var WorkspaceRunner = class {
|
|
|
5425
5431
|
connectionOptions: {
|
|
5426
5432
|
connectionString: `mongodb://${secret.mongo.account.user.username}:${secret.mongo.account.user.password}@mongo-0.mongo-svc.${appName}-${env}/?directConnection=true&authSource=${appName}-${env}`,
|
|
5427
5433
|
sshTunnel: {
|
|
5428
|
-
host: `${appName}-${env}.
|
|
5434
|
+
host: `${appName}-${env}.${workspace.getBaseDevEnv().serveDomain}`,
|
|
5429
5435
|
port: "32767",
|
|
5430
5436
|
username: "root",
|
|
5431
|
-
password:
|
|
5437
|
+
password: workspace.repoName
|
|
5432
5438
|
}
|
|
5433
5439
|
}
|
|
5434
5440
|
}))
|
|
@@ -6068,7 +6074,6 @@ void runCommands(
|
|
|
6068
6074
|
GuidelineCommand,
|
|
6069
6075
|
ScalarCommand
|
|
6070
6076
|
);
|
|
6071
|
-
//! Temp
|
|
6072
6077
|
//! will be deprecated
|
|
6073
6078
|
//! zip 명령어는 압축시 폴더 경로를 무시하는 게 안됨
|
|
6074
6079
|
//! 두 가지 방법이 있음
|
|
@@ -11,5 +11,5 @@ export const env: ModulesOptions = {
|
|
|
11
11
|
verifies: [["password", "phone", "naver", "kakao"]],
|
|
12
12
|
sso: {},
|
|
13
13
|
},
|
|
14
|
-
rootAdminInfo: { accountId: "
|
|
14
|
+
rootAdminInfo: { accountId: "admin@admin.com", password: "admin1234" },
|
|
15
15
|
};
|
|
@@ -11,5 +11,5 @@ export const env: ModulesOptions = {
|
|
|
11
11
|
verifies: [["password", "phone", "naver", "kakao"]],
|
|
12
12
|
sso: {},
|
|
13
13
|
},
|
|
14
|
-
rootAdminInfo: { accountId: "
|
|
14
|
+
rootAdminInfo: { accountId: "admin@admin.com", password: "admin1234" },
|
|
15
15
|
};
|
|
@@ -11,5 +11,5 @@ export const env: ModulesOptions = {
|
|
|
11
11
|
verifies: [["password", "phone", "naver", "kakao"]],
|
|
12
12
|
sso: {},
|
|
13
13
|
},
|
|
14
|
-
rootAdminInfo: { accountId: "
|
|
14
|
+
rootAdminInfo: { accountId: "admin@admin.com", password: "admin1234" },
|
|
15
15
|
};
|
|
@@ -11,5 +11,5 @@ export const env: ModulesOptions = {
|
|
|
11
11
|
verifies: [["password", "phone", "naver", "kakao"]],
|
|
12
12
|
sso: {},
|
|
13
13
|
},
|
|
14
|
-
rootAdminInfo: { accountId: "
|
|
14
|
+
rootAdminInfo: { accountId: "admin@admin.com", password: "admin1234" },
|
|
15
15
|
};
|