@akanjs/cli 0.0.120 → 0.0.122
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 +1227 -604
- package/{src → cjs/src}/templates/workspaceRoot/package.json.template +1 -1
- package/esm/index.js +1227 -604
- package/esm/src/templates/app/app/[lang]/(__appName__)/styles.css.template +19 -0
- package/esm/src/templates/app/app/index.html.template +13 -0
- package/esm/src/templates/app/capacitor.config.ts.template +8 -0
- package/esm/src/templates/app/env/env.client.debug.ts.template +7 -0
- package/esm/src/templates/app/env/env.client.develop.ts.template +7 -0
- package/esm/src/templates/app/env/env.client.local.ts.template +7 -0
- package/esm/src/templates/app/env/env.client.main.ts.template +7 -0
- package/esm/src/templates/app/env/env.client.testing.ts.template +7 -0
- package/esm/src/templates/app/env/env.server.debug.ts.template +15 -0
- package/esm/src/templates/app/env/env.server.develop.ts.template +15 -0
- package/esm/src/templates/app/env/env.server.local.ts.template +15 -0
- package/esm/src/templates/app/env/env.server.main.ts.template +15 -0
- package/esm/src/templates/app/env/env.server.testing.ts.template +7 -0
- package/esm/src/templates/app/page.test.ts.template +10 -0
- package/esm/src/templates/app/playwright.config.ts.template +6 -0
- package/esm/src/templates/app/postcss.config.js.template +10 -0
- package/esm/src/templates/app/public/manifest.json.template +67 -0
- package/esm/src/templates/app/tsconfig.json.template +22 -0
- package/esm/src/templates/app/tsconfig.spec.json.template +7 -0
- package/esm/src/templates/libRoot/.gitignore.template +15 -0
- package/esm/src/templates/libRoot/env/env.server.example.ts.template +7 -0
- package/esm/src/templates/libRoot/env/env.server.testing.ts.template +7 -0
- package/esm/src/templates/libRoot/package.json.template +4 -0
- package/esm/src/templates/libRoot/tsconfig.json.template +13 -0
- package/esm/src/templates/libRoot/tsconfig.spec.json.template +7 -0
- package/esm/src/templates/localDev/docker-compose.yaml.template +36 -0
- package/esm/src/templates/pkgRoot/tsconfig.json.template +15 -0
- package/esm/src/templates/workspaceRoot/.env.template +20 -0
- package/esm/src/templates/workspaceRoot/.gitignore.template +118 -0
- package/esm/src/templates/workspaceRoot/.prettierignore.template +10 -0
- package/esm/src/templates/workspaceRoot/.prettierrc.json.template +6 -0
- package/esm/src/templates/workspaceRoot/.swcrc.template +9 -0
- package/esm/src/templates/workspaceRoot/.vscode/settings.json.template +13 -0
- package/esm/src/templates/workspaceRoot/README.md.template +37 -0
- package/esm/src/templates/workspaceRoot/eslint.config.ts.template +3 -0
- package/esm/src/templates/workspaceRoot/package.json.template +38 -0
- package/esm/src/templates/workspaceRoot/tsconfig.json.template +29 -0
- package/package.json +2 -1
- package/src/module/module.command.d.ts +1 -1
- package/src/module/module.prompt.d.ts +19 -4
- package/src/workspace/workspace.runner.d.ts +2 -1
- /package/{src → cjs/src}/templates/app/app/[lang]/(__appName__)/styles.css.template +0 -0
- /package/{src → cjs/src}/templates/app/app/index.html.template +0 -0
- /package/{src → cjs/src}/templates/app/capacitor.config.ts.template +0 -0
- /package/{src → cjs/src}/templates/app/env/env.client.debug.ts.template +0 -0
- /package/{src → cjs/src}/templates/app/env/env.client.develop.ts.template +0 -0
- /package/{src → cjs/src}/templates/app/env/env.client.local.ts.template +0 -0
- /package/{src → cjs/src}/templates/app/env/env.client.main.ts.template +0 -0
- /package/{src → cjs/src}/templates/app/env/env.client.testing.ts.template +0 -0
- /package/{src → cjs/src}/templates/app/env/env.server.debug.ts.template +0 -0
- /package/{src → cjs/src}/templates/app/env/env.server.develop.ts.template +0 -0
- /package/{src → cjs/src}/templates/app/env/env.server.local.ts.template +0 -0
- /package/{src → cjs/src}/templates/app/env/env.server.main.ts.template +0 -0
- /package/{src → cjs/src}/templates/app/env/env.server.testing.ts.template +0 -0
- /package/{src → cjs/src}/templates/app/page.test.ts.template +0 -0
- /package/{src → cjs/src}/templates/app/playwright.config.ts.template +0 -0
- /package/{src → cjs/src}/templates/app/postcss.config.js.template +0 -0
- /package/{src → cjs/src}/templates/app/public/manifest.json.template +0 -0
- /package/{src → cjs/src}/templates/app/tsconfig.json.template +0 -0
- /package/{src → cjs/src}/templates/app/tsconfig.spec.json.template +0 -0
- /package/{src → cjs/src}/templates/libRoot/.gitignore.template +0 -0
- /package/{src → cjs/src}/templates/libRoot/env/env.server.example.ts.template +0 -0
- /package/{src → cjs/src}/templates/libRoot/env/env.server.testing.ts.template +0 -0
- /package/{src → cjs/src}/templates/libRoot/package.json.template +0 -0
- /package/{src → cjs/src}/templates/libRoot/tsconfig.json.template +0 -0
- /package/{src → cjs/src}/templates/libRoot/tsconfig.spec.json.template +0 -0
- /package/{src → cjs/src}/templates/localDev/docker-compose.yaml.template +0 -0
- /package/{src → cjs/src}/templates/pkgRoot/tsconfig.json.template +0 -0
- /package/{src → cjs/src}/templates/workspaceRoot/.env.template +0 -0
- /package/{src → cjs/src}/templates/workspaceRoot/.gitignore.template +0 -0
- /package/{src → cjs/src}/templates/workspaceRoot/.prettierignore.template +0 -0
- /package/{src → cjs/src}/templates/workspaceRoot/.prettierrc.json.template +0 -0
- /package/{src → cjs/src}/templates/workspaceRoot/.swcrc.template +0 -0
- /package/{src → cjs/src}/templates/workspaceRoot/.vscode/settings.json.template +0 -0
- /package/{src → cjs/src}/templates/workspaceRoot/README.md.template +0 -0
- /package/{src → cjs/src}/templates/workspaceRoot/eslint.config.ts.template +0 -0
- /package/{src → cjs/src}/templates/workspaceRoot/tsconfig.json.template +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "@akanjs/config/styles.css";
|
|
3
|
+
|
|
4
|
+
@plugin "daisyui" {
|
|
5
|
+
logs: false;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@plugin "daisyui/theme" {
|
|
9
|
+
name: "light";
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@plugin "daisyui/theme" {
|
|
13
|
+
name: "dark";
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@theme {
|
|
17
|
+
--font-lemonmilk: var(--font-lemonmilk);
|
|
18
|
+
--font-pretendard: var(--font-pretendard);
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title>CSR</title>
|
|
6
|
+
<base href="/" />
|
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="root"></div>
|
|
11
|
+
<script type="module" src="/csr.tsx"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { baseEnv } from "@akanjs/base";
|
|
2
|
+
|
|
3
|
+
import type { ModulesOptions } from "../lib/option";
|
|
4
|
+
|
|
5
|
+
export const env: ModulesOptions = {
|
|
6
|
+
...baseEnv,
|
|
7
|
+
hostname: null,
|
|
8
|
+
redis: {},
|
|
9
|
+
mongo: { password: "S20n-D2bUg" },
|
|
10
|
+
security: {
|
|
11
|
+
verifies: [["password", "phone", "naver", "kakao"]],
|
|
12
|
+
sso: {},
|
|
13
|
+
},
|
|
14
|
+
rootAdminInfo: { accountId: "akamirofficial@gmail.com", password: "akamir190319" },
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { baseEnv } from "@akanjs/base";
|
|
2
|
+
|
|
3
|
+
import type { ModulesOptions } from "../lib/option";
|
|
4
|
+
|
|
5
|
+
export const env: ModulesOptions = {
|
|
6
|
+
...baseEnv,
|
|
7
|
+
hostname: null,
|
|
8
|
+
redis: {},
|
|
9
|
+
mongo: { password: "S20n-D2VeL0p-0905*" },
|
|
10
|
+
security: {
|
|
11
|
+
verifies: [["password", "phone", "naver", "kakao"]],
|
|
12
|
+
sso: {},
|
|
13
|
+
},
|
|
14
|
+
rootAdminInfo: { accountId: "akamirofficial@gmail.com", password: "akamir190319" },
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { baseEnv } from "@akanjs/base";
|
|
2
|
+
|
|
3
|
+
import type { ModulesOptions } from "../lib/option";
|
|
4
|
+
|
|
5
|
+
export const env: ModulesOptions = {
|
|
6
|
+
...baseEnv,
|
|
7
|
+
hostname: null,
|
|
8
|
+
redis: {},
|
|
9
|
+
mongo: {},
|
|
10
|
+
security: {
|
|
11
|
+
verifies: [["password", "phone", "naver", "kakao"]],
|
|
12
|
+
sso: {},
|
|
13
|
+
},
|
|
14
|
+
rootAdminInfo: { accountId: "akamirofficial@gmail.com", password: "akamir190319" },
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { baseEnv } from "@akanjs/base";
|
|
2
|
+
|
|
3
|
+
import type { ModulesOptions } from "../lib/option";
|
|
4
|
+
|
|
5
|
+
export const env: ModulesOptions = {
|
|
6
|
+
...baseEnv,
|
|
7
|
+
hostname: null,
|
|
8
|
+
redis: {},
|
|
9
|
+
mongo: { password: "S20n-m@In-0905*-SEON" },
|
|
10
|
+
security: {
|
|
11
|
+
verifies: [["password", "phone", "naver", "kakao"]],
|
|
12
|
+
sso: {},
|
|
13
|
+
},
|
|
14
|
+
rootAdminInfo: { accountId: "akamirofficial@gmail.com", password: "akamir190319" },
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// import { PageAgent } from "@akanjs/next";
|
|
2
|
+
// import { expect, test } from "@playwright/test";
|
|
3
|
+
|
|
4
|
+
// test.describe("index page", () => {
|
|
5
|
+
// test("has title", async ({ page }) => {
|
|
6
|
+
// const agent = new PageAgent(page);
|
|
7
|
+
// await agent.goto("/");
|
|
8
|
+
// expect(agent.page).toBeTruthy();
|
|
9
|
+
// });
|
|
10
|
+
// });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//! will be replaced with akan.config.ts
|
|
2
|
+
const akanjsPrefix = process.env.USE_AKANJS_PKGS === "true" ? "../../pkgs/" : "";
|
|
3
|
+
const { withBase } = require(`${akanjsPrefix}@akanjs/config/postcss.config.base`);
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @type {import('postcss-load-config').Config}
|
|
7
|
+
*/
|
|
8
|
+
const config = {};
|
|
9
|
+
|
|
10
|
+
module.exports = withBase(config);
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "<%= AppName %>",
|
|
3
|
+
"short_name": "<%= AppName %>",
|
|
4
|
+
"orientation": "portrait",
|
|
5
|
+
"theme_color": "#1976d2",
|
|
6
|
+
"background_color": "#fafafa",
|
|
7
|
+
"display": "standalone",
|
|
8
|
+
"scope": "/",
|
|
9
|
+
"description": "<%= appName %>",
|
|
10
|
+
"start_url": "/",
|
|
11
|
+
"icons": [
|
|
12
|
+
{
|
|
13
|
+
"src": "icons/icon-72x72.png",
|
|
14
|
+
"sizes": "72x72",
|
|
15
|
+
"type": "image/png",
|
|
16
|
+
"purpose": "any"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"src": "icons/icon-96x96.png",
|
|
20
|
+
"sizes": "96x96",
|
|
21
|
+
"type": "image/png",
|
|
22
|
+
"purpose": "any"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"src": "icons/icon-128x128.png",
|
|
26
|
+
"sizes": "128x128",
|
|
27
|
+
"type": "image/png",
|
|
28
|
+
"purpose": "any"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"src": "icons/icon-144x144.png",
|
|
32
|
+
"sizes": "144x144",
|
|
33
|
+
"type": "image/png",
|
|
34
|
+
"purpose": "any"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"src": "icons/icon-152x152.png",
|
|
38
|
+
"sizes": "152x152",
|
|
39
|
+
"type": "image/png",
|
|
40
|
+
"purpose": "any"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"src": "icons/icon-192x192.png",
|
|
44
|
+
"sizes": "192x192",
|
|
45
|
+
"type": "image/png",
|
|
46
|
+
"purpose": "any"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"src": "icons/icon-256x256.png",
|
|
50
|
+
"sizes": "256x256",
|
|
51
|
+
"type": "image/png",
|
|
52
|
+
"purpose": "any"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"src": "icons/icon-384x384.png",
|
|
56
|
+
"sizes": "384x384",
|
|
57
|
+
"type": "image/png",
|
|
58
|
+
"purpose": "any"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"src": "icons/icon-512x512.png",
|
|
62
|
+
"sizes": "512x512",
|
|
63
|
+
"type": "image/png",
|
|
64
|
+
"purpose": "any"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"allowJs": true,
|
|
5
|
+
"strict": false,
|
|
6
|
+
"noEmit": true,
|
|
7
|
+
"incremental": true,
|
|
8
|
+
"resolveJsonModule": true,
|
|
9
|
+
"jsx": "preserve",
|
|
10
|
+
"plugins": [
|
|
11
|
+
{
|
|
12
|
+
"name": "next"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"include": ["./**/*.ts", "./**/*.tsx", ".next/types/**/*.ts"],
|
|
17
|
+
"references": [
|
|
18
|
+
{
|
|
19
|
+
"path": "./tsconfig.spec.json"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
**/script.ts
|
|
2
|
+
**/script*.ts
|
|
3
|
+
**/.env
|
|
4
|
+
**/env.client.debug.ts*
|
|
5
|
+
**/env.client.develop.ts*
|
|
6
|
+
**/env.client.main.ts*
|
|
7
|
+
**/env.client.testing.ts*
|
|
8
|
+
**/env.server.debug.ts*
|
|
9
|
+
**/env.server.develop.ts*
|
|
10
|
+
**/env.server.main.ts*
|
|
11
|
+
**/env.server.testing.ts*
|
|
12
|
+
|
|
13
|
+
# System Files
|
|
14
|
+
.DS_Store
|
|
15
|
+
Thumbs.db
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
version: "3.8"
|
|
2
|
+
networks:
|
|
3
|
+
<%= repoName %>-network:
|
|
4
|
+
driver: bridge
|
|
5
|
+
services:
|
|
6
|
+
redis:
|
|
7
|
+
container_name: redis
|
|
8
|
+
image: redis
|
|
9
|
+
restart: unless-stopped
|
|
10
|
+
ports:
|
|
11
|
+
- 6379:6379
|
|
12
|
+
networks:
|
|
13
|
+
- <%= repoName %>-network
|
|
14
|
+
mongo:
|
|
15
|
+
image: mongo
|
|
16
|
+
container_name: mongo
|
|
17
|
+
restart: unless-stopped
|
|
18
|
+
ports:
|
|
19
|
+
- 27017:27017
|
|
20
|
+
volumes:
|
|
21
|
+
- ./mongo/local/data:/data/db
|
|
22
|
+
command: mongod --dbpath /data/db
|
|
23
|
+
networks:
|
|
24
|
+
- <%= repoName %>-network
|
|
25
|
+
meili:
|
|
26
|
+
image: getmeili/meilisearch:latest
|
|
27
|
+
container_name: meili
|
|
28
|
+
restart: unless-stopped
|
|
29
|
+
ports:
|
|
30
|
+
- "7700:7700"
|
|
31
|
+
environment:
|
|
32
|
+
- MEILI_ENV=development
|
|
33
|
+
- MEILI_MASTER_KEY=masterKey
|
|
34
|
+
- MEILI_NO_ANALYTICS=true
|
|
35
|
+
networks:
|
|
36
|
+
- <%= repoName %>-network
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"jsx": "preserve",
|
|
5
|
+
"declaration": true,
|
|
6
|
+
"declarationDir": "dist"
|
|
7
|
+
},
|
|
8
|
+
"files": [],
|
|
9
|
+
"include": ["**/*.ts", "**/*.tsx"],
|
|
10
|
+
"references": [
|
|
11
|
+
{
|
|
12
|
+
"path": "./tsconfig.spec.json"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# organization configuration, no need to change
|
|
2
|
+
NEXT_PUBLIC_REPO_NAME=<%= repoName %>
|
|
3
|
+
NEXT_PUBLIC_SERVE_DOMAIN="<%= serveDomain %>"
|
|
4
|
+
|
|
5
|
+
# development branch, debug, develop, main, etc. mainly it changes databases.
|
|
6
|
+
NEXT_PUBLIC_ENV=local
|
|
7
|
+
|
|
8
|
+
# local, cloud, edge it changes the connection point of the clients.
|
|
9
|
+
NEXT_PUBLIC_OPERATION_MODE=local
|
|
10
|
+
# hybrid app specific config, will be depreciated in the future
|
|
11
|
+
APP_OPERATION_MODE=local
|
|
12
|
+
|
|
13
|
+
# backend service mode, federation, batch, all
|
|
14
|
+
SERVER_MODE=federation
|
|
15
|
+
|
|
16
|
+
# analyze the bundle size
|
|
17
|
+
ANALYZE=false
|
|
18
|
+
|
|
19
|
+
# log level, debug, info, warn, error
|
|
20
|
+
NEXT_PUBLIC_LOG_LEVEL=debug
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
**/dist
|
|
2
|
+
/node_modules
|
|
3
|
+
/.akan
|
|
4
|
+
.vscode/*
|
|
5
|
+
.DS_Store
|
|
6
|
+
Thumbs.db
|
|
7
|
+
*.env
|
|
8
|
+
**/node_modules
|
|
9
|
+
/data
|
|
10
|
+
apps/*/data
|
|
11
|
+
/releases
|
|
12
|
+
apps/*/scripts
|
|
13
|
+
**/.env
|
|
14
|
+
**/env.client.debug.ts
|
|
15
|
+
**/env.client.develop.ts
|
|
16
|
+
**/env.client.main.ts
|
|
17
|
+
**/env.client.testing.ts
|
|
18
|
+
**/env.server.debug.ts
|
|
19
|
+
**/env.server.develop.ts
|
|
20
|
+
**/env.server.main.ts
|
|
21
|
+
**/env.server.testing.ts
|
|
22
|
+
**/*secrets.yaml
|
|
23
|
+
**/kubeconfig.yaml
|
|
24
|
+
**/secrets.*
|
|
25
|
+
**/.idea
|
|
26
|
+
apps/**/src/schema.gql
|
|
27
|
+
.next
|
|
28
|
+
dump
|
|
29
|
+
local
|
|
30
|
+
|
|
31
|
+
# Xcode
|
|
32
|
+
build/
|
|
33
|
+
*.pbxuser
|
|
34
|
+
!default.pbxuser
|
|
35
|
+
*.mode1v3
|
|
36
|
+
!default.mode1v3
|
|
37
|
+
*.mode2v3
|
|
38
|
+
!default.mode2v3
|
|
39
|
+
*.perspectivev3
|
|
40
|
+
!default.perspectivev3
|
|
41
|
+
xcuserdata
|
|
42
|
+
*.xccheckout
|
|
43
|
+
*.moved-aside
|
|
44
|
+
DerivedData
|
|
45
|
+
*.hmap
|
|
46
|
+
*.ipa
|
|
47
|
+
*.xcuserstate
|
|
48
|
+
|
|
49
|
+
# **/android
|
|
50
|
+
build/
|
|
51
|
+
.gradle
|
|
52
|
+
local.properties
|
|
53
|
+
*.iml
|
|
54
|
+
*.hprof
|
|
55
|
+
.cxx/
|
|
56
|
+
*.keystore
|
|
57
|
+
!debug.keystore
|
|
58
|
+
|
|
59
|
+
**/public/precache.*.*.js
|
|
60
|
+
**/public/sw.js
|
|
61
|
+
**/public/workbox-*.js
|
|
62
|
+
**/public/worker-*.js
|
|
63
|
+
**/public/fallback-*.js
|
|
64
|
+
**/public/precache.*.*.js.map
|
|
65
|
+
**/public/sw.js.map
|
|
66
|
+
**/public/workbox-*.js.map
|
|
67
|
+
**/public/worker-*.js.map
|
|
68
|
+
**/public/fallback-*.js
|
|
69
|
+
**/public/libs
|
|
70
|
+
|
|
71
|
+
**/vendor/bundle/
|
|
72
|
+
**/ios/App/App/public
|
|
73
|
+
**/ios/App/App/Podfile.lock
|
|
74
|
+
**/ios/App/App.pbxproj
|
|
75
|
+
**/*-secret.yaml
|
|
76
|
+
|
|
77
|
+
# Akanjs files
|
|
78
|
+
**/akan.app.json
|
|
79
|
+
**/akan.lib.json
|
|
80
|
+
**/akan.pkg.json
|
|
81
|
+
**/next.config.ts
|
|
82
|
+
**/next-env.d.ts
|
|
83
|
+
apps/**/lib/__lib/**
|
|
84
|
+
libs/**/lib/__lib/**
|
|
85
|
+
apps/*/lib/cnst.ts
|
|
86
|
+
apps/*/lib/cnst_.ts
|
|
87
|
+
apps/*/lib/dict.ts
|
|
88
|
+
apps/*/lib/db.ts
|
|
89
|
+
apps/*/lib/fetch.ts
|
|
90
|
+
apps/*/lib/srv.ts
|
|
91
|
+
apps/*/lib/st.ts
|
|
92
|
+
apps/*/lib/sig.ts
|
|
93
|
+
apps/*/lib/store.ts
|
|
94
|
+
apps/*/lib/usePage.ts
|
|
95
|
+
apps/*/lib/__scalar/_server.ts
|
|
96
|
+
apps/*/client.ts
|
|
97
|
+
apps/*/server.ts
|
|
98
|
+
libs/*/lib/cnst.ts
|
|
99
|
+
libs/*/lib/cnst_.ts
|
|
100
|
+
libs/*/lib/dict.ts
|
|
101
|
+
libs/*/lib/db.ts
|
|
102
|
+
libs/*/lib/fetch.ts
|
|
103
|
+
libs/*/lib/srv.ts
|
|
104
|
+
libs/*/lib/st.ts
|
|
105
|
+
libs/*/lib/sig.ts
|
|
106
|
+
libs/*/lib/store.ts
|
|
107
|
+
libs/*/lib/usePage.ts
|
|
108
|
+
libs/*/lib/__scalar/_server.ts
|
|
109
|
+
libs/*/client.ts
|
|
110
|
+
libs/*/server.ts
|
|
111
|
+
libs/*/index.ts
|
|
112
|
+
# **/capacitor.config.ts
|
|
113
|
+
# **/postcss.config.js
|
|
114
|
+
# **/playwright.config.ts
|
|
115
|
+
# **/jest.config.ts
|
|
116
|
+
# **/next-env.d.ts
|
|
117
|
+
# **/tsconfig.json
|
|
118
|
+
# **/tsconfig.spec.json
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"testing.saveBeforeTest": false,
|
|
3
|
+
"jest.autoRun": "false",
|
|
4
|
+
"jestTestExplorer.flattenExplorer": false,
|
|
5
|
+
"eslint.validate": ["json"],
|
|
6
|
+
"prettier.configPath": ".prettierrc.json",
|
|
7
|
+
"tailwindCSS.classAttributes": ["class", "className", ".*Class", ".*ClassName"],
|
|
8
|
+
"colorize.languages": ["typescript", "javascript", "css", "scss"],
|
|
9
|
+
"typescript.tsserver.maxTsServerMemory": 16384,
|
|
10
|
+
"typescript.enablePromptUseWorkspaceTsdk": true,
|
|
11
|
+
"typescript.tsdk": "node_modules/typescript/lib",
|
|
12
|
+
"eslint.useFlatConfig": true
|
|
13
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
## Get Started
|
|
2
|
+
|
|
3
|
+
Run the code below.
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
npm run downloadEnv # Need to register your public key
|
|
7
|
+
|
|
8
|
+
npm i -g akan pnpm
|
|
9
|
+
|
|
10
|
+
pnpm i
|
|
11
|
+
|
|
12
|
+
cat <<EOF >> .env
|
|
13
|
+
# organization configuration, no need to change
|
|
14
|
+
NEXT_PUBLIC_REPO_NAME=<%= repoName %>
|
|
15
|
+
NEXT_PUBLIC_SERVE_DOMAIN="<%= serveDomain %>"
|
|
16
|
+
|
|
17
|
+
# development branch, debug, develop, main, etc. mainly it changes databases.
|
|
18
|
+
NEXT_PUBLIC_ENV=debug
|
|
19
|
+
|
|
20
|
+
# local, cloud, edge it changes the connection point of the clients.
|
|
21
|
+
NEXT_PUBLIC_OPERATION_MODE=local
|
|
22
|
+
# hybrid app specific config, will be depreciated in the future
|
|
23
|
+
APP_OPERATION_MODE=local
|
|
24
|
+
|
|
25
|
+
# backend service mode, federation, batch, all
|
|
26
|
+
SERVER_MODE=federation
|
|
27
|
+
|
|
28
|
+
# analyze the bundle size
|
|
29
|
+
ANALYZE=false
|
|
30
|
+
|
|
31
|
+
# log level, debug, info, warn, error
|
|
32
|
+
NEXT_PUBLIC_LOG_LEVEL=debug
|
|
33
|
+
EOF
|
|
34
|
+
|
|
35
|
+
akan serve-backend <%= appName %>
|
|
36
|
+
# or akan serve-frontend <%= appName %>, etc
|
|
37
|
+
```
|