@akanjs/cli 0.0.58 → 0.0.60

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.
Files changed (80) hide show
  1. package/index.js +679 -91
  2. package/package.json +3 -4
  3. package/pkgs/@akanjs/cli/src/application/application.runner.d.ts +1 -0
  4. package/pkgs/@akanjs/cli/src/application/application.script.d.ts +2 -1
  5. package/pkgs/@akanjs/cli/src/library/library.command.d.ts +3 -1
  6. package/pkgs/@akanjs/cli/src/library/library.runner.d.ts +4 -1
  7. package/pkgs/@akanjs/cli/src/library/library.script.d.ts +4 -1
  8. package/pkgs/@akanjs/cli/src/module/module.command.d.ts +1 -1
  9. package/pkgs/@akanjs/cli/src/module/module.prompt.d.ts +1 -1
  10. package/pkgs/@akanjs/cli/src/module/module.script.d.ts +1 -1
  11. package/pkgs/@akanjs/cli/src/workspace/workspace.command.d.ts +1 -2
  12. package/pkgs/@akanjs/cli/src/workspace/workspace.runner.d.ts +0 -1
  13. package/pkgs/@akanjs/cli/src/workspace/workspace.script.d.ts +4 -1
  14. package/pkgs/@akanjs/devkit/src/aiEditor.d.ts +17 -0
  15. package/pkgs/@akanjs/devkit/src/executors.d.ts +26 -0
  16. package/pkgs/@akanjs/devkit/src/index.d.ts +1 -0
  17. package/pkgs/@akanjs/devkit/src/streamAi.d.ts +1 -1
  18. package/src/templates/app/akan.config.js +35 -0
  19. package/src/templates/app/env/env.client.debug.ts.template +7 -0
  20. package/src/templates/app/env/env.client.develop.ts.template +7 -0
  21. package/src/templates/app/env/env.client.main.ts.template +7 -0
  22. package/src/templates/app/env/env.client.testing.ts.template +7 -0
  23. package/src/templates/app/env/env.client.type.js +1 -1
  24. package/src/templates/app/env/env.server.debug.ts.template +15 -0
  25. package/src/templates/app/env/env.server.develop.ts.template +15 -0
  26. package/src/templates/app/env/env.server.main.ts.template +15 -0
  27. package/src/templates/app/env/env.server.testing.ts.template +7 -0
  28. package/src/templates/app/tsconfig.json.template +6 -6
  29. package/src/templates/workspaceRoot/.gitignore.template +117 -0
  30. package/src/templates/{workplaceRoot/eslint.config.js.template → workspaceRoot/eslint.config.ts.template} +14 -19
  31. package/src/templates/app/akan.config.ts.template +0 -5
  32. package/src/templates/workplaceRoot/.gitignore.template +0 -195
  33. /package/src/templates/app/app/[lang]/(__appName__)/(public)/forgotpassword/{page.js → page.jsx} +0 -0
  34. /package/src/templates/app/app/[lang]/(__appName__)/(public)/{page.js → page.jsx} +0 -0
  35. /package/src/templates/app/app/[lang]/(__appName__)/(public)/privacy/{page.js → page.jsx} +0 -0
  36. /package/src/templates/app/app/[lang]/(__appName__)/(public)/signin/{page.js → page.jsx} +0 -0
  37. /package/src/templates/app/app/[lang]/(__appName__)/(public)/termsofservice/{page.js → page.jsx} +0 -0
  38. /package/src/templates/app/app/[lang]/(__appName__)/(user)/{layout.js → layout.jsx} +0 -0
  39. /package/src/templates/app/app/[lang]/(__appName__)/(user)/self/{page.js → page.jsx} +0 -0
  40. /package/src/templates/app/app/[lang]/(__appName__)/{layout.js → layout.jsx} +0 -0
  41. /package/src/templates/app/app/[lang]/admin/{layout.js → layout.jsx} +0 -0
  42. /package/src/templates/app/app/[lang]/admin/{page.js → page.jsx} +0 -0
  43. /package/src/templates/app/app/{csr.js → csr.jsx} +0 -0
  44. /package/src/templates/app/app/{layout.js → layout.jsx} +0 -0
  45. /package/src/templates/app/lib/setting/{Setting.Template.js → Setting.Template.jsx} +0 -0
  46. /package/src/templates/app/lib/setting/{Setting.Unit.js → Setting.Unit.jsx} +0 -0
  47. /package/src/templates/app/lib/setting/{Setting.Util.js → Setting.Util.jsx} +0 -0
  48. /package/src/templates/app/lib/setting/{Setting.View.js → Setting.View.jsx} +0 -0
  49. /package/src/templates/app/lib/setting/{Setting.Zone.js → Setting.Zone.jsx} +0 -0
  50. /package/src/templates/app/lib/setting/{index.js → index.jsx} +0 -0
  51. /package/src/templates/app/lib/summary/{Summary.Template.js → Summary.Template.jsx} +0 -0
  52. /package/src/templates/app/lib/summary/{Summary.Unit.js → Summary.Unit.jsx} +0 -0
  53. /package/src/templates/app/lib/summary/{Summary.Util.js → Summary.Util.jsx} +0 -0
  54. /package/src/templates/app/lib/summary/{Summary.View.js → Summary.View.jsx} +0 -0
  55. /package/src/templates/app/lib/summary/{Summary.Zone.js → Summary.Zone.jsx} +0 -0
  56. /package/src/templates/app/lib/summary/{index.js → index.jsx} +0 -0
  57. /package/src/templates/app/lib/user/{User.Template.js → User.Template.jsx} +0 -0
  58. /package/src/templates/app/lib/user/{User.Unit.js → User.Unit.jsx} +0 -0
  59. /package/src/templates/app/lib/user/{User.Util.js → User.Util.jsx} +0 -0
  60. /package/src/templates/app/lib/user/{User.View.js → User.View.jsx} +0 -0
  61. /package/src/templates/app/lib/user/{User.Zone.js → User.Zone.jsx} +0 -0
  62. /package/src/templates/app/lib/user/{index.js → index.jsx} +0 -0
  63. /package/src/templates/app/ui/{Footer.js → Footer.jsx} +0 -0
  64. /package/src/templates/app/ui/{MainHeader.js → MainHeader.jsx} +0 -0
  65. /package/src/templates/crudPages/[__model__Id]/edit/{page.js → page.jsx} +0 -0
  66. /package/src/templates/crudPages/[__model__Id]/{page.js → page.jsx} +0 -0
  67. /package/src/templates/crudPages/new/{page.js → page.jsx} +0 -0
  68. /package/src/templates/crudPages/{page.js → page.jsx} +0 -0
  69. /package/src/templates/module/{__Model__.Template.js → __Model__.Template.jsx} +0 -0
  70. /package/src/templates/module/{__Model__.Unit.js → __Model__.Unit.jsx} +0 -0
  71. /package/src/templates/module/{__Model__.Util.js → __Model__.Util.jsx} +0 -0
  72. /package/src/templates/module/{__Model__.View.js → __Model__.View.jsx} +0 -0
  73. /package/src/templates/module/{__Model__.Zone.js → __Model__.Zone.jsx} +0 -0
  74. /package/src/templates/module/{index.js → index.jsx} +0 -0
  75. /package/src/templates/{workplaceRoot → workspaceRoot}/.env.template +0 -0
  76. /package/src/templates/{workplaceRoot → workspaceRoot}/.prettierignore.template +0 -0
  77. /package/src/templates/{workplaceRoot → workspaceRoot}/.prettierrc.json.template +0 -0
  78. /package/src/templates/{workplaceRoot → workspaceRoot}/.swcrc.template +0 -0
  79. /package/src/templates/{workplaceRoot → workspaceRoot}/README.md.template +0 -0
  80. /package/src/templates/{workplaceRoot → workspaceRoot}/tsconfig.json.template +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "@akanjs/cli",
