phos 1.0.3 → 1.2.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 (38) hide show
  1. package/README.md +3 -1
  2. package/package.json +1 -1
  3. package/src/templates/backend/elysia/src/api/user_api.ts +313 -0
  4. package/src/templates/backend/elysia/src/function/helper.ts +111 -0
  5. package/src/templates/backend/elysia/src/service/user_service.ts +109 -0
  6. package/src/templates/backend/elysia/src/sql/user_sql.ts +191 -0
  7. package/src/templates/backend/elysia/src/types/user_type.ts +54 -0
  8. package/src/templates/backend/fastapi/src/api/user_api.py +163 -0
  9. package/src/templates/backend/fastapi/src/function/__init__.py +0 -0
  10. package/src/templates/backend/fastapi/src/function/helper.py +107 -0
  11. package/src/templates/backend/fastapi/src/service/user_service.py +94 -0
  12. package/src/templates/backend/fastapi/src/sql/user_sql.py +197 -0
  13. package/src/templates/backend/fastapi/src/types/user_type.py +64 -0
  14. package/src/templates/frontend/vue/.editorconfig +8 -0
  15. package/src/templates/frontend/vue/.gitattributes +1 -0
  16. package/src/templates/frontend/vue/.oxlintrc.json +10 -0
  17. package/src/templates/frontend/vue/.prettierrc.json +6 -0
  18. package/src/templates/frontend/vue/.vscode/extensions.json +11 -0
  19. package/src/templates/frontend/vue/README.md +73 -0
  20. package/src/templates/frontend/vue/e2e/tsconfig.json +4 -0
  21. package/src/templates/frontend/vue/e2e/vue.spec.ts +8 -0
  22. package/src/templates/frontend/vue/env.d.ts +1 -0
  23. package/src/templates/frontend/vue/eslint.config.ts +38 -0
  24. package/src/templates/frontend/vue/index.html +13 -0
  25. package/src/templates/frontend/vue/package.json +54 -0
  26. package/src/templates/frontend/vue/playwright.config.ts +110 -0
  27. package/src/templates/frontend/vue/public/favicon.ico +0 -0
  28. package/src/templates/frontend/vue/src/App.vue +11 -0
  29. package/src/templates/frontend/vue/src/__tests__/App.spec.ts +11 -0
  30. package/src/templates/frontend/vue/src/main.ts +12 -0
  31. package/src/templates/frontend/vue/src/router/index.ts +8 -0
  32. package/src/templates/frontend/vue/src/stores/counter.ts +12 -0
  33. package/src/templates/frontend/vue/tsconfig.app.json +12 -0
  34. package/src/templates/frontend/vue/tsconfig.json +14 -0
  35. package/src/templates/frontend/vue/tsconfig.node.json +19 -0
  36. package/src/templates/frontend/vue/tsconfig.vitest.json +11 -0
  37. package/src/templates/frontend/vue/vite.config.ts +20 -0
  38. package/src/templates/frontend/vue/vitest.config.ts +14 -0
@@ -0,0 +1,12 @@
1
+ {
2
+ "extends": "@vue/tsconfig/tsconfig.dom.json",
3
+ "include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
4
+ "exclude": ["src/**/__tests__/*"],
5
+ "compilerOptions": {
6
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
7
+
8
+ "paths": {
9
+ "@/*": ["./src/*"]
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "files": [],
3
+ "references": [
4
+ {
5
+ "path": "./tsconfig.node.json"
6
+ },
7
+ {
8
+ "path": "./tsconfig.app.json"
9
+ },
10
+ {
11
+ "path": "./tsconfig.vitest.json"
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "extends": "@tsconfig/node24/tsconfig.json",
3
+ "include": [
4
+ "vite.config.*",
5
+ "vitest.config.*",
6
+ "cypress.config.*",
7
+ "nightwatch.conf.*",
8
+ "playwright.config.*",
9
+ "eslint.config.*"
10
+ ],
11
+ "compilerOptions": {
12
+ "noEmit": true,
13
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
14
+
15
+ "module": "ESNext",
16
+ "moduleResolution": "Bundler",
17
+ "types": ["node"]
18
+ }
19
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "./tsconfig.app.json",
3
+ "include": ["src/**/__tests__/*", "env.d.ts"],
4
+ "exclude": [],
5
+ "compilerOptions": {
6
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.vitest.tsbuildinfo",
7
+
8
+ "lib": [],
9
+ "types": ["node", "jsdom"]
10
+ }
11
+ }
@@ -0,0 +1,20 @@
1
+ import { fileURLToPath, URL } from 'node:url'
2
+
3
+ import { defineConfig } from 'vite'
4
+ import vue from '@vitejs/plugin-vue'
5
+ import vueJsx from '@vitejs/plugin-vue-jsx'
6
+ import vueDevTools from 'vite-plugin-vue-devtools'
7
+
8
+ // https://vite.dev/config/
9
+ export default defineConfig({
10
+ plugins: [
11
+ vue(),
12
+ vueJsx(),
13
+ vueDevTools(),
14
+ ],
15
+ resolve: {
16
+ alias: {
17
+ '@': fileURLToPath(new URL('./src', import.meta.url))
18
+ },
19
+ },
20
+ })
@@ -0,0 +1,14 @@
1
+ import { fileURLToPath } from 'node:url'
2
+ import { mergeConfig, defineConfig, configDefaults } from 'vitest/config'
3
+ import viteConfig from './vite.config'
4
+
5
+ export default mergeConfig(
6
+ viteConfig,
7
+ defineConfig({
8
+ test: {
9
+ environment: 'jsdom',
10
+ exclude: [...configDefaults.exclude, 'e2e/**'],
11
+ root: fileURLToPath(new URL('./', import.meta.url)),
12
+ },
13
+ }),
14
+ )