@akanjs/cli 0.0.57 → 0.0.59

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 (158) hide show
  1. package/index.js +680 -92
  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/__scalar/__model__/__model__.constant.js +0 -2
  19. package/src/templates/__scalar/__model__/__model__.dictionary.js +0 -2
  20. package/src/templates/__scalar/__model__/__model__.document.js +0 -2
  21. package/src/templates/app/akan.config.js +35 -0
  22. package/src/templates/app/app/[lang]/(__appName__)/(public)/forgotpassword/{page.js → page.jsx} +0 -2
  23. package/src/templates/app/app/[lang]/(__appName__)/(public)/{page.js → page.jsx} +0 -2
  24. package/src/templates/app/app/[lang]/(__appName__)/(public)/privacy/{page.js → page.jsx} +0 -2
  25. package/src/templates/app/app/[lang]/(__appName__)/(public)/signin/{page.js → page.jsx} +0 -2
  26. package/src/templates/app/app/[lang]/(__appName__)/(public)/termsofservice/{page.js → page.jsx} +0 -2
  27. package/src/templates/app/app/[lang]/(__appName__)/(user)/{layout.js → layout.jsx} +0 -2
  28. package/src/templates/app/app/[lang]/(__appName__)/(user)/self/{page.js → page.jsx} +0 -2
  29. package/src/templates/app/app/[lang]/(__appName__)/{layout.js → layout.jsx} +0 -2
  30. package/src/templates/app/app/[lang]/admin/{layout.js → layout.jsx} +0 -2
  31. package/src/templates/app/app/[lang]/admin/{page.js → page.jsx} +0 -2
  32. package/src/templates/app/app/{csr.js → csr.jsx} +0 -2
  33. package/src/templates/app/app/{layout.js → layout.jsx} +0 -2
  34. package/src/templates/app/app/robots.js +0 -2
  35. package/src/templates/app/app/sitemap.js +0 -2
  36. package/src/templates/app/base/baseLogic.js +0 -2
  37. package/src/templates/app/base/index.js +0 -2
  38. package/src/templates/app/common/commonLogic.js +0 -2
  39. package/src/templates/app/common/index.js +0 -2
  40. package/src/templates/app/env/env.client.debug.ts.template +7 -0
  41. package/src/templates/app/env/env.client.develop.ts.template +7 -0
  42. package/src/templates/app/env/env.client.js +0 -2
  43. package/src/templates/app/env/env.client.main.ts.template +7 -0
  44. package/src/templates/app/env/env.client.testing.ts.template +7 -0
  45. package/src/templates/app/env/env.client.type.js +1 -3
  46. package/src/templates/app/env/env.server.debug.ts.template +15 -0
  47. package/src/templates/app/env/env.server.develop.ts.template +15 -0
  48. package/src/templates/app/env/env.server.js +0 -2
  49. package/src/templates/app/env/env.server.main.ts.template +15 -0
  50. package/src/templates/app/env/env.server.testing.ts.template +7 -0
  51. package/src/templates/app/jest.config.js +0 -2
  52. package/src/templates/app/lib/___appName__/__appName__.dictionary.js +0 -2
  53. package/src/templates/app/lib/___appName__/__appName__.service.js +0 -2
  54. package/src/templates/app/lib/___appName__/__appName__.store.js +0 -2
  55. package/src/templates/app/lib/___appName__/_server.js +0 -2
  56. package/src/templates/app/lib/option.js +0 -2
  57. package/src/templates/app/lib/setting/{Setting.Template.js → Setting.Template.jsx} +0 -2
  58. package/src/templates/app/lib/setting/{Setting.Unit.js → Setting.Unit.jsx} +0 -2
  59. package/src/templates/app/lib/setting/{Setting.Util.js → Setting.Util.jsx} +0 -2
  60. package/src/templates/app/lib/setting/{Setting.View.js → Setting.View.jsx} +0 -2
  61. package/src/templates/app/lib/setting/{Setting.Zone.js → Setting.Zone.jsx} +0 -2
  62. package/src/templates/app/lib/setting/_server.js +0 -2
  63. package/src/templates/app/lib/setting/{index.js → index.jsx} +0 -2
  64. package/src/templates/app/lib/setting/setting.constant.js +0 -2
  65. package/src/templates/app/lib/setting/setting.dictionary.js +0 -2
  66. package/src/templates/app/lib/setting/setting.document.js +0 -2
  67. package/src/templates/app/lib/setting/setting.service.js +0 -2
  68. package/src/templates/app/lib/setting/setting.signal.js +0 -2
  69. package/src/templates/app/lib/setting/setting.store.js +0 -2
  70. package/src/templates/app/lib/summary/{Summary.Template.js → Summary.Template.jsx} +0 -2
  71. package/src/templates/app/lib/summary/{Summary.Unit.js → Summary.Unit.jsx} +0 -2
  72. package/src/templates/app/lib/summary/{Summary.Util.js → Summary.Util.jsx} +0 -2
  73. package/src/templates/app/lib/summary/{Summary.View.js → Summary.View.jsx} +0 -2
  74. package/src/templates/app/lib/summary/{Summary.Zone.js → Summary.Zone.jsx} +0 -2
  75. package/src/templates/app/lib/summary/_server.js +0 -2
  76. package/src/templates/app/lib/summary/{index.js → index.jsx} +0 -2
  77. package/src/templates/app/lib/summary/summary.constant.js +0 -2
  78. package/src/templates/app/lib/summary/summary.dictionary.js +0 -2
  79. package/src/templates/app/lib/summary/summary.document.js +0 -2
  80. package/src/templates/app/lib/summary/summary.service.js +0 -2
  81. package/src/templates/app/lib/summary/summary.signal.js +0 -2
  82. package/src/templates/app/lib/summary/summary.store.js +0 -2
  83. package/src/templates/app/lib/user/{User.Template.js → User.Template.jsx} +0 -2
  84. package/src/templates/app/lib/user/{User.Unit.js → User.Unit.jsx} +0 -2
  85. package/src/templates/app/lib/user/{User.Util.js → User.Util.jsx} +0 -2
  86. package/src/templates/app/lib/user/{User.View.js → User.View.jsx} +0 -2
  87. package/src/templates/app/lib/user/{User.Zone.js → User.Zone.jsx} +0 -2
  88. package/src/templates/app/lib/user/_server.js +0 -2
  89. package/src/templates/app/lib/user/{index.js → index.jsx} +0 -2
  90. package/src/templates/app/lib/user/user.constant.js +0 -2
  91. package/src/templates/app/lib/user/user.dictionary.js +0 -2
  92. package/src/templates/app/lib/user/user.document.js +0 -2
  93. package/src/templates/app/lib/user/user.service.js +0 -2
  94. package/src/templates/app/lib/user/user.signal.js +0 -2
  95. package/src/templates/app/lib/user/user.signal.spec.js +0 -2
  96. package/src/templates/app/lib/user/user.signal.test.js +0 -2
  97. package/src/templates/app/lib/user/user.store.js +0 -2
  98. package/src/templates/app/main.js +0 -2
  99. package/src/templates/app/middleware.js +0 -2
  100. package/src/templates/app/nest/backendLogic.js +0 -2
  101. package/src/templates/app/nest/index.js +0 -2
  102. package/src/templates/app/next/frontendLogic.js +0 -2
  103. package/src/templates/app/next/index.js +0 -2
  104. package/src/templates/app/tsconfig.json.template +6 -6
  105. package/src/templates/app/ui/{Footer.js → Footer.jsx} +0 -2
  106. package/src/templates/app/ui/{MainHeader.js → MainHeader.jsx} +0 -2
  107. package/src/templates/app/ui/index.js +0 -2
  108. package/src/templates/client.js +1 -3
  109. package/src/templates/crudPages/[__model__Id]/edit/{page.js → page.jsx} +0 -2
  110. package/src/templates/crudPages/[__model__Id]/{page.js → page.jsx} +0 -2
  111. package/src/templates/crudPages/new/{page.js → page.jsx} +0 -2
  112. package/src/templates/crudPages/{page.js → page.jsx} +0 -2
  113. package/src/templates/index.js +0 -2
  114. package/src/templates/lib/__lib/extends/summary.constant.js +1 -3
  115. package/src/templates/lib/__lib/lib.constant.js +0 -2
  116. package/src/templates/lib/__lib/lib.dictionary.js +0 -2
  117. package/src/templates/lib/__lib/lib.document.js +0 -2
  118. package/src/templates/lib/__lib/lib.service.js +1 -3
  119. package/src/templates/lib/__lib/lib.signal.js +0 -2
  120. package/src/templates/lib/__lib/lib.store.js +0 -2
  121. package/src/templates/lib/__scalar/_server.js +1 -3
  122. package/src/templates/lib/cnst.js +0 -2
  123. package/src/templates/lib/cnst_.js +0 -2
  124. package/src/templates/lib/db.js +0 -2
  125. package/src/templates/lib/dict.js +0 -2
  126. package/src/templates/lib/fetch.js +1 -3
  127. package/src/templates/lib/sig.js +1 -3
  128. package/src/templates/lib/srv.js +1 -3
  129. package/src/templates/lib/st.js +0 -2
  130. package/src/templates/lib/store.js +1 -3
  131. package/src/templates/lib/usePage.js +0 -2
  132. package/src/templates/libRoot/jest.config.js +0 -2
  133. package/src/templates/module/{__Model__.Template.js → __Model__.Template.jsx} +0 -2
  134. package/src/templates/module/{__Model__.Unit.js → __Model__.Unit.jsx} +0 -2
  135. package/src/templates/module/{__Model__.Util.js → __Model__.Util.jsx} +0 -2
  136. package/src/templates/module/{__Model__.View.js → __Model__.View.jsx} +0 -2
  137. package/src/templates/module/{__Model__.Zone.js → __Model__.Zone.jsx} +0 -2
  138. package/src/templates/module/__model__.constant.js +0 -2
  139. package/src/templates/module/__model__.dictionary.js +0 -2
  140. package/src/templates/module/__model__.document.js +0 -2
  141. package/src/templates/module/__model__.service.js +0 -2
  142. package/src/templates/module/__model__.signal.js +0 -2
  143. package/src/templates/module/__model__.signal.spec.js +0 -2
  144. package/src/templates/module/__model__.signal.test.js +0 -2
  145. package/src/templates/module/__model__.store.js +0 -2
  146. package/src/templates/module/_server.js +0 -2
  147. package/src/templates/module/{index.js → index.jsx} +0 -2
  148. package/src/templates/server.js +1 -3
  149. package/src/templates/workspaceRoot/.gitignore.template +117 -0
  150. package/src/templates/{workplaceRoot/eslint.config.js.template → workspaceRoot/eslint.config.ts.template} +14 -19
  151. package/src/templates/app/akan.config.ts.template +0 -5
  152. package/src/templates/workplaceRoot/.gitignore.template +0 -195
  153. /package/src/templates/{workplaceRoot → workspaceRoot}/.env.template +0 -0
  154. /package/src/templates/{workplaceRoot → workspaceRoot}/.prettierignore.template +0 -0
  155. /package/src/templates/{workplaceRoot → workspaceRoot}/.prettierrc.json.template +0 -0
  156. /package/src/templates/{workplaceRoot → workspaceRoot}/.swcrc.template +0 -0
  157. /package/src/templates/{workplaceRoot → workspaceRoot}/README.md.template +0 -0
  158. /package/src/templates/{workplaceRoot → workspaceRoot}/tsconfig.json.template +0 -0
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/index.ts
20
18
  var templates_exports = {};