4
- "version": "0.0.58",
4
+ "version": "0.0.60",
5
5
  "bin": {
6
6
  "akan": "index.js"
7
7
  },
@@ -19,8 +19,8 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@inquirer/prompts": "^7.2.1",
22
- "@langchain/core": "^0.3.27",
23
- "@langchain/openai": "^0.3.16",
22
+ "@langchain/core": "^0.3.56",
23
+ "@langchain/openai": "^0.5.10",
24
24
  "@next/bundle-analyzer": "^15.1.3",
25
25
  "@nx/devkit": "^20.7.2",
26
26
  "@trapezedev/project": "^7.1.3",
@@ -35,7 +35,6 @@
35
35
  "form-data": "^4.0.1",
36
36
  "js-yaml": "^4.1.0",
37
37
  "latest-version": "^9.0.0",
38
- "lodash": "^4.17.21",
39
38
  "next-pwa": "^5.6.0",
40
39
  "open": "^10.1.1",
41
40
  "ora": "^3.4.0",
@@ -7,6 +7,7 @@ export interface ReleaseSourceOptions {
7
7
  }
8
8
  export declare class ApplicationRunner {
9
9
  #private;
10
+ createApplication(appName: string, workspace: Workspace): Promise<void>;
10
11
  scanSync(app: App): Promise<import("@akanjs/config").AppScanResult | import("@akanjs/config").LibScanResult>;
11
12
  buildBackend(app: App, distApp: DistAppExecutor): Promise<void>;
12
13
  serveBackend(app: App, distApp: DistAppExecutor): Promise<void>;
@@ -1,10 +1,11 @@
1
- import type { App } from "@akanjs/devkit";
1
+ import type { App, Workspace } from "@akanjs/devkit";
2
2
  import { DistAppExecutor } from "@akanjs/devkit";
3
3
  import { LibraryScript } from "../library/library.script";
4
4
  import { type ReleaseSourceOptions } from "./application.runner";
5
5
  export declare class ApplicationScript {
6
6
  #private;
7
7
  libraryScript: LibraryScript;
8
+ createApplication(appName: string, workspace: Workspace): Promise<void>;
8
9
  scanApplication(app: App): Promise<void>;
9
10
  syncApplication(app: App, { recursive }?: {
10
11
  recursive?: boolean;
@@ -6,5 +6,7 @@ export declare class LibraryCommand {
6
6
  removeLibrary(lib: Lib, workspace: Workspace): Promise<void>;
7
7
  scanLibrary(lib: Lib): Promise<void>;
8
8
  buildLibrary(lib: Lib): Promise<void>;
9
- pushLibrary(lib: Lib): Promise<void>;
9
+ installLibrary(name: string, workspace: Workspace): Promise<void>;
10
+ pushLibrary(lib: Lib, branch: string): Promise<void>;
11
+ pullLibrary(lib: Lib, branch: string): Promise<void>;
10
12
  }
@@ -1,4 +1,7 @@
1
- import { Lib } from "@akanjs/devkit";
1
+ import { Lib, Workspace } from "@akanjs/devkit";
2
2
  export declare class LibraryRunner {
3
3
  scanSync(lib: Lib): Promise<import("@akanjs/config").AppScanResult | import("@akanjs/config").LibScanResult>;
4
+ installLibrary(workspace: Workspace, libName: string): Promise<void>;
5
+ pushLibrary(lib: Lib, branch: string): Promise<void>;
6
+ pullLibrary(lib: Lib, branch: string): Promise<void>;
4
7
  }
@@ -1,8 +1,11 @@
1
- import type { Lib } from "@akanjs/devkit";
1
+ import type { Lib, Workspace } from "@akanjs/devkit";
2
2
  export declare class LibraryScript {
3
3
  #private;
4
4
  scanLibrary(lib: Lib): Promise<void>;
5
5
  syncLibrary(lib: Lib, { recursive }?: {
6
6
  recursive?: boolean;
7
7
  }): Promise<void>;
8
+ installLibrary(workspace: Workspace, libName: string): Promise<void>;
9
+ pushLibrary(lib: Lib, branch: string): Promise<void>;
10
+ pullLibrary(lib: Lib, branch: string): Promise<void>;
8
11
  }
@@ -5,7 +5,7 @@ export declare class ModuleCommand {
5
5
  createModule(name: string, workspace: Workspace): Promise<void>;
6
6
  removeModule(name: string, workspace: Workspace): Promise<void>;
7
7
  scanModule(name: string, workspace: Workspace): Promise<void>;
8
- createScalar(sys: Sys, name: string, workspace: Workspace): Promise<void>;
8
+ createScalar(sys: Sys, name: string, description: string, schemaDescription: string, workspace: Workspace): Promise<void>;
9
9
  createService(name: string, workspace: Workspace): Promise<void>;
10
10
  createTest(name: string, workspace: Workspace): Promise<void>;
11
11
  createView(name: string, workspace: Workspace): Promise<void>;
@@ -7,7 +7,7 @@ interface RequestConstantProps {
7
7
  modelSchemaDesign: string;
8
8
  boilerplate: string;
9
9
  otherConstants: {
10
- path: string;
10
+ filepath: string;
11
11
  content: string;
12
12
  }[];
13
13
  }
@@ -3,7 +3,7 @@ export declare class ModuleScript {
3
3
  #private;
4
4
  createModule(workspace: Workspace, name: string): Promise<void>;
5
5
  removeModule(workspace: Workspace, name: string): Promise<void>;
6
- createScalar(sys: Sys, name: string): Promise<void>;
6
+ createScalar(sys: Sys, name: string, description: string, schemaDescription: string): Promise<void>;
7
7
  createService(workspace: Workspace, name: string): Promise<void>;
8
8
  createTest(workspace: Workspace, name: string): Promise<void>;
9
9
  createUnit(workspace: Workspace, type: "app" | "lib", appOrLibName: string, modelName: string): Promise<void>;
@@ -2,7 +2,6 @@ import { Workspace } from "@akanjs/devkit";
2
2
  import { WorkspaceScript } from "./workspace.script";
3
3
  export declare class WorkspaceCommand {
4
4
  workspaceScript: WorkspaceScript;
5
- createWorkspace(name: string, dir: string, app: string): Promise<void>;
6
- installLibrary(name: string, workspace: Workspace): Promise<void>;
5
+ createWorkspace(name: string, app: string, dir: string): Promise<void>;
7
6
  generateMongo(workspace: Workspace): Promise<void>;
8
7
  }
@@ -2,5 +2,4 @@ import { type Workspace } from "@akanjs/devkit";
2
2
  export declare class WorkspaceRunner {
3
3
  createWorkspace(repoName: string, appName: string, dirname?: string): Promise<void>;
4
4
  generateMongo(workspace: Workspace): Promise<void>;
5
- installLibrary(workspace: Workspace, libName: string): Promise<void>;
6
5
  }
@@ -1,7 +1,10 @@
1
1
  import { WorkspaceExecutor } from "@akanjs/devkit";
2
+ import { ApplicationScript } from "../application/application.script";
3
+ import { LibraryScript } from "../library/library.script";
2
4
  export declare class WorkspaceScript {
3
5
  #private;
6
+ applicationScript: ApplicationScript;
7
+ libraryScript: LibraryScript;
4
8
  createWorkspace(repoName: string, appName: string, dirname?: string): Promise<void>;
5
9
  generateMongo(workspace: WorkspaceExecutor): Promise<void>;
6
- installLibrary(workspace: WorkspaceExecutor, libName: string): Promise<void>;
7
10
  }
@@ -0,0 +1,17 @@
1
+ import { BaseMessage } from "@langchain/core/messages";
2
+ interface EditOptions {
3
+ onChunk?: (chunk: string) => void;
4
+ maxTry?: number;
5
+ }
6
+ export declare class AiSession {
7
+ #private;
8
+ readonly messageHistory: BaseMessage[];
9
+ constructor(messageHistory?: BaseMessage[]);
10
+ ask(question: string, { onChunk, }?: EditOptions): Promise<{
11
+ content: string;
12
+ messageHistory: BaseMessage[];
13
+ }>;
14
+ edit(question: string, { onChunk, maxTry }?: EditOptions): Promise<string>;
15
+ editTypescript(question: string, options?: EditOptions): Promise<string>;
16
+ }
17
+ export {};
@@ -16,6 +16,10 @@ export declare class Executor {
16
16
  mkdir(dirPath: string): this;
17
17
  writeFile(filePath: string, content: string | object): this;
18
18
  writeJson(filePath: string, content: object): this;
19
+ getLocalFile(filePath: string): {
20
+ filepath: string;
21
+ content: string;
22
+ };
19
23
  readFile(filePath: string): string;
20
24
  readJson(filePath: string): object;
21
25
  cp(srcPath: string, destPath: string): Promise<void>;
@@ -46,6 +50,15 @@ export declare class WorkspaceExecutor extends Executor {
46
50
  getLibs(): Promise<string[]>;
47
51
  getSyss(): Promise<[string[], string[]]>;
48
52
  getPkgs(): Promise<string[]>;
53
+ setTsPaths(type: "app" | "lib", name: string): this;
54
+ commit(message: string, { init, add }?: {
55
+ init?: boolean;
56
+ add?: boolean;
57
+ }): Promise<void>;
58
+ getScalarConstantFiles(): Promise<{
59
+ filepath: string;
60
+ content: string;
61
+ }[]>;
49
62
  }
50
63
  interface SysExecutorOptions {
51
64
  workspace?: WorkspaceExecutor;
@@ -64,9 +77,22 @@ export declare class SysExecutor extends Executor {
64
77
  }, libScanResults?: {
65
78
  [key: string]: LibScanResult;
66
79
  }): Promise<AppScanResult | LibScanResult>;
80
+ getLocalFile(filePath: string): {
81
+ filepath: string;
82
+ content: string;
83
+ };
67
84
  getDatabaseModules(): Promise<string[]>;
68
85
  getServiceModules(): Promise<string[]>;
69
86
  getScalarModules(): Promise<string[]>;
87
+ getScalarConstantFiles(): Promise<{
88
+ filepath: string;
89
+ content: string;
90
+ }[]>;
91
+ getScalarDictionaryFiles(): Promise<{
92
+ filepath: string;
93
+ content: string;
94
+ }[]>;
95
+ setTsPaths(): this;
70
96
  }
71
97
  interface AppExecutorOptions {
72
98
  workspace?: WorkspaceExecutor;
@@ -16,3 +16,4 @@ export * from "./capacitorApp";
16
16
  export * from "./extractDeps";
17
17
  export * from "./commandDecorators";
18
18
  export * from "./installExternalLib";
19
+ export * from "./aiEditor";
@@ -2,5 +2,5 @@ interface StreamResponse {
2
2
  content: string;
3
3
  chunk?: string;
4
4
  }
5
- export declare const streamAi: (question: string, callback: (chunk: string) => void) => Promise<StreamResponse>;
5
+ export declare const streamAi: (question: string, callback?: (chunk: string) => void) => Promise<StreamResponse>;
6
6
  export {};
@@ -0,0 +1,35 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var akan_config_exports = {};
19
+ __export(akan_config_exports, {
20
+ default: () => getContent
21
+ });
22
+ module.exports = __toCommonJS(akan_config_exports);
23
+ function getContent(scanResult, dict) {
24
+ return `
25
+ import type { AppConfig } from "@akanjs/config";
26
+
27
+ const config: AppConfig = {
28
+ rootLib: "shared",
29
+ libs: ["util", "shared"],
30
+ };
31
+
32
+ export default config;
33
+ `;
34
+ }
35
+ module.exports = module.exports.default;
@@ -0,0 +1,7 @@
1
+ import { baseClientEnv } from "@akanjs/base";
2
+
3
+ import { AppClientEnv } from "./env.client.type";
4
+
5
+ export const env: AppClientEnv = {
6
+ ...baseClientEnv,
7
+ } as const;
@@ -0,0 +1,7 @@
1
+ import { baseClientEnv } from "@akanjs/base";
2
+
3
+ import { AppClientEnv } from "./env.client.type";
4
+
5
+ export const env: AppClientEnv = {
6
+ ...baseClientEnv,
7
+ } as const;
@@ -0,0 +1,7 @@
1
+ import { baseClientEnv } from "@akanjs/base";
2
+
3
+ import { AppClientEnv } from "./env.client.type";
4
+
5
+ export const env: AppClientEnv = {
6
+ ...baseClientEnv,
7
+ } as const;
@@ -0,0 +1,7 @@
1
+ import { baseClientEnv } from "@akanjs/base";
2
+
3
+ import { AppClientEnv } from "./env.client.type";
4
+
5
+ export const env: AppClientEnv = {
6
+ ...baseClientEnv,
7
+ } as const;
@@ -25,7 +25,7 @@ function getContent(scanResult, dict = {}) {
25
25
  import type { BaseClientEnv } from "@akanjs/base";
26
26
 
27
27
  export type AppClientEnv = BaseClientEnv & {
28
- cloudflare: {
28
+ cloudflare?: {
29
29
  siteKey: string;
30
30
  };
31
31
  };
@@ -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: { 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,7 @@
1
+ import { env as shared } from "@shared/server";
2
+
3
+ import type { ModulesOptions } from "../lib/option";
4
+
5
+ export const env: ModulesOptions = {
6
+ ...shared,
7
+ };
@@ -9,14 +9,14 @@
9
9
  "jsx": "preserve",
10
10
  "plugins": [
11
11
  {
12
- "name": "next",
13
- },
14
- ],
12
+ "name": "next"
13
+ }
14
+ ]
15
15
  },
16
16
  "include": ["./**/*.ts", "./**/*.tsx", ".next/types/**/*.ts"],
17
17
  "references": [
18
18
  {
19
- "path": "./tsconfig.spec.json",
20
- },
21
- ],
19
+ "path": "./tsconfig.spec.json"
20
+ }
21
+ ]
22
22
  }
@@ -0,0 +1,117 @@
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
+ apps/**/src/schema.gql
26
+ .next
27
+ dump
28
+ local
29
+
30
+ # Xcode
31
+ build/
32
+ *.pbxuser
33
+ !default.pbxuser
34
+ *.mode1v3
35
+ !default.mode1v3
36
+ *.mode2v3
37
+ !default.mode2v3
38
+ *.perspectivev3
39
+ !default.perspectivev3
40
+ xcuserdata
41
+ *.xccheckout
42
+ *.moved-aside
43
+ DerivedData
44
+ *.hmap
45
+ *.ipa
46
+ *.xcuserstate
47
+
48
+ # **/android
49
+ build/
50
+ .gradle
51
+ local.properties
52
+ *.iml
53
+ *.hprof
54
+ .cxx/
55
+ *.keystore
56
+ !debug.keystore
57
+
58
+ **/public/precache.*.*.js
59
+ **/public/sw.js
60
+ **/public/workbox-*.js
61
+ **/public/worker-*.js
62
+ **/public/fallback-*.js
63
+ **/public/precache.*.*.js.map
64
+ **/public/sw.js.map
65
+ **/public/workbox-*.js.map
66
+ **/public/worker-*.js.map
67
+ **/public/fallback-*.js
68
+ **/public/libs
69
+
70
+ **/vendor/bundle/
71
+ **/ios/App/App/public
72
+ **/ios/App/App/Podfile.lock
73
+ **/ios/App/App.pbxproj
74
+ **/*-secret.yaml
75
+
76
+ # Akanjs files
77
+ **/akan.app.json
78
+ **/akan.lib.json
79
+ **/akan.pkg.json
80
+ **/next.config.ts
81
+ **/next-env.d.ts
82
+ apps/**/lib/__lib/**
83
+ libs/**/lib/__lib/**
84
+ apps/*/lib/cnst.ts
85
+ apps/*/lib/cnst_.ts
86
+ apps/*/lib/dict.ts
87
+ apps/*/lib/db.ts
88
+ apps/*/lib/fetch.ts
89
+ apps/*/lib/srv.ts
90
+ apps/*/lib/st.ts
91
+ apps/*/lib/sig.ts
92
+ apps/*/lib/store.ts
93
+ apps/*/lib/usePage.ts
94
+ apps/*/lib/__scalar/_server.ts
95
+ apps/*/client.ts
96
+ apps/*/server.ts
97
+ libs/*/lib/cnst.ts
98
+ libs/*/lib/cnst_.ts
99
+ libs/*/lib/dict.ts
100
+ libs/*/lib/db.ts
101
+ libs/*/lib/fetch.ts
102
+ libs/*/lib/srv.ts
103
+ libs/*/lib/st.ts
104
+ libs/*/lib/sig.ts
105
+ libs/*/lib/store.ts
106
+ libs/*/lib/usePage.ts
107
+ libs/*/lib/__scalar/_server.ts
108
+ libs/*/client.ts
109
+ libs/*/server.ts
110
+ libs/*/index.ts
111
+ # **/capacitor.config.ts
112
+ # **/postcss.config.js
113
+ # **/playwright.config.ts
114
+ # **/jest.config.ts
115
+ # **/next-env.d.ts
116
+ # **/tsconfig.json
117
+ # **/tsconfig.spec.json
@@ -1,12 +1,12 @@
1
- const nx = require("@nx/eslint-plugin");
2
- const unusedImports = require("eslint-plugin-unused-imports");
3
- const simpleImportSort = require("eslint-plugin-simple-import-sort");
4
- const typescriptEslint = require("@typescript-eslint/eslint-plugin");
5
- const nxWorkspace = require("./tools/eslint-rules/index.ts");
6
- const tsParser = require("@typescript-eslint/parser");
7
- const js = require("@eslint/js");
1
+ /* eslint-disable */
2
+ import { FlatCompat } from "@eslint/eslintrc";
3
+ import js from "@eslint/js";
4
+ import typescriptEslint from "@typescript-eslint/eslint-plugin";
5
+ import tsParser from "@typescript-eslint/parser";
6
+ import simpleImportSort from "eslint-plugin-simple-import-sort";
7
+ import unusedImports from "eslint-plugin-unused-imports";
8
8
 
9
- const { FlatCompat } = require("@eslint/eslintrc");
9
+ import akanjsLint from "@akanjs/lint";
10
10
 
11
11
  const compat = new FlatCompat({
12
12
  baseDirectory: __dirname,
@@ -14,7 +14,7 @@ const compat = new FlatCompat({
14
14
  allConfig: js.configs.all,
15
15
  });
16
16
 
17
- module.exports = [
17
+ export default [
18
18
  {
19
19
  ignores: [
20
20
  "**/node_modules/**/*",
@@ -43,8 +43,7 @@ module.exports = [
43
43
  ),
44
44
  {
45
45
  plugins: {
46
- "@nx": nx,
47
- "@nx/workspace": nxWorkspace,
46
+ "@akanjs/lint": akanjsLint,
48
47
  "unused-imports": unusedImports,
49
48
  "simple-import-sort": simpleImportSort,
50
49
  "@typescript-eslint": typescriptEslint,
@@ -77,10 +76,10 @@ module.exports = [
77
76
 
78
77
  rules: {
79
78
  "no-console": "error",
80
- "@nx/workspace/useClientByFile": "error",
81
- "@nx/workspace/noImportClientFunctions": "error",
82
- "@nx/workspace/nonScalarPropsRestricted": "error",
83
- "@nx/workspace/noImportExternalLibrary": "error",
79
+ "@akanjs/lint/useClientByFile": "error",
80
+ "@akanjs/lint/noImportClientFunctions": "error",
81
+ "@akanjs/lint/nonScalarPropsRestricted": "error",
82
+ "@akanjs/lint/noImportExternalLibrary": "error",
84
83
  "@typescript-eslint/no-inferrable-types": "off",
85
84
  "@typescript-eslint/restrict-template-expressions": "off",
86
85
  "@typescript-eslint/consistent-indexed-object-style": "off",
@@ -108,10 +107,6 @@ module.exports = [
108
107
  "import/newline-after-import": "warn",
109
108
  },
110
109
  },
111
- ...compat.extends("plugin:@nx/typescript").map((config) => ({
112
- ...config,
113
- files: ["**/*.ts", "**/*.tsx"],
114
- })),
115
110
  {
116
111
  files: ["**/*.ts", "**/*.tsx"],
117
112
  rules: {},
@@ -1,5 +0,0 @@
1
- import type { AppConfig } from "@akanjs/config";
2
-
3
- const config: AppConfig = {};
4
-
5
- export default config;