@teispace/next-maker 0.2.1 → 0.3.0

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 (44) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +294 -55
  3. package/dist/index.js +359 -27
  4. package/dist/index.js.map +4 -4
  5. package/dist/src/commands/feature.d.ts.map +1 -1
  6. package/dist/src/commands/index.d.ts.map +1 -1
  7. package/dist/src/commands/service.d.ts +3 -0
  8. package/dist/src/commands/service.d.ts.map +1 -0
  9. package/dist/src/commands/slice.d.ts +3 -0
  10. package/dist/src/commands/slice.d.ts.map +1 -0
  11. package/dist/src/config/index.d.ts +2 -0
  12. package/dist/src/config/index.d.ts.map +1 -1
  13. package/dist/src/config/output.d.ts +1 -0
  14. package/dist/src/config/output.d.ts.map +1 -1
  15. package/dist/src/config/paths.d.ts +19 -0
  16. package/dist/src/config/paths.d.ts.map +1 -1
  17. package/dist/src/config/utils.d.ts +4 -0
  18. package/dist/src/config/utils.d.ts.map +1 -1
  19. package/dist/src/core/package-manager.d.ts.map +1 -1
  20. package/dist/src/prompts/create-app.prompt.d.ts +1 -0
  21. package/dist/src/prompts/create-app.prompt.d.ts.map +1 -1
  22. package/dist/src/prompts/feature.prompt.d.ts +10 -1
  23. package/dist/src/prompts/feature.prompt.d.ts.map +1 -1
  24. package/dist/src/prompts/service.prompt.d.ts +7 -0
  25. package/dist/src/prompts/service.prompt.d.ts.map +1 -0
  26. package/dist/src/prompts/slice.prompt.d.ts +6 -0
  27. package/dist/src/prompts/slice.prompt.d.ts.map +1 -0
  28. package/dist/src/services/feature/detection.service.d.ts +8 -0
  29. package/dist/src/services/feature/detection.service.d.ts.map +1 -0
  30. package/dist/src/services/feature/registration.service.d.ts +6 -0
  31. package/dist/src/services/feature/registration.service.d.ts.map +1 -0
  32. package/dist/src/services/feature/templates.service.d.ts +10 -0
  33. package/dist/src/services/feature/templates.service.d.ts.map +1 -0
  34. package/dist/src/services/init/config.service.d.ts.map +1 -1
  35. package/dist/src/services/init/providers.service.d.ts.map +1 -1
  36. package/dist/src/services/service/detection.service.d.ts +2 -0
  37. package/dist/src/services/service/detection.service.d.ts.map +1 -0
  38. package/dist/src/services/service/service.service.d.ts +8 -0
  39. package/dist/src/services/service/service.service.d.ts.map +1 -0
  40. package/dist/src/services/slice/detection.service.d.ts +2 -0
  41. package/dist/src/services/slice/detection.service.d.ts.map +1 -0
  42. package/dist/src/services/slice/slice.service.d.ts +7 -0
  43. package/dist/src/services/slice/slice.service.d.ts.map +1 -0
  44. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../../src/commands/feature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,eAAO,MAAM,sBAAsB,GAAI,SAAS,OAAO,SAOtD,CAAC"}
