@dartix-software-solutions/create-fullstack-app 2.0.12 → 2.0.14

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 (84) hide show
  1. package/dist/backends/fastapi/templates/app/core/config.py.hbs +13 -13
  2. package/dist/backends/fastapi/templates/app/main.py.hbs +31 -31
  3. package/dist/backends/fastapi/templates/app/routers/health.py.hbs +8 -8
  4. package/dist/backends/fastapi/templates/app/routers/users.py.hbs +30 -30
  5. package/dist/backends/fastapi/templates/app/schemas/user.py.hbs +12 -12
  6. package/dist/backends/fastapi/templates/requirements.txt.hbs +6 -6
  7. package/dist/bin/create-fullstack-app.js +1 -1
  8. package/dist/{chunk-36CSXSDC.js → chunk-JQDTKR4K.js} +110 -43
  9. package/dist/databases/mongodb/templates/connection.ts.hbs +15 -15
  10. package/dist/databases/mongodb/templates/health-check.ts.hbs +11 -11
  11. package/dist/databases/mysql/templates/connection.ts.hbs +14 -14
  12. package/dist/databases/mysql/templates/health-check.ts.hbs +12 -12
  13. package/dist/databases/postgres/templates/connection.ts.hbs +14 -14
  14. package/dist/databases/postgres/templates/health-check.ts.hbs +12 -12
  15. package/dist/databases/redis/templates/connection.ts.hbs +14 -14
  16. package/dist/databases/redis/templates/health-check.ts.hbs +10 -10
  17. package/dist/databases/sqlite/templates/connection.ts.hbs +12 -12
  18. package/dist/databases/sqlite/templates/health-check.ts.hbs +10 -10
  19. package/dist/frontend-extras/react-table/templates/components/SampleTable.tsx.hbs +25 -25
  20. package/dist/frontend-extras/react-table/templates/data/sample-table-data.ts.hbs +4 -4
  21. package/dist/frontends/mobile/expo/templates/App.react-navigation.tsx.hbs +10 -10
  22. package/dist/frontends/mobile/expo/templates/app/(auth)/_layout.tsx.hbs +5 -5
  23. package/dist/frontends/mobile/expo/templates/app/(auth)/login.tsx.hbs +3 -3
  24. package/dist/frontends/mobile/expo/templates/app/(auth)/register.tsx.hbs +3 -3
  25. package/dist/frontends/mobile/expo/templates/app/(tabs)/_layout.tsx.hbs +11 -11
  26. package/dist/frontends/mobile/expo/templates/app/(tabs)/index.tsx.hbs +3 -3
  27. package/dist/frontends/mobile/expo/templates/app/(tabs)/profile.tsx.hbs +3 -3
  28. package/dist/frontends/mobile/expo/templates/app/(tabs)/settings.tsx.hbs +3 -3
  29. package/dist/frontends/mobile/expo/templates/app/+not-found.tsx.hbs +14 -14
  30. package/dist/frontends/mobile/expo/templates/app/_layout.tsx.hbs +11 -11
  31. package/dist/frontends/mobile/expo/templates/app/index.tsx.hbs +29 -29
  32. package/dist/frontends/mobile/expo/templates/types/router.ts.hbs +10 -10
  33. package/dist/frontends/mobile/react-native-cli/templates/app.json.hbs +4 -4
  34. package/dist/frontends/mobile/react-native-cli/templates/babel.config.js.hbs +14 -14
  35. package/dist/frontends/mobile/react-native-cli/templates/components/Avatar.tsx.hbs +29 -29
  36. package/dist/frontends/mobile/react-native-cli/templates/types/env.d.ts.hbs +3 -3
  37. package/dist/frontends/web/angular/templates/index.html.hbs +12 -12
  38. package/dist/frontends/web/angular/templates/main.ts.hbs +5 -5
  39. package/dist/frontends/web/angular/templates/pages/dashboard/dashboard.component.html.hbs +3 -3
  40. package/dist/frontends/web/angular/templates/pages/dashboard/dashboard.component.ts.hbs +10 -10
  41. package/dist/frontends/web/angular/templates/styles.css.hbs +11 -11
  42. package/dist/frontends/web/vue/templates/App.vue.hbs +9 -9
  43. package/dist/frontends/web/vue/templates/components/Layout.vue.hbs +17 -17
  44. package/dist/frontends/web/vue/templates/components/LoadingSpinner.vue.hbs +7 -7
  45. package/dist/frontends/web/vue/templates/components/Navbar.vue.hbs +24 -24
  46. package/dist/frontends/web/vue/templates/composables/useApi.ts.hbs +8 -8
  47. package/dist/frontends/web/vue/templates/composables/useAuth.ts.hbs +20 -20
  48. package/dist/frontends/web/vue/templates/env.d.ts.hbs +1 -1
  49. package/dist/frontends/web/vue/templates/index.html.hbs +12 -12
  50. package/dist/frontends/web/vue/templates/lib/config.ts.hbs +2 -2
  51. package/dist/frontends/web/vue/templates/main.ts.hbs +9 -9
  52. package/dist/frontends/web/vue/templates/pages/About.vue.hbs +6 -6
  53. package/dist/frontends/web/vue/templates/pages/Dashboard.vue.hbs +21 -21
  54. package/dist/frontends/web/vue/templates/pages/Home.vue.hbs +19 -19
  55. package/dist/frontends/web/vue/templates/pages/Login.vue.hbs +34 -34
  56. package/dist/frontends/web/vue/templates/pages/NotFound.vue.hbs +7 -7
  57. package/dist/frontends/web/vue/templates/router/index.ts.hbs +34 -34
  58. package/dist/frontends/web/vue/templates/stores/app.ts.hbs +8 -8
  59. package/dist/frontends/web/vue/templates/tsconfig.json.hbs +15 -15
  60. package/dist/frontends/web/vue/templates/vite.config.ts.hbs +6 -6
  61. package/dist/index.js +1 -1
  62. package/dist/orms/prisma/file-map.js +1 -0
  63. package/dist/orms/prisma/meta.js +5 -2
  64. package/dist/orms/prisma/templates/db-client.ts.hbs +10 -1
  65. package/dist/orms/prisma/templates/injection-module-import.hbs +1 -1
  66. package/dist/orms/prisma/templates/injection-module-register.hbs +1 -1
  67. package/dist/orms/prisma/templates/models/user.ts.hbs +3 -3
  68. package/dist/orms/prisma/templates/prisma.config.ts.hbs +12 -0
  69. package/dist/orms/prisma/templates/prisma.module.ts.hbs +9 -9
  70. package/dist/orms/prisma/templates/prisma.service.ts.hbs +24 -13
  71. package/dist/orms/prisma/templates/schema.prisma.hbs +0 -1
  72. package/dist/orms/prisma/templates/services/user.service.nestjs.ts.hbs +16 -16
  73. package/dist/orms/prisma/templates/services/user.service.ts.hbs +10 -10
  74. package/package.json +1 -1
  75. package/dist/plugins/devops/docker/templates/.dockerignore.hbs +0 -5
  76. package/dist/plugins/devops/gitlab-ci/templates/.gitlab-ci.yml.hbs +0 -14
  77. package/dist/plugins/devtools/eslint/templates/.eslintignore.hbs +0 -3
  78. package/dist/plugins/devtools/lint-staged/templates/.lintstagedrc.hbs +0 -5
  79. package/dist/plugins/devtools/prettier/templates/.prettierignore.hbs +0 -4
  80. package/dist/plugins/devtools/prettier/templates/.prettierrc.hbs +0 -6
  81. package/dist/plugins/mobile-navigation/expo-router/templates/.gitkeep +0 -0
  82. package/dist/plugins/testing/detox/templates/.detoxrc.js.hbs +0 -7
  83. package/dist/plugins/testing/maestro/templates/.maestro/home.yaml.hbs +0 -4
  84. package/dist/plugins/testing/maestro/templates/.maestro/login.yaml.hbs +0 -5