21
19
  __export(templates_exports, {
22
20
  default: () => getContent
@@ -15,14 +15,12 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/lib/__lib/extends/summary.constant.ts
20
18
  var summary_constant_exports = {};
21
19
  __export(summary_constant_exports, {
22
20
  default: () => getContent
23
21
  });
24
22
  module.exports = __toCommonJS(summary_constant_exports);
25
- var capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
23
+ const capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
26
24
  function getContent(scanResult, dict = {}) {
27
25
  if (!scanResult)
28
26
  return null;
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/lib/__lib/lib.constant.ts
20
18
  var lib_constant_exports = {};
21
19
  __export(lib_constant_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/lib/__lib/lib.dictionary.ts
20
18
  var lib_dictionary_exports = {};
21
19
  __export(lib_dictionary_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/lib/__lib/lib.document.ts
20
18
  var lib_document_exports = {};
21
19
  __export(lib_document_exports, {
22
20
  default: () => getContent
@@ -15,14 +15,12 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/lib/__lib/lib.service.ts
20
18
  var lib_service_exports = {};
21
19
  __export(lib_service_exports, {
22
20
  default: () => getContent
23
21
  });
24
22
  module.exports = __toCommonJS(lib_service_exports);
25
- var capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
23
+ const capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
26
24
  function getContent(scanResult, dict = {}) {
27
25
  if (!scanResult)
28
26
  return null;
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/lib/__lib/lib.signal.ts
20
18
  var lib_signal_exports = {};
21
19
  __export(lib_signal_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/lib/__lib/lib.store.ts
20
18
  var lib_store_exports = {};
21
19
  __export(lib_store_exports, {
22
20
  default: () => getContent
@@ -15,14 +15,12 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/lib/__scalar/_server.ts
20
18
  var server_exports = {};
21
19
  __export(server_exports, {
22
20
  default: () => getContent
23
21
  });
24
22
  module.exports = __toCommonJS(server_exports);
25
- var capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
23
+ const capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
26
24
  function getContent(scanResult, dict = {}) {
27
25
  if (!scanResult)
28
26
  return null;
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/lib/cnst.ts
20
18
  var cnst_exports = {};
21
19
  __export(cnst_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/lib/cnst_.ts
20
18
  var cnst_exports = {};
21
19
  __export(cnst_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/lib/db.ts
20
18
  var db_exports = {};
21
19
  __export(db_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/lib/dict.ts
20
18
  var dict_exports = {};
21
19
  __export(dict_exports, {
22
20
  default: () => getContent
@@ -15,14 +15,12 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/lib/fetch.ts
20
18
  var fetch_exports = {};
21
19
  __export(fetch_exports, {
22
20
  default: () => getContent
23
21
  });
24
22
  module.exports = __toCommonJS(fetch_exports);
25
- var capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
23
+ const capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
26
24
  function getContent(scanResult, dict = {}) {
27
25
  if (!scanResult)
28
26
  return null;
@@ -15,14 +15,12 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/lib/sig.ts
20
18
  var sig_exports = {};
21
19
  __export(sig_exports, {
22
20
  default: () => getContent
23
21
  });
24
22
  module.exports = __toCommonJS(sig_exports);
25
- var capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
23
+ const capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
26
24
  function getContent(scanResult, dict = {}) {
27
25
  if (!scanResult)
28
26
  return null;
@@ -15,14 +15,12 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/lib/srv.ts
20
18
  var srv_exports = {};
21
19
  __export(srv_exports, {
22
20
  default: () => getContent
23
21
  });
24
22
  module.exports = __toCommonJS(srv_exports);
25
- var capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
23
+ const capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
26
24
  function getContent(scanResult, dict = {}) {
27
25
  if (!scanResult)
28
26
  return null;
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/lib/st.ts
20
18
  var st_exports = {};
21
19
  __export(st_exports, {
22
20
  default: () => getContent
@@ -15,14 +15,12 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/lib/store.ts
20
18
  var store_exports = {};
21
19
  __export(store_exports, {
22
20
  default: () => getContent
23
21
  });
24
22
  module.exports = __toCommonJS(store_exports);
25
- var capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
23
+ const capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
26
24
  function getContent(scanResult, dict = {}) {
27
25
  if (!scanResult)
28
26
  return null;
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/lib/usePage.ts
20
18
  var usePage_exports = {};
21
19
  __export(usePage_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/libRoot/jest.config.ts
20
18
  var jest_config_exports = {};
21
19
  __export(jest_config_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/module/__Model__.Template.tsx
20
18
  var Model_Template_exports = {};
21
19
  __export(Model_Template_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/module/__Model__.Unit.tsx
20
18
  var Model_Unit_exports = {};
21
19
  __export(Model_Unit_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/module/__Model__.Util.tsx
20
18
  var Model_Util_exports = {};
21
19
  __export(Model_Util_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/module/__Model__.View.tsx
20
18
  var Model_View_exports = {};
21
19
  __export(Model_View_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/module/__Model__.Zone.tsx
20
18
  var Model_Zone_exports = {};
21
19
  __export(Model_Zone_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/module/__model__.constant.ts
20
18
  var model_constant_exports = {};
21
19
  __export(model_constant_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/module/__model__.dictionary.ts
20
18
  var model_dictionary_exports = {};
21
19
  __export(model_dictionary_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/module/__model__.document.ts
20
18
  var model_document_exports = {};
21
19
  __export(model_document_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/module/__model__.service.ts
20
18
  var model_service_exports = {};
21
19
  __export(model_service_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/module/__model__.signal.ts
20
18
  var model_signal_exports = {};
21
19
  __export(model_signal_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/module/__model__.signal.spec.ts
20
18
  var model_signal_spec_exports = {};
21
19
  __export(model_signal_spec_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/module/__model__.signal.test.ts
20
18
  var model_signal_test_exports = {};
21
19
  __export(model_signal_test_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/module/__model__.store.ts
20
18
  var model_store_exports = {};
21
19
  __export(model_store_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/module/_server.ts
20
18
  var server_exports = {};
21
19
  __export(server_exports, {
22
20
  default: () => getContent
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/module/index.tsx
20
18
  var module_exports = {};
21
19
  __export(module_exports, {
22
20
  default: () => getContent
@@ -15,14 +15,12 @@ var __copyProps = (to, from, except, desc) => {
15
15
  return to;
16
16
  };
17
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
-
19
- // pkgs/@akanjs/cli/src/templates/server.ts
20
18
  var server_exports = {};
21
19
  __export(server_exports, {
22
20
  default: () => getContent
23
21
  });
24
22
  module.exports = __toCommonJS(server_exports);
25
- var capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
23
+ const capitalize = (str) => str.charAt(0).toUpperCase() + str.slice(1);
26
24
  function getContent(scanResult, dict = {}) {
27
25
  if (!scanResult)
28
26
  return null;
@@ -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;