@akanjs/cli 0.9.58-canary.1 → 0.9.58-canary.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 +1 -1
- package/cjs/src/templates/app/lib/___appName__/__appName__.dictionary.js +6 -3
- package/cjs/src/templates/app/lib/___appName__/__appName__.service.js +1 -1
- package/cjs/src/templates/libRoot/lib/___libName__/__libName__.dictionary.js +7 -3
- package/cjs/src/templates/libRoot/lib/___libName__/__libName__.service.js +1 -1
- package/cjs/src/templates/localDev/docker-compose.yaml.template +2 -2
- package/cjs/src/templates/module/__model__.service.js +1 -1
- package/cjs/src/templates/workspaceRoot/package.json.template +9 -9
- package/esm/index.js +1 -1
- package/esm/src/templates/app/lib/___appName__/__appName__.dictionary.js +6 -3
- package/esm/src/templates/app/lib/___appName__/__appName__.service.js +1 -1
- package/esm/src/templates/libRoot/lib/___libName__/__libName__.dictionary.js +7 -3
- package/esm/src/templates/libRoot/lib/___libName__/__libName__.service.js +1 -1
- package/esm/src/templates/localDev/docker-compose.yaml.template +2 -2
- package/esm/src/templates/module/__model__.service.js +1 -1
- package/esm/src/templates/workspaceRoot/package.json.template +9 -9
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -5836,7 +5836,7 @@ ${import_chalk6.default.green("\u27A4")} Authentication Required`));
|
|
|
5836
5836
|
const nextVersion2 = `${prefix}.${latestPatch + 1}`;
|
|
5837
5837
|
return { nextVersion: nextVersion2, latestPublishedVersion: latestPublishedVersionOfBase };
|
|
5838
5838
|
} catch (e) {
|
|
5839
|
-
return { nextVersion: `${prefix}.
|
|
5839
|
+
return { nextVersion: `${prefix}.0`, latestPublishedVersion: null };
|
|
5840
5840
|
}
|
|
5841
5841
|
};
|
|
5842
5842
|
const { nextVersion, latestPublishedVersion } = await getNextVersion(targetVersionPrefix, tag);
|
|
@@ -24,9 +24,12 @@ __export(appName_dictionary_exports, {
|
|
|
24
24
|
module.exports = __toCommonJS(appName_dictionary_exports);
|
|
25
25
|
function getContent(scanInfo, dict) {
|
|
26
26
|
return `
|
|
27
|
-
import
|
|
27
|
+
import { serviceDictionary } from "@akanjs/dictionary";
|
|
28
|
+
|
|
28
29
|
import type { ${dict.AppName}Endpoint } from "./${dict.appName}.signal";
|
|
29
30
|
|
|
30
|
-
export const dictionary =
|
|
31
|
-
|
|
31
|
+
export const dictionary = serviceDictionary(["en", "ko"])
|
|
32
|
+
.endpoint<${dict.AppName}Endpoint>((fn) => ({}))
|
|
33
|
+
.translate({});
|
|
34
|
+
`;
|
|
32
35
|
}
|
|
@@ -26,6 +26,6 @@ function getContent(scanInfo, dict) {
|
|
|
26
26
|
return `
|
|
27
27
|
import { serve } from "@akanjs/service";
|
|
28
28
|
|
|
29
|
-
export class ${dict.AppName}Service extends serve("${dict.appName}" as const, { serverMode: "batch" }) {}
|
|
29
|
+
export class ${dict.AppName}Service extends serve("${dict.appName}" as const, { serverMode: "batch" }, () => ({})) {}
|
|
30
30
|
`;
|
|
31
31
|
}
|
|
@@ -24,8 +24,12 @@ __export(libName_dictionary_exports, {
|
|
|
24
24
|
module.exports = __toCommonJS(libName_dictionary_exports);
|
|
25
25
|
function getContent(scanInfo, dict) {
|
|
26
26
|
return `
|
|
27
|
-
|
|
27
|
+
import { serviceDictionary } from "@akanjs/dictionary";
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
import type { ${dict.LibName}Endpoint } from "./${dict.libName}.signal";
|
|
30
|
+
|
|
31
|
+
export const dictionary = serviceDictionary(["en", "ko"])
|
|
32
|
+
.endpoint<${dict.LibName}Endpoint>((fn) => ({}))
|
|
33
|
+
.translate({});
|
|
34
|
+
`;
|
|
31
35
|
}
|
|
@@ -28,6 +28,6 @@ import { serve } from "@akanjs/service";
|
|
|
28
28
|
|
|
29
29
|
// import type * as srv from "../srv";
|
|
30
30
|
|
|
31
|
-
export class ${dict.LibName}Service extends serve("${dict.libName}" as const, { serverMode: "batch" }) {}
|
|
31
|
+
export class ${dict.LibName}Service extends serve("${dict.libName}" as const, { serverMode: "batch" }, () => ({})) {}
|
|
32
32
|
`;
|
|
33
33
|
}
|
|
@@ -22,8 +22,8 @@ services:
|
|
|
22
22
|
entrypoint: >
|
|
23
23
|
bash -c "
|
|
24
24
|
mongod --dbpath /data/db --replSet rs0 --bind_ip_all --fork --logpath /var/log/mongodb.log &&
|
|
25
|
-
mongosh --eval '
|
|
26
|
-
mongosh --eval 'try { rs.status() } catch(e) { rs.initiate({_id: \"rs0\", members: [{_id: 0, host: \"
|
|
25
|
+
until mongosh --eval 'db.adminCommand(\"ping\")' > /dev/null 2>&1; do sleep 1; done &&
|
|
26
|
+
mongosh --eval 'try { rs.status() } catch(e) { rs.initiate({_id: \"rs0\", members: [{_id: 0, host: \"localhost:27017\"}]}) }' &&
|
|
27
27
|
tail -f /var/log/mongodb.log
|
|
28
28
|
"
|
|
29
29
|
networks:
|
|
@@ -29,6 +29,6 @@ import { serve } from "@akanjs/service";
|
|
|
29
29
|
import * as cnst from "../cnst";
|
|
30
30
|
import * as db from "../db";
|
|
31
31
|
|
|
32
|
-
export class ${dict.Model}Service extends serve(db.${dict.model}) {}
|
|
32
|
+
export class ${dict.Model}Service extends serve(db.${dict.model}, () => ({})) {}
|
|
33
33
|
`;
|
|
34
34
|
}
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
"description": "<%= repoName %> workspace",
|
|
4
4
|
"version": "0.0.1",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"next": "
|
|
7
|
-
"react": "19.
|
|
8
|
-
"react-dom": "19.
|
|
9
|
-
"tailwindcss": "^4.1.
|
|
10
|
-
"daisyui": "^5.
|
|
6
|
+
"next": "16.0.3",
|
|
7
|
+
"react": "19.2.0",
|
|
8
|
+
"react-dom": "19.2.0",
|
|
9
|
+
"tailwindcss": "^4.1.11",
|
|
10
|
+
"daisyui": "^5.5.5"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@types/node": "^22.
|
|
14
|
-
"@tailwindcss/postcss": "^4.1.
|
|
15
|
-
"@types/react": "19.
|
|
16
|
-
"@types/react-dom": "19.
|
|
13
|
+
"@types/node": "^22.10.4",
|
|
14
|
+
"@tailwindcss/postcss": "^4.1.11",
|
|
15
|
+
"@types/react": "19.2.0",
|
|
16
|
+
"@types/react-dom": "19.2.0",
|
|
17
17
|
"crypto-browserify": "^3.12.1",
|
|
18
18
|
"eslint": "^9.19.0",
|
|
19
19
|
"https-browserify": "^1.0.0",
|
package/esm/index.js
CHANGED
|
@@ -5817,7 +5817,7 @@ ${chalk6.green("\u27A4")} Authentication Required`));
|
|
|
5817
5817
|
const nextVersion2 = `${prefix}.${latestPatch + 1}`;
|
|
5818
5818
|
return { nextVersion: nextVersion2, latestPublishedVersion: latestPublishedVersionOfBase };
|
|
5819
5819
|
} catch (e) {
|
|
5820
|
-
return { nextVersion: `${prefix}.
|
|
5820
|
+
return { nextVersion: `${prefix}.0`, latestPublishedVersion: null };
|
|
5821
5821
|
}
|
|
5822
5822
|
};
|
|
5823
5823
|
const { nextVersion, latestPublishedVersion } = await getNextVersion(targetVersionPrefix, tag);
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
// pkgs/@akanjs/cli/src/templates/app/lib/___appName__/__appName__.dictionary.ts
|
|
2
2
|
function getContent(scanInfo, dict) {
|
|
3
3
|
return `
|
|
4
|
-
import
|
|
4
|
+
import { serviceDictionary } from "@akanjs/dictionary";
|
|
5
|
+
|
|
5
6
|
import type { ${dict.AppName}Endpoint } from "./${dict.appName}.signal";
|
|
6
7
|
|
|
7
|
-
export const dictionary =
|
|
8
|
-
|
|
8
|
+
export const dictionary = serviceDictionary(["en", "ko"])
|
|
9
|
+
.endpoint<${dict.AppName}Endpoint>((fn) => ({}))
|
|
10
|
+
.translate({});
|
|
11
|
+
`;
|
|
9
12
|
}
|
|
10
13
|
export {
|
|
11
14
|
getContent as default
|
|
@@ -3,7 +3,7 @@ function getContent(scanInfo, dict) {
|
|
|
3
3
|
return `
|
|
4
4
|
import { serve } from "@akanjs/service";
|
|
5
5
|
|
|
6
|
-
export class ${dict.AppName}Service extends serve("${dict.appName}" as const, { serverMode: "batch" }) {}
|
|
6
|
+
export class ${dict.AppName}Service extends serve("${dict.appName}" as const, { serverMode: "batch" }, () => ({})) {}
|
|
7
7
|
`;
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
// pkgs/@akanjs/cli/src/templates/libRoot/lib/___libName__/__libName__.dictionary.ts
|
|
2
2
|
function getContent(scanInfo, dict) {
|
|
3
3
|
return `
|
|
4
|
-
|
|
4
|
+
import { serviceDictionary } from "@akanjs/dictionary";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
import type { ${dict.LibName}Endpoint } from "./${dict.libName}.signal";
|
|
7
|
+
|
|
8
|
+
export const dictionary = serviceDictionary(["en", "ko"])
|
|
9
|
+
.endpoint<${dict.LibName}Endpoint>((fn) => ({}))
|
|
10
|
+
.translate({});
|
|
11
|
+
`;
|
|
8
12
|
}
|
|
9
13
|
export {
|
|
10
14
|
getContent as default
|
|
@@ -5,7 +5,7 @@ import { serve } from "@akanjs/service";
|
|
|
5
5
|
|
|
6
6
|
// import type * as srv from "../srv";
|
|
7
7
|
|
|
8
|
-
export class ${dict.LibName}Service extends serve("${dict.libName}" as const, { serverMode: "batch" }) {}
|
|
8
|
+
export class ${dict.LibName}Service extends serve("${dict.libName}" as const, { serverMode: "batch" }, () => ({})) {}
|
|
9
9
|
`;
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
@@ -22,8 +22,8 @@ services:
|
|
|
22
22
|
entrypoint: >
|
|
23
23
|
bash -c "
|
|
24
24
|
mongod --dbpath /data/db --replSet rs0 --bind_ip_all --fork --logpath /var/log/mongodb.log &&
|
|
25
|
-
mongosh --eval '
|
|
26
|
-
mongosh --eval 'try { rs.status() } catch(e) { rs.initiate({_id: \"rs0\", members: [{_id: 0, host: \"
|
|
25
|
+
until mongosh --eval 'db.adminCommand(\"ping\")' > /dev/null 2>&1; do sleep 1; done &&
|
|
26
|
+
mongosh --eval 'try { rs.status() } catch(e) { rs.initiate({_id: \"rs0\", members: [{_id: 0, host: \"localhost:27017\"}]}) }' &&
|
|
27
27
|
tail -f /var/log/mongodb.log
|
|
28
28
|
"
|
|
29
29
|
networks:
|
|
@@ -6,7 +6,7 @@ import { serve } from "@akanjs/service";
|
|
|
6
6
|
import * as cnst from "../cnst";
|
|
7
7
|
import * as db from "../db";
|
|
8
8
|
|
|
9
|
-
export class ${dict.Model}Service extends serve(db.${dict.model}) {}
|
|
9
|
+
export class ${dict.Model}Service extends serve(db.${dict.model}, () => ({})) {}
|
|
10
10
|
`;
|
|
11
11
|
}
|
|
12
12
|
export {
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
"description": "<%= repoName %> workspace",
|
|
4
4
|
"version": "0.0.1",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"next": "
|
|
7
|
-
"react": "19.
|
|
8
|
-
"react-dom": "19.
|
|
9
|
-
"tailwindcss": "^4.1.
|
|
10
|
-
"daisyui": "^5.
|
|
6
|
+
"next": "16.0.3",
|
|
7
|
+
"react": "19.2.0",
|
|
8
|
+
"react-dom": "19.2.0",
|
|
9
|
+
"tailwindcss": "^4.1.11",
|
|
10
|
+
"daisyui": "^5.5.5"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@types/node": "^22.
|
|
14
|
-
"@tailwindcss/postcss": "^4.1.
|
|
15
|
-
"@types/react": "19.
|
|
16
|
-
"@types/react-dom": "19.
|
|
13
|
+
"@types/node": "^22.10.4",
|
|
14
|
+
"@tailwindcss/postcss": "^4.1.11",
|
|
15
|
+
"@types/react": "19.2.0",
|
|
16
|
+
"@types/react-dom": "19.2.0",
|
|
17
17
|
"crypto-browserify": "^3.12.1",
|
|
18
18
|
"eslint": "^9.19.0",
|
|
19
19
|
"https-browserify": "^1.0.0",
|