create-carlonicora-app 1.0.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.
- package/LICENSE +675 -0
- package/README.md +104 -0
- package/bin/cli.js +3 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +92 -0
- package/dist/cli.js.map +1 -0
- package/dist/git.d.ts +7 -0
- package/dist/git.d.ts.map +1 -0
- package/dist/git.js +80 -0
- package/dist/git.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/prompts.d.ts +5 -0
- package/dist/prompts.d.ts.map +1 -0
- package/dist/prompts.js +30 -0
- package/dist/prompts.js.map +1 -0
- package/dist/replacer.d.ts +9 -0
- package/dist/replacer.d.ts.map +1 -0
- package/dist/replacer.js +11 -0
- package/dist/replacer.js.map +1 -0
- package/dist/scaffold.d.ts +3 -0
- package/dist/scaffold.d.ts.map +1 -0
- package/dist/scaffold.js +79 -0
- package/dist/scaffold.js.map +1 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/files.d.ts +6 -0
- package/dist/utils/files.d.ts.map +1 -0
- package/dist/utils/files.js +103 -0
- package/dist/utils/files.js.map +1 -0
- package/dist/utils/logger.d.ts +12 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +35 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/validation.d.ts +6 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +63 -0
- package/dist/utils/validation.js.map +1 -0
- package/package.json +52 -0
- package/template/.env.example +159 -0
- package/template/.github/workflows/check-library-updates.yml +71 -0
- package/template/.github/workflows/dev.yml +63 -0
- package/template/.github/workflows/pull-request.yml +55 -0
- package/template/.gitmodules +6 -0
- package/template/.husky/pre-commit +1 -0
- package/template/.husky/pre-push +1 -0
- package/template/.prettierignore +1 -0
- package/template/.prettierrc +13 -0
- package/template/.releaserc +134 -0
- package/template/.vscode/settings.json +16 -0
- package/template/CHANGELOG.md +0 -0
- package/template/CLAUDE.md +34 -0
- package/template/DOCKER.md +1591 -0
- package/template/Dockerfile +228 -0
- package/template/README.md +1 -0
- package/template/apps/api/.prettierrc +12 -0
- package/template/apps/api/eslint.config.mjs +54 -0
- package/template/apps/api/jest.config.js +29 -0
- package/template/apps/api/nest-cli.json +15 -0
- package/template/apps/api/package.json +155 -0
- package/template/apps/api/src/config/config.ts +17 -0
- package/template/apps/api/src/config/enums/job.name.ts +6 -0
- package/template/apps/api/src/config/enums/queue.id.ts +3 -0
- package/template/apps/api/src/config/interfaces/config.interface.ts +3 -0
- package/template/apps/api/src/features/features.modules.ts +6 -0
- package/template/apps/api/src/i18n/en/notifications.json +3 -0
- package/template/apps/api/src/main.ts +23 -0
- package/template/apps/api/src/neo4j.migrations/20250901_001.ts +33 -0
- package/template/apps/api/src/neo4j.migrations/20250901_002.ts +90 -0
- package/template/apps/api/src/neo4j.migrations/20250901_003.ts +57 -0
- package/template/apps/api/src/neo4j.migrations/20250901_004.ts +32 -0
- package/template/apps/api/src/neo4j.migrations/queries/migration.queries.ts +49 -0
- package/template/apps/api/src/types/langchain.d.ts +56 -0
- package/template/apps/api/tsconfig.build.json +4 -0
- package/template/apps/api/tsconfig.json +38 -0
- package/template/apps/web/.swcrc +26 -0
- package/template/apps/web/components.json +21 -0
- package/template/apps/web/eslint.config.mjs +33 -0
- package/template/apps/web/global.d.ts +7 -0
- package/template/apps/web/messages/en.json +249 -0
- package/template/apps/web/next.config.js +50 -0
- package/template/apps/web/package.json +146 -0
- package/template/apps/web/playwright.config.ts +86 -0
- package/template/apps/web/postcss.config.mjs +5 -0
- package/template/apps/web/public/sw.js +32 -0
- package/template/apps/web/src/app/[locale]/(admin)/administration/companies/[id]/page.tsx +46 -0
- package/template/apps/web/src/app/[locale]/(admin)/administration/companies/page.tsx +23 -0
- package/template/apps/web/src/app/[locale]/(admin)/layout.tsx +49 -0
- package/template/apps/web/src/app/[locale]/(auth)/activation/[code]/page.tsx +13 -0
- package/template/apps/web/src/app/[locale]/(auth)/auth/page.tsx +11 -0
- package/template/apps/web/src/app/[locale]/(auth)/invitation/[code]/page.tsx +7 -0
- package/template/apps/web/src/app/[locale]/(auth)/layout.tsx +9 -0
- package/template/apps/web/src/app/[locale]/(auth)/login/page.tsx +6 -0
- package/template/apps/web/src/app/[locale]/(auth)/logout/page.tsx +5 -0
- package/template/apps/web/src/app/[locale]/(auth)/register/page.tsx +6 -0
- package/template/apps/web/src/app/[locale]/(auth)/reset/[code]/page.tsx +7 -0
- package/template/apps/web/src/app/[locale]/(main)/(foundations)/notifications/page.tsx +9 -0
- package/template/apps/web/src/app/[locale]/(main)/(foundations)/roles/[id]/page.tsx +23 -0
- package/template/apps/web/src/app/[locale]/(main)/(foundations)/roles/page.tsx +12 -0
- package/template/apps/web/src/app/[locale]/(main)/(foundations)/users/[id]/error.tsx +14 -0
- package/template/apps/web/src/app/[locale]/(main)/(foundations)/users/[id]/loading.tsx +21 -0
- package/template/apps/web/src/app/[locale]/(main)/(foundations)/users/[id]/page.tsx +46 -0
- package/template/apps/web/src/app/[locale]/(main)/(foundations)/users/page.tsx +17 -0
- package/template/apps/web/src/app/[locale]/(main)/error.tsx +62 -0
- package/template/apps/web/src/app/[locale]/(main)/layout.tsx +40 -0
- package/template/apps/web/src/app/[locale]/(main)/page.tsx +41 -0
- package/template/apps/web/src/app/[locale]/layout.tsx +54 -0
- package/template/apps/web/src/app/globals.css +256 -0
- package/template/apps/web/src/config/BootstrapProvider.tsx +13 -0
- package/template/apps/web/src/config/Bootstrapper.ts +77 -0
- package/template/apps/web/src/config/env.ts +51 -0
- package/template/apps/web/src/config/middleware-env.ts +14 -0
- package/template/apps/web/src/enums/feature.ids.ts +3 -0
- package/template/apps/web/src/features/common/components/containers/IndexContainer.tsx +11 -0
- package/template/apps/web/src/features/common/components/details/LayoutDetails.tsx +33 -0
- package/template/apps/web/src/features/common/components/navigations/CommonSidebar.tsx +233 -0
- package/template/apps/web/src/features/common/components/navigations/CreationDropDown.tsx +117 -0
- package/template/apps/web/src/features/common/components/navigations/UserSidebarFooter.tsx +115 -0
- package/template/apps/web/src/features/common/components/navigations/VersionDisplay.tsx +18 -0
- package/template/apps/web/src/features/common/contexts/ErrorContext.tsx +62 -0
- package/template/apps/web/src/i18n/request.ts +13 -0
- package/template/apps/web/src/i18n/routing.ts +9 -0
- package/template/apps/web/src/i18n/useDateFnsLocale.ts +15 -0
- package/template/apps/web/src/proxy.ts +107 -0
- package/template/apps/web/src/server-actions/auth-cookies.ts +134 -0
- package/template/apps/web/src/types/modules.d.ts +10 -0
- package/template/apps/web/src/utils/metadata.ts +50 -0
- package/template/apps/web/src/utils/revalidation.ts +7 -0
- package/template/apps/web/tsconfig.json +51 -0
- package/template/docker-compose.yml +211 -0
- package/template/package.json +72 -0
- package/template/packages/nestjs-neo4jsonapi/.gitkeep +0 -0
- package/template/packages/nextjs-jsonapi/.gitkeep +0 -0
- package/template/packages/shared/package.json +23 -0
- package/template/packages/shared/src/const/roles.id.ts +5 -0
- package/template/packages/shared/src/const/system.roles.id.ts +4 -0
- package/template/packages/shared/src/index.ts +1 -0
- package/template/packages/shared/tsconfig.json +10 -0
- package/template/packages/shared/tsup.config.ts +16 -0
- package/template/pnpm-workspace.yaml +3 -0
- package/template/tsconfig.base.json +62 -0
- package/template/tsconfig.json +12 -0
- package/template/turbo.json +88 -0
- package/template/versions.production.json +4 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineConfig } from 'tsup';
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
entry: {
|
|
5
|
+
index: 'src/index.ts',
|
|
6
|
+
},
|
|
7
|
+
format: ['cjs', 'esm'],
|
|
8
|
+
dts: {
|
|
9
|
+
compilerOptions: {
|
|
10
|
+
composite: false,
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
splitting: false,
|
|
14
|
+
sourcemap: true,
|
|
15
|
+
clean: true,
|
|
16
|
+
});
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// Language and Environment
|
|
4
|
+
"target": "ES2022",
|
|
5
|
+
"lib": ["ES2022"],
|
|
6
|
+
"experimentalDecorators": true,
|
|
7
|
+
"emitDecoratorMetadata": true,
|
|
8
|
+
|
|
9
|
+
// Module Resolution
|
|
10
|
+
"module": "commonjs",
|
|
11
|
+
"moduleResolution": "node",
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"esModuleInterop": true,
|
|
14
|
+
"allowSyntheticDefaultImports": true,
|
|
15
|
+
"forceConsistentCasingInFileNames": true,
|
|
16
|
+
|
|
17
|
+
// Type Checking
|
|
18
|
+
"strict": true,
|
|
19
|
+
"noImplicitAny": true,
|
|
20
|
+
"strictNullChecks": true,
|
|
21
|
+
"strictFunctionTypes": true,
|
|
22
|
+
"strictBindCallApply": true,
|
|
23
|
+
"strictPropertyInitialization": true,
|
|
24
|
+
"noImplicitThis": true,
|
|
25
|
+
"alwaysStrict": true,
|
|
26
|
+
"noUnusedLocals": true,
|
|
27
|
+
"noUnusedParameters": true,
|
|
28
|
+
"noImplicitReturns": true,
|
|
29
|
+
"noFallthroughCasesInSwitch": true,
|
|
30
|
+
"skipLibCheck": true,
|
|
31
|
+
|
|
32
|
+
// Emit
|
|
33
|
+
"declaration": true,
|
|
34
|
+
"declarationMap": true,
|
|
35
|
+
"sourceMap": true,
|
|
36
|
+
"removeComments": true,
|
|
37
|
+
"importHelpers": true,
|
|
38
|
+
|
|
39
|
+
// Interop Constraints
|
|
40
|
+
"isolatedModules": true,
|
|
41
|
+
"allowJs": false,
|
|
42
|
+
|
|
43
|
+
// Path Mapping
|
|
44
|
+
"baseUrl": ".",
|
|
45
|
+
"paths": {
|
|
46
|
+
"@{{name}}/shared": ["./packages/shared/src"],
|
|
47
|
+
"@{{name}}/shared/*": ["./packages/shared/src/*"]
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"exclude": [
|
|
51
|
+
"node_modules",
|
|
52
|
+
"dist",
|
|
53
|
+
"build",
|
|
54
|
+
".next",
|
|
55
|
+
"coverage",
|
|
56
|
+
"**/*.spec.ts",
|
|
57
|
+
"**/*.test.ts",
|
|
58
|
+
"**/*.e2e.ts",
|
|
59
|
+
"test",
|
|
60
|
+
"tests"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://turbo.build/schema.json",
|
|
3
|
+
"globalDependencies": ["**/.env.*local", ".env", ".env.e2e"],
|
|
4
|
+
"globalEnv": [
|
|
5
|
+
"NODE_ENV",
|
|
6
|
+
"PORT",
|
|
7
|
+
"API_PORT",
|
|
8
|
+
"API_URL",
|
|
9
|
+
"NEXT_PUBLIC_API_URL"
|
|
10
|
+
],
|
|
11
|
+
"tasks": {
|
|
12
|
+
"build": {
|
|
13
|
+
"dependsOn": ["^build"],
|
|
14
|
+
"outputs": ["dist/**", ".next/**"],
|
|
15
|
+
"env": [
|
|
16
|
+
"NODE_ENV",
|
|
17
|
+
"NEXT_PUBLIC_*"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"dev": {
|
|
21
|
+
"cache": false,
|
|
22
|
+
"persistent": true,
|
|
23
|
+
"dependsOn": ["^build"]
|
|
24
|
+
},
|
|
25
|
+
"dev:worker": {
|
|
26
|
+
"cache": false,
|
|
27
|
+
"persistent": true,
|
|
28
|
+
"dependsOn": ["^build"]
|
|
29
|
+
},
|
|
30
|
+
"start": {
|
|
31
|
+
"dependsOn": ["build"],
|
|
32
|
+
"cache": false,
|
|
33
|
+
"persistent": true
|
|
34
|
+
},
|
|
35
|
+
"start:prod": {
|
|
36
|
+
"dependsOn": ["build"],
|
|
37
|
+
"cache": false,
|
|
38
|
+
"persistent": true
|
|
39
|
+
},
|
|
40
|
+
"start:worker:dev": {
|
|
41
|
+
"cache": false,
|
|
42
|
+
"persistent": true
|
|
43
|
+
},
|
|
44
|
+
"test": {
|
|
45
|
+
"outputs": ["coverage/**"],
|
|
46
|
+
"env": ["NODE_ENV"],
|
|
47
|
+
"cache": true
|
|
48
|
+
},
|
|
49
|
+
"test:watch": {
|
|
50
|
+
"cache": false,
|
|
51
|
+
"persistent": true
|
|
52
|
+
},
|
|
53
|
+
"test:e2e": {
|
|
54
|
+
"dependsOn": ["build"],
|
|
55
|
+
"env": ["NODE_ENV", "PORT"],
|
|
56
|
+
"cache": false
|
|
57
|
+
},
|
|
58
|
+
"test:cov": {
|
|
59
|
+
"outputs": ["coverage/**"],
|
|
60
|
+
"env": ["NODE_ENV"],
|
|
61
|
+
"cache": true
|
|
62
|
+
},
|
|
63
|
+
"lint": {
|
|
64
|
+
"outputs": [],
|
|
65
|
+
"cache": true
|
|
66
|
+
},
|
|
67
|
+
"format": {
|
|
68
|
+
"outputs": [],
|
|
69
|
+
"cache": false
|
|
70
|
+
},
|
|
71
|
+
"clean": {
|
|
72
|
+
"cache": false
|
|
73
|
+
},
|
|
74
|
+
"typecheck": {
|
|
75
|
+
"dependsOn": ["^build"],
|
|
76
|
+
"outputs": ["*.tsbuildinfo"],
|
|
77
|
+
"cache": true
|
|
78
|
+
},
|
|
79
|
+
"{{name}}-web#build": {
|
|
80
|
+
"dependsOn": ["^build", "@carlonicora/nextjs-jsonapi#build"],
|
|
81
|
+
"outputs": [".next/**"],
|
|
82
|
+
"env": [
|
|
83
|
+
"NODE_ENV",
|
|
84
|
+
"NEXT_PUBLIC_*"
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|