1
+ {"version":3,"file":"feature.d.ts","sourceRoot":"","sources":["../../../src/commands/feature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBpC,eAAO,MAAM,sBAAsB,GAAI,SAAS,OAAO,SAmItD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,eAAO,MAAM,gBAAgB,GAAI,SAAS,OAAO,SAGhD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,eAAO,MAAM,gBAAgB,GAAI,SAAS,OAAO,SAKhD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare const registerServiceCommand: (program: Command) => void;
3
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../src/commands/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBpC,eAAO,MAAM,sBAAsB,GAAI,SAAS,OAAO,SA6HtD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from 'commander';
2
+ export declare const registerSliceCommand: (program: Command) => void;
3
+ //# sourceMappingURL=slice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slice.d.ts","sourceRoot":"","sources":["../../../src/commands/slice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkBpC,eAAO,MAAM,oBAAoB,GAAI,SAAS,OAAO,SAkIpD,CAAC"}
@@ -1,4 +1,6 @@
1
1
  export * from './output';
2
2
  export * from './errorHandlers';
3
3
  export * from './spinner';
4
+ export * from './utils';
5
+ export declare const spinner: import("ora").Ora;
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AAIxB,eAAO,MAAM,OAAO,mBAAQ,CAAC"}
@@ -3,6 +3,7 @@ export declare function print(message: string, color?: Color): void;
3
3
  export declare function printHeader(title: string): void;
4
4
  export declare function success(message: string): void;
5
5
  export declare function error(message: string): void;
6
+ export declare const logError: typeof error;
6
7
  export declare function warning(message: string): void;
7
8
  export declare function info(message: string): void;
8
9
  export declare function log(message: string): void;
@@ -1 +1 @@
1
- {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../src/config/output.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,KAAK,GACb,OAAO,GACP,KAAK,GACL,OAAO,GACP,QAAQ,GACR,MAAM,GACN,MAAM,GACN,SAAS,GACT,OAAO,GACP,MAAM,GACN,QAAQ,GACR,KAAK,CAAC;AAiBV,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,GAAE,KAAe,GAAG,IAAI,CAGnE;AAGD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAM/C;AAGD,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE7C;AAGD,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE3C;AAGD,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE7C;AAGD,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE1C;AAED,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEzC;AAGD,wBAAgB,WAAW,IAAI,IAAI,CAQlC"}
1
+ {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../src/config/output.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,KAAK,GACb,OAAO,GACP,KAAK,GACL,OAAO,GACP,QAAQ,GACR,MAAM,GACN,MAAM,GACN,SAAS,GACT,OAAO,GACP,MAAM,GACN,QAAQ,GACR,KAAK,CAAC;AAiBV,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,GAAE,KAAe,GAAG,IAAI,CAGnE;AAGD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAM/C;AAGD,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE7C;AAGD,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE3C;AAGD,eAAO,MAAM,QAAQ,cAAQ,CAAC;AAG9B,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE7C;AAGD,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE1C;AAED,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEzC;AAGD,wBAAgB,WAAW,IAAI,IAAI,CAQlC"}
@@ -41,6 +41,8 @@ export declare const PROJECT_PATHS: {
41
41
  readonly HTTP_UTILS: "src/lib/utils/http";
42
42
  readonly AXIOS_CLIENT: "src/lib/utils/http/axios-client";
43
43
  readonly FETCH_CLIENT: "src/lib/utils/http/fetch-client";
44
+ readonly CLIENT_UTILS: "src/lib/utils/http/client-utils.ts";
45
+ readonly APP_APIS: "src/lib/config/app-apis.ts";
44
46
  readonly STORAGE_SERVICE: "src/services/storage";
45
47
  readonly COUNTER_FEATURE: "src/features/counter";
46
48
  readonly I18N_DIR: "src/i18n";
@@ -48,7 +50,24 @@ export declare const PROJECT_PATHS: {
48
50
  readonly ERRORS_DIR: "src/lib/errors";
49
51
  readonly UTILITY_TYPES_DIR: "src/types/utility";
50
52
  readonly COMMON_TYPES_DIR: "src/types/common";
53
+ readonly HTTP_TYPES: "src/types/common/http.types.ts";
51
54
  readonly GITHUB_DIR: ".github";
52
55
  readonly HUSKY_DIR: ".husky";
56
+ readonly STORE_PROVIDER: "src/providers/StoreProvider.tsx";
57
+ readonly THEME_PROVIDER: "src/providers/CustomThemeProvider.tsx";
58
+ readonly COUNTER_COMPONENT: "src/features/counter/components/Counter.tsx";
59
+ readonly LOCALE_PAGE: "src/app/[locale]/page.tsx";
60
+ readonly COMMITLINT_CONFIG: "commitlint.config.mjs";
61
+ readonly LINTSTAGED_RC: ".lintstagedrc.mjs";
62
+ readonly CZRC: ".czrc";
63
+ readonly DOCKERIGNORE: ".dockerignore";
64
+ readonly DOCKERFILE: "Dockerfile";
65
+ readonly DOCKER_COMPOSE: "docker-compose.yml";
66
+ readonly GITHUB_WORKFLOWS: ".github/workflows";
67
+ readonly GITHUB_ISSUE_TEMPLATE: "ISSUE_TEMPLATE";
68
+ readonly GITHUB_PR_TEMPLATE: "PULL_REQUEST_TEMPLATE.md";
69
+ readonly CODE_OF_CONDUCT: "CODE_OF_CONDUCT.md";
70
+ readonly CONTRIBUTING: "CONTRIBUTING.md";
71
+ readonly SECURITY: "SECURITY.md";
53
72
  };
54
73
  //# sourceMappingURL=paths.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../src/config/paths.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DhB,CAAC"}
1
+ {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../src/config/paths.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFhB,CAAC"}
@@ -1 +1,5 @@
1
+ export declare const capitalize: (str: string) => string;
2
+ export declare const kebabToCamel: (str: string) => string;
3
+ export declare const kebabToPascal: (str: string) => string;
4
+ export declare const camelToKebab: (str: string) => string;
1
5
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/config/utils.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/config/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,KAAG,MAExC,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,KAAG,MAE1C,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,KAAG,MAE3C,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,KAAG,MAE1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"package-manager.d.ts","sourceRoot":"","sources":["../../../src/core/package-manager.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;AAE7D,eAAO,MAAM,mBAAmB,GAAU,KAAK,MAAM,EAAE,SAAS,cAAc,KAAG,OAAO,CAAC,IAAI,CAO5F,CAAC;AAEF,eAAO,MAAM,SAAS,GACpB,KAAK,MAAM,EACX,SAAS,cAAc,EACvB,QAAQ,MAAM,KACb,OAAO,CAAC,IAAI,CAQd,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO,cAQpC,CAAC"}
1
+ {"version":3,"file":"package-manager.d.ts","sourceRoot":"","sources":["../../../src/core/package-manager.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;AAE7D,eAAO,MAAM,mBAAmB,GAAU,KAAK,MAAM,EAAE,SAAS,cAAc,KAAG,OAAO,CAAC,IAAI,CAO5F,CAAC;AAEF,eAAO,MAAM,SAAS,GACpB,KAAK,MAAM,EACX,SAAS,cAAc,EACvB,QAAQ,MAAM,KACb,OAAO,CAAC,IAAI,CASd,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO,cAQpC,CAAC"}
@@ -25,6 +25,7 @@ export interface ProjectPrompts {
25
25
  ci: boolean;
26
26
  preCommitHooks: boolean;
27
27
  commitizen: boolean;
28
+ copyEnv: boolean;
28
29
  }
29
30
  export declare const promptForProjectDetails: (initialName?: string) => Promise<ProjectPrompts>;
30
31
  //# sourceMappingURL=create-app.prompt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-app.prompt.d.ts","sourceRoot":"","sources":["../../../src/prompts/create-app.prompt.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AASzD,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,cAAc,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IAChD,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,OAAO,CAAC;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,uBAAuB,GAAU,cAAc,MAAM,KAAG,OAAO,CAAC,cAAc,CAwO1F,CAAC"}
1
+ {"version":3,"file":"create-app.prompt.d.ts","sourceRoot":"","sources":["../../../src/prompts/create-app.prompt.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AASzD,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,cAAc,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IAChD,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,OAAO,CAAC;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,uBAAuB,GAAU,cAAc,MAAM,KAAG,OAAO,CAAC,cAAc,CAkO1F,CAAC"}
@@ -1,2 +1,11 @@
1
- export declare const promptForFeatureName: () => Promise<string>;
1
+ export interface FeatureOptions {
2
+ featureName: string;
3
+ hasRedux: boolean;
4
+ createStore: boolean;
5
+ persistStore: boolean;
6
+ httpClient: 'axios' | 'fetch' | 'both' | 'none';
7
+ createService: boolean;
8
+ selectedHttpClient?: 'axios' | 'fetch';
9
+ }
10
+ export declare const promptForFeatureDetails: (featureName?: string, hasRedux?: boolean, httpClient?: "axios" | "fetch" | "both" | "none", skipStore?: boolean, storeOption?: "persist" | "no-persist", skipService?: boolean, serviceClient?: "axios" | "fetch") => Promise<FeatureOptions>;
2
11
  //# sourceMappingURL=feature.prompt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"feature.prompt.d.ts","sourceRoot":"","sources":["../../../src/prompts/feature.prompt.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,QAAa,OAAO,CAAC,MAAM,CAQ3D,CAAC"}
1
+ {"version":3,"file":"feature.prompt.d.ts","sourceRoot":"","sources":["../../../src/prompts/feature.prompt.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IAChD,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CACxC;AAED,eAAO,MAAM,uBAAuB,GAClC,cAAc,MAAM,EACpB,WAAW,OAAO,EAClB,aAAa,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,EAChD,YAAY,OAAO,EACnB,cAAc,SAAS,GAAG,YAAY,EACtC,cAAc,OAAO,EACrB,gBAAgB,OAAO,GAAG,OAAO,KAChC,OAAO,CAAC,cAAc,CAoGxB,CAAC"}
@@ -0,0 +1,7 @@
1
+ interface ServiceOptions {
2
+ serviceName: string;
3
+ httpClient: 'axios' | 'fetch';
4
+ }
5
+ export declare const promptForServiceDetails: (name?: string, axiosFlag?: boolean, fetchFlag?: boolean, availableClients?: "axios" | "fetch" | "both" | "none") => Promise<ServiceOptions>;
6
+ export {};
7
+ //# sourceMappingURL=service.prompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.prompt.d.ts","sourceRoot":"","sources":["../../../src/prompts/service.prompt.ts"],"names":[],"mappings":"AAEA,UAAU,cAAc;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,GAAG,OAAO,CAAC;CAC/B;AAED,eAAO,MAAM,uBAAuB,GAClC,OAAO,MAAM,EACb,YAAY,OAAO,EACnB,YAAY,OAAO,EACnB,mBAAmB,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,KACrD,OAAO,CAAC,cAAc,CAiDxB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export interface SliceOptions {
2
+ sliceName: string;
3
+ persistSlice: boolean;
4
+ }
5
+ export declare const promptForSliceDetails: (sliceName?: string, persist?: boolean, noPersist?: boolean) => Promise<SliceOptions>;
6
+ //# sourceMappingURL=slice.prompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slice.prompt.d.ts","sourceRoot":"","sources":["../../../src/prompts/slice.prompt.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,qBAAqB,GAChC,YAAY,MAAM,EAClB,UAAU,OAAO,EACjB,YAAY,OAAO,KAClB,OAAO,CAAC,YAAY,CAwCtB,CAAC"}
@@ -0,0 +1,8 @@
1
+ export interface ProjectDetection {
2
+ hasRedux: boolean;
3
+ httpClient: 'axios' | 'fetch' | 'both' | 'none';
4
+ hasI18n: boolean;
5
+ }
6
+ export declare const detectProjectSetup: (projectPath: string) => Promise<ProjectDetection>;
7
+ export declare const featureExists: (projectPath: string, featureName: string, basePath?: string) => Promise<boolean>;
8
+ //# sourceMappingURL=detection.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detection.service.d.ts","sourceRoot":"","sources":["../../../../src/services/feature/detection.service.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IAChD,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,kBAAkB,GAAU,aAAa,MAAM,KAAG,OAAO,CAAC,gBAAgB,CAgEtF,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,aAAa,MAAM,EACnB,aAAa,MAAM,EACnB,WAAU,MAAqC,KAC9C,OAAO,CAAC,OAAO,CAQjB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const registerFeatureInRootReducer: (projectPath: string, featureName: string, withPersist: boolean, basePath?: string) => Promise<void>;
2
+ /**
3
+ * Register a slice in rootReducer (imports from index.ts, not store/)
4
+ */
5
+ export declare const registerSliceInRootReducer: (projectPath: string, sliceName: string, withPersist: boolean, basePath: string) => Promise<void>;
6
+ //# sourceMappingURL=registration.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registration.service.d.ts","sourceRoot":"","sources":["../../../../src/services/feature/registration.service.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,4BAA4B,GACvC,aAAa,MAAM,EACnB,aAAa,MAAM,EACnB,aAAa,OAAO,EACpB,WAAU,MAAqC,KAC9C,OAAO,CAAC,IAAI,CAyDd,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,GACrC,aAAa,MAAM,EACnB,WAAW,MAAM,EACjB,aAAa,OAAO,EACpB,UAAU,MAAM,KACf,OAAO,CAAC,IAAI,CAyDd,CAAC"}
@@ -0,0 +1,10 @@
1
+ export interface FeatureGenerationOptions {
2
+ featureName: string;
3
+ featurePath: string;
4
+ createStore: boolean;
5
+ persistStore: boolean;
6
+ createService: boolean;
7
+ httpClient?: 'axios' | 'fetch';
8
+ }
9
+ export declare const generateFeatureStructure: (options: FeatureGenerationOptions) => Promise<void>;
10
+ //# sourceMappingURL=templates.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templates.service.d.ts","sourceRoot":"","sources":["../../../../src/services/feature/templates.service.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CAChC;AAED,eAAO,MAAM,wBAAwB,GACnC,SAAS,wBAAwB,KAChC,OAAO,CAAC,IAAI,CA6Bd,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"config.service.d.ts","sourceRoot":"","sources":["../../../../src/services/init/config.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAKjE,eAAO,MAAM,oBAAoB,GAC/B,aAAa,MAAM,EACnB,SAAS,cAAc,KACtB,OAAO,CAAC,IAAI,CAgDd,CAAC"}
1
+ {"version":3,"file":"config.service.d.ts","sourceRoot":"","sources":["../../../../src/services/init/config.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAKjE,eAAO,MAAM,oBAAoB,GAC/B,aAAa,MAAM,EACnB,SAAS,cAAc,KACtB,OAAO,CAAC,IAAI,CA2Ed,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"providers.service.d.ts","sourceRoot":"","sources":["../../../../src/services/init/providers.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAGjE,eAAO,MAAM,oBAAoB,GAC/B,aAAa,MAAM,EACnB,SAAS,cAAc,KACtB,OAAO,CAAC,IAAI,CAgEd,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,aAAa,MAAM,EACnB,SAAS,cAAc,KACtB,OAAO,CAAC,IAAI,CAgDd,CAAC"}
1
+ {"version":3,"file":"providers.service.d.ts","sourceRoot":"","sources":["../../../../src/services/init/providers.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAGjE,eAAO,MAAM,oBAAoB,GAC/B,aAAa,MAAM,EACnB,SAAS,cAAc,KACtB,OAAO,CAAC,IAAI,CAgEd,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,aAAa,MAAM,EACnB,SAAS,cAAc,KACtB,OAAO,CAAC,IAAI,CAoDd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const serviceExists: (projectPath: string, serviceName: string, basePath: string) => Promise<boolean>;
2
+ //# sourceMappingURL=detection.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detection.service.d.ts","sourceRoot":"","sources":["../../../../src/services/service/detection.service.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,GACxB,aAAa,MAAM,EACnB,aAAa,MAAM,EACnB,UAAU,MAAM,KACf,OAAO,CAAC,OAAO,CAGjB,CAAC"}
@@ -0,0 +1,8 @@
1
+ interface GenerateServiceOptions {
2
+ serviceName: string;
3
+ servicePath: string;
4
+ httpClient: 'axios' | 'fetch';
5
+ }
6
+ export declare const generateServiceFiles: (options: GenerateServiceOptions) => Promise<void>;
7
+ export {};
8
+ //# sourceMappingURL=service.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.service.d.ts","sourceRoot":"","sources":["../../../../src/services/service/service.service.ts"],"names":[],"mappings":"AAIA,UAAU,sBAAsB;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,GAAG,OAAO,CAAC;CAC/B;AAED,eAAO,MAAM,oBAAoB,GAAU,SAAS,sBAAsB,KAAG,OAAO,CAAC,IAAI,CAExF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const sliceExists: (projectPath: string, sliceName: string, basePath?: string) => Promise<boolean>;
2
+ //# sourceMappingURL=detection.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"detection.service.d.ts","sourceRoot":"","sources":["../../../../src/services/slice/detection.service.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,GACtB,aAAa,MAAM,EACnB,WAAW,MAAM,EACjB,WAAU,MAA4C,KACrD,OAAO,CAAC,OAAO,CAQjB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export interface SliceGenerationOptions {
2
+ sliceName: string;
3
+ slicePath: string;
4
+ persistSlice: boolean;
5
+ }
6
+ export declare const generateSliceFiles: (options: SliceGenerationOptions) => Promise<void>;
7
+ //# sourceMappingURL=slice.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slice.service.d.ts","sourceRoot":"","sources":["../../../../src/services/slice/slice.service.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,kBAAkB,GAAU,SAAS,sBAAsB,KAAG,OAAO,CAAC,IAAI,CAyBtF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teispace/next-maker",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Create a new Teispace Next.js application with interactive setup.",
5
5
  "keywords": [
6
6
  "nextjs",