@@ -1,16 +1,16 @@
1
- import { Injectable } from '@nestjs/common';
2
- import type { User } from '../models/user.js';
3
- import { PrismaService } from '../prisma/prisma.service.js';
4
-
5
- @Injectable()
6
- export class UsersPrismaService {
7
- constructor(private readonly prisma: PrismaService) {}
8
-
9
- findAll(): Promise<User[]> {
10
- return this.prisma.user.findMany();
11
- }
12
-
13
- findOne(id: number): Promise<User | null> {
14
- return this.prisma.user.findUnique({ where: { id } });
15
- }
16
- }
1
+ import { Injectable } from '@nestjs/common';
2
+ import type { User } from '../models/user.js';
3
+ import { PrismaService } from '../prisma/prisma.service.js';
4
+
5
+ @Injectable()
6
+ export class UsersPrismaService {
7
+ constructor(private readonly prisma: PrismaService) {}
8
+
9
+ findAll(): Promise<User[]> {
10
+ return this.prisma.user.findMany();
11
+ }
12
+
13
+ findOne(id: number): Promise<User | null> {
14
+ return this.prisma.user.findUnique({ where: { id } });
15
+ }
16
+ }
@@ -1,10 +1,10 @@
1
- import { prisma } from '../lib/db.js';
2
- import type { User } from '../models/user.js';
3
-
4
- export async function listUsers(): Promise<User[]> {
5
- return prisma.user.findMany();
6
- }
7
-
8
- export async function findUserById(id: number): Promise<User | null> {
9
- return prisma.user.findUnique({ where: { id } });
10
- }
1
+ import { prisma } from '../lib/db.js';
2
+ import type { User } from '../models/user.js';
3
+
4
+ export async function listUsers(): Promise<User[]> {
5
+ return prisma.user.findMany();
6
+ }
7
+
8
+ export async function findUserById(id: number): Promise<User | null> {
9
+ return prisma.user.findUnique({ where: { id } });
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartix-software-solutions/create-fullstack-app",
3
- "version": "2.0.12",
3
+ "version": "2.0.14",
4
4
  "description": "CLI tool to scaffold full-stack applications with pluggable architecture",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,5 +0,0 @@
1
- node_modules
2
- npm-debug.log
3
- dist
4
- .git
5
- .env
@@ -1,14 +0,0 @@
1
- stages:
2
- - test
3
- - build
4
-
5
- test:
6
- stage: test
7
- script:
8
- - npm ci
9
- - npm test
10
-
11
- build:
12
- stage: build
13
- script:
14
- - npm run build
@@ -1,3 +0,0 @@
1
- dist
2
- node_modules
3
- coverage
@@ -1,5 +0,0 @@
1
- {
2
- "*.{js,jsx,ts,tsx,json,md}": [
3
- "prettier --write"
4
- ]
5
- }
@@ -1,4 +0,0 @@
1
- dist
2
- node_modules
3
- coverage
4
- package-lock.json
@@ -1,6 +0,0 @@
1
- {
2
- "semi": true,
3
- "singleQuote": true,
4
- "trailingComma": "all",
5
- "printWidth": 100
6
- }
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- testRunner: 'jest',
3
- runnerConfig: 'e2e/jest.config.js',
4
- apps: {},
5
- devices: {},
6
- configurations: {},
7
- };
@@ -1,4 +0,0 @@
1
- appId: com.example.app
2
- ---
3
- - launchApp
4
- - assertVisible: "Home"
@@ -1,5 +0,0 @@
1
- appId: com.example.app
2
- ---
3
- - launchApp
4
- - tapOn: "Login"
5
- - assertVisible: "Email"