diff --git a/packages/init/src/InitManager.ts b/packages/init/src/InitManager.ts index 98212d09..3a03b2f7 100644 --- a/packages/init/src/InitManager.ts +++ b/packages/init/src/InitManager.ts @@ -1,5 +1,5 @@ -import { existsSync, promises as fsp } from 'node:fs'; +import { promises as fsp } from 'node:fs'; import path from 'node:path'; import { fileURLToPath } from 'node:url'; @@ -11,14 +11,6 @@ const DEFAULT_PROJECT_ROOT_PATH = './'; const NAME_REGEX = /^[a-zA-Z.\-_]+$/; -const RENAME_FILES = -{ - '_gitignore': '.gitignore', - '_package.json': 'package.json', - '_tsconfig.json': 'tsconfig.json', - '_vite.config.ts': 'vite.config.ts' -}; - export default class InitManager { readonly #templateRootPath: string; @@ -43,8 +35,6 @@ export default class InitManager } await this.#copyTemplate(projectName, templateName); - - this.#renameFiles(projectName); } #createTemplateRootPath(): string @@ -90,25 +80,4 @@ export default class InitManager return fsp.cp(templateLocation, projectLocation, { recursive: true, force: true }); } - - async #renameFiles(projectName: string): Promise - { - const projectLocation = path.join(this.#projectRootPath, projectName); - - const files = Object.entries(RENAME_FILES); - const promises = []; - - for (const [source, target] of files) - { - const sourceFileLocation = path.join(projectLocation, source); - const targetFileLocation = path.join(projectLocation, target); - - if (existsSync(sourceFileLocation)) - { - promises.push(fsp.rename(sourceFileLocation, targetFileLocation)); - } - } - - await Promise.all(promises); - } } diff --git a/packages/init/templates/backend/_gitignore b/packages/init/templates/backend/.gitignore similarity index 100% rename from packages/init/templates/backend/_gitignore rename to packages/init/templates/backend/.gitignore diff --git a/packages/init/templates/backend/_tsconfig.json b/packages/init/templates/backend/_tsconfig.json deleted file mode 100644 index 20078a94..00000000 --- a/packages/init/templates/backend/_tsconfig.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "compilerOptions": { - "target": "ESNext", - "module": "ESNext", - "rootDir": "./src/", - "moduleResolution": "node", - "outDir": "./dist", - "removeComments": true, - "forceConsistentCasingInFileNames": true, - "strict": true, - "skipLibCheck": true - }, - "exclude": [ - "cache", - "dist", - "node_modules", - "segments", - "services" - ] -} \ No newline at end of file diff --git a/packages/init/templates/backend/jitar.json b/packages/init/templates/backend/jitar.json index b93bd1dd..d213197f 100644 --- a/packages/init/templates/backend/jitar.json +++ b/packages/init/templates/backend/jitar.json @@ -1,5 +1,5 @@ { - "source": "./dist", + "source": "./build", "target": "./dist", "segments": "./segments" } \ No newline at end of file diff --git a/packages/init/templates/backend/_package.json b/packages/init/templates/backend/package.json similarity index 71% rename from packages/init/templates/backend/_package.json rename to packages/init/templates/backend/package.json index 2f30b043..4a7b72db 100644 --- a/packages/init/templates/backend/_package.json +++ b/packages/init/templates/backend/package.json @@ -3,16 +3,17 @@ "type": "module", "private": true, "scripts": { - "build": "rimraf dist && tsc -p tsconfig.json && jitar build", + "build": "rimraf build dist && tsc -p src/tsconfig.json && jitar build", "standalone": "jitar start --service=services/standalone.json", "gateway": "jitar start --service=services/gateway.json", "hi": "jitar start --service=services/hi.json", "hello": "jitar start --service=services/hello.json" }, "dependencies": { - "jitar": "^0.10.2" + "jitar": "^0.11.0" }, "devDependencies": { - "rimraf": "^6.1.0" + "rimraf": "^6.1.3", + "typescript": "5.9.3" } } \ No newline at end of file diff --git a/packages/init/templates/backend/src/tsconfig.json b/packages/init/templates/backend/src/tsconfig.json new file mode 100644 index 00000000..41731109 --- /dev/null +++ b/packages/init/templates/backend/src/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "../build", + "rootDir": "./" + }, + "include": ["./"] +} \ No newline at end of file diff --git a/packages/init/templates/react/tsconfig.base.json b/packages/init/templates/backend/tsconfig.json similarity index 50% rename from packages/init/templates/react/tsconfig.base.json rename to packages/init/templates/backend/tsconfig.json index a3e75ece..97b15bdc 100644 --- a/packages/init/templates/react/tsconfig.base.json +++ b/packages/init/templates/backend/tsconfig.json @@ -1,21 +1,14 @@ { "compilerOptions": { - "target": "ESNext", "useDefineForClassFields": true, "allowJs": false, "skipLibCheck": true, - "esModuleInterop": false, "allowSyntheticDefaultImports": true, "strict": true, "forceConsistentCasingInFileNames": true, - "module": "ESNext", - "moduleResolution": "Node", - "resolveJsonModule": true, "isolatedModules": true, - "noEmit": true, - "paths": { - "^/*": ["./src/*"], - } - }, - "include": ["src", "test"] + "target": "esnext", + "module": "esnext", + "moduleResolution": "bundler" + } } \ No newline at end of file diff --git a/packages/init/templates/react/_gitignore b/packages/init/templates/react/.gitignore similarity index 100% rename from packages/init/templates/react/_gitignore rename to packages/init/templates/react/.gitignore diff --git a/packages/init/templates/react/_package.json b/packages/init/templates/react/_package.json deleted file mode 100644 index 3aad2a6c..00000000 --- a/packages/init/templates/react/_package.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "jitar-react-starter", - "private": true, - "version": "0.0.0", - "type": "module", - "scripts": { - "dev": "vite", - "build": "npm run build-domain && npm run build-webui", - "build-domain": "rimraf dist && tsc -p tsconfig.build.json && jitar build", - "build-webui": "vite build", - "standalone": "jitar start --service=services/standalone.json" - }, - "dependencies": { - "jitar": "^0.10.2", - "react": "^19.2.0", - "react-dom": "^19.2.0" - }, - "devDependencies": { - "@jitar/plugin-vite": "^0.10.1", - "@types/node": "^24.9.2", - "@types/react": "^19.2.2", - "@types/react-dom": "^19.2.2", - "@vitejs/plugin-react": "^5.1.0", - "rimraf": "^6.1.0", - "typescript": "^5.9.3", - "vite": "^7.1.12" - } -} diff --git a/packages/init/templates/react/_tsconfig.json b/packages/init/templates/react/_tsconfig.json deleted file mode 100644 index 0ab93b49..00000000 --- a/packages/init/templates/react/_tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "jsx": "react-jsx" - } -} \ No newline at end of file diff --git a/packages/init/templates/react/_vite.config.ts b/packages/init/templates/react/_vite.config.ts deleted file mode 100644 index f0b719ca..00000000 --- a/packages/init/templates/react/_vite.config.ts +++ /dev/null @@ -1,14 +0,0 @@ - -import { defineConfig } from 'vite'; -import react from '@vitejs/plugin-react'; -import jitar from '@jitar/plugin-vite'; - -export default defineConfig({ - build: { - emptyOutDir: false - }, - plugins: [ - react(), - jitar({ sourceDir: 'src', targetDir: 'dist', jitarDir: 'domain', jitarUrl: 'http://localhost:3000', segments: [] }) - ] -}); diff --git a/packages/init/templates/react/jitar.json b/packages/init/templates/react/jitar.json index b93bd1dd..d213197f 100644 --- a/packages/init/templates/react/jitar.json +++ b/packages/init/templates/react/jitar.json @@ -1,5 +1,5 @@ { - "source": "./dist", + "source": "./build", "target": "./dist", "segments": "./segments" } \ No newline at end of file diff --git a/packages/init/templates/react/package.json b/packages/init/templates/react/package.json new file mode 100644 index 00000000..4a903441 --- /dev/null +++ b/packages/init/templates/react/package.json @@ -0,0 +1,28 @@ +{ + "name": "jitar-react-starter", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "npm run build-domain && npm run build-app", + "build-domain": "rimraf build dist && tsc -p src/tsconfig.json && jitar build", + "build-app": "vite build --config src/app/vite.config.ts", + "standalone": "jitar start --service=services/standalone.json" + }, + "dependencies": { + "jitar": "^0.11.0", + "react": "^19.2.6", + "react-dom": "^19.2.6" + }, + "devDependencies": { + "@jitar/plugin-vite": "^0.11.0", + "@types/node": "^24.12.4", + "@types/react": "^19.2.15", + "@types/react-dom": "^19.2.3", + "@vitejs/plugin-react": "^5.2.0", + "rimraf": "^6.1.3", + "typescript": "^5.9.3", + "vite": "^7.3.3" + } +} diff --git a/packages/init/templates/react/public/vite.svg b/packages/init/templates/react/public/vite.svg deleted file mode 100644 index e7b8dfb1..00000000 --- a/packages/init/templates/react/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/init/templates/react/services/standalone.json b/packages/init/templates/react/services/standalone.json index e3432231..fe62f2b2 100644 --- a/packages/init/templates/react/services/standalone.json +++ b/packages/init/templates/react/services/standalone.json @@ -3,6 +3,7 @@ "standalone": { "segments": ["default"], + "assetRoot": "./app", "assets": ["index.html", "vite.svg", "assets/**/*"] } } \ No newline at end of file diff --git a/packages/init/templates/react/src/webui/assets/jitar.svg b/packages/init/templates/react/src/app/assets/jitar.svg similarity index 100% rename from packages/init/templates/react/src/webui/assets/jitar.svg rename to packages/init/templates/react/src/app/assets/jitar.svg diff --git a/packages/init/templates/react/src/webui/assets/react.svg b/packages/init/templates/react/src/app/assets/react.svg similarity index 100% rename from packages/init/templates/react/src/webui/assets/react.svg rename to packages/init/templates/react/src/app/assets/react.svg diff --git a/packages/init/templates/react/src/webui/App.css b/packages/init/templates/react/src/app/components/App.css similarity index 100% rename from packages/init/templates/react/src/webui/App.css rename to packages/init/templates/react/src/app/components/App.css diff --git a/packages/init/templates/react/src/webui/App.tsx b/packages/init/templates/react/src/app/components/App.tsx similarity index 86% rename from packages/init/templates/react/src/webui/App.tsx rename to packages/init/templates/react/src/app/components/App.tsx index 01549323..63797b8b 100644 --- a/packages/init/templates/react/src/webui/App.tsx +++ b/packages/init/templates/react/src/app/components/App.tsx @@ -2,10 +2,10 @@ import { useEffect, useState } from 'react'; import './App.css'; -import reactLogo from './assets/react.svg'; -import jitarLogo from './assets/jitar.svg'; +import reactLogo from '../assets/react.svg'; +import jitarLogo from '../assets/jitar.svg'; -import { sayHello } from '../domain/sayHello'; +import { sayHello } from '../../domain/sayHello'; export default function App() { diff --git a/packages/init/templates/react/src/webui/index.css b/packages/init/templates/react/src/app/components/index.css similarity index 100% rename from packages/init/templates/react/src/webui/index.css rename to packages/init/templates/react/src/app/components/index.css diff --git a/packages/init/templates/react/src/webui/main.tsx b/packages/init/templates/react/src/app/components/main.tsx similarity index 100% rename from packages/init/templates/react/src/webui/main.tsx rename to packages/init/templates/react/src/app/components/main.tsx diff --git a/packages/init/templates/react/index.html b/packages/init/templates/react/src/app/index.html similarity index 82% rename from packages/init/templates/react/index.html rename to packages/init/templates/react/src/app/index.html index 6b246b62..89bbf441 100644 --- a/packages/init/templates/react/index.html +++ b/packages/init/templates/react/src/app/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/packages/init/templates/react/src/app/public/vite.svg b/packages/init/templates/react/src/app/public/vite.svg new file mode 100644 index 00000000..5101b674 --- /dev/null +++ b/packages/init/templates/react/src/app/public/vite.svg @@ -0,0 +1 @@ +Vite diff --git a/packages/init/templates/react/src/app/tsconfig.json b/packages/init/templates/react/src/app/tsconfig.json new file mode 100644 index 00000000..199132df --- /dev/null +++ b/packages/init/templates/react/src/app/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "types": ["vite/client"], + "jsx": "react-jsx", + "noEmit": true, + }, + "include": ["./"] +} \ No newline at end of file diff --git a/packages/init/templates/react/src/app/vite.config.ts b/packages/init/templates/react/src/app/vite.config.ts new file mode 100644 index 00000000..6bfb39b9 --- /dev/null +++ b/packages/init/templates/react/src/app/vite.config.ts @@ -0,0 +1,25 @@ + +import { defineConfig } from 'vite'; +import react from '@vitejs/plugin-react'; +import jitar, { JitarConfig } from '@jitar/plugin-vite'; + +const jitarConfig: JitarConfig = { + projectRoot: '../../', + sourceRoot: '../', + jitarUrl: 'http://localhost:3000', + segments: [], + middleware: [] +}; + +export default defineConfig({ + root: './src/app', + publicDir: 'public', + build: { + outDir: '../../dist/app', + emptyOutDir: true + }, + plugins: [ + react(), + jitar(jitarConfig) + ] +}); diff --git a/packages/init/templates/react/src/tsconfig.json b/packages/init/templates/react/src/tsconfig.json new file mode 100644 index 00000000..eee6fbda --- /dev/null +++ b/packages/init/templates/react/src/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "../build", + "rootDir": "./" + }, + "include": ["./domain"] +} \ No newline at end of file diff --git a/packages/init/templates/react/src/vite-env.d.ts b/packages/init/templates/react/src/vite-env.d.ts deleted file mode 100644 index 11f02fe2..00000000 --- a/packages/init/templates/react/src/vite-env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/packages/init/templates/react/tsconfig.build.json b/packages/init/templates/react/tsconfig.build.json deleted file mode 100644 index 63022935..00000000 --- a/packages/init/templates/react/tsconfig.build.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "./tsconfig.base.json", - "compilerOptions": { - "noEmit": false, - "jsx": "react-jsx", - "rootDir": "./src", - "outDir": "./dist", - }, - "include": ["src"], - "exclude": ["src/webui"] -} \ No newline at end of file diff --git a/packages/init/templates/react/tsconfig.json b/packages/init/templates/react/tsconfig.json new file mode 100644 index 00000000..3849b8ac --- /dev/null +++ b/packages/init/templates/react/tsconfig.json @@ -0,0 +1,15 @@ +{ + "compilerOptions": { + "types": ["node"], + "useDefineForClassFields": true, + "allowJs": false, + "skipLibCheck": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + "target": "esnext", + "module": "esnext", + "moduleResolution": "bundler" + } +} \ No newline at end of file diff --git a/packages/init/templates/vue/_gitignore b/packages/init/templates/vue/.gitignore similarity index 100% rename from packages/init/templates/vue/_gitignore rename to packages/init/templates/vue/.gitignore diff --git a/packages/init/templates/vue/_package.json b/packages/init/templates/vue/_package.json deleted file mode 100644 index b26c826d..00000000 --- a/packages/init/templates/vue/_package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "jitar-vue-starter", - "private": true, - "version": "0.0.0", - "type": "module", - "scripts": { - "dev": "vite", - "build": "npm run build-domain && npm run build-webui", - "build-domain": "rimraf dist && tsc -p tsconfig.build.json && jitar build", - "build-webui": "vite build && vue-tsc --noEmit", - "standalone": "jitar start --service=services/standalone.json" - }, - "dependencies": { - "jitar": "^0.10.2", - "vue": "^3.5.22" - }, - "devDependencies": { - "@types/node": "^24.9.2", - "@jitar/plugin-vite": "^0.10.1", - "@vitejs/plugin-vue": "^6.0.1", - "rimraf": "^6.1.0", - "typescript": "5.9.3", - "vite": "^7.1.12", - "vue-tsc": "^3.1.2" - } -} diff --git a/packages/init/templates/vue/_tsconfig.json b/packages/init/templates/vue/_tsconfig.json deleted file mode 100644 index 05b07f24..00000000 --- a/packages/init/templates/vue/_tsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compilerOptions": { - "target": "ESNext", - "useDefineForClassFields": true, - "module": "ESNext", - "moduleResolution": "Node", - "strict": true, - "jsx": "preserve", - "resolveJsonModule": true, - "isolatedModules": true, - "esModuleInterop": true, - "lib": ["ESNext", "DOM"], - "skipLibCheck": true, - "noEmit": false, - "outDir": "dist" - }, - "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"], - "exclude": ["src/webui/main.ts"] -} diff --git a/packages/init/templates/vue/_vite.config.ts b/packages/init/templates/vue/_vite.config.ts deleted file mode 100644 index 13403a4e..00000000 --- a/packages/init/templates/vue/_vite.config.ts +++ /dev/null @@ -1,14 +0,0 @@ - -import { defineConfig } from 'vite'; -import vue from '@vitejs/plugin-vue'; -import jitar from '@jitar/plugin-vite'; - -export default defineConfig({ - build: { - emptyOutDir: false - }, - plugins: [ - vue(), - jitar({ sourceDir: 'src', targetDir: 'dist', jitarDir: 'domain', jitarUrl: 'http://localhost:3000', segments: [] }) - ] -}); diff --git a/packages/init/templates/vue/jitar.json b/packages/init/templates/vue/jitar.json index b93bd1dd..d213197f 100644 --- a/packages/init/templates/vue/jitar.json +++ b/packages/init/templates/vue/jitar.json @@ -1,5 +1,5 @@ { - "source": "./dist", + "source": "./build", "target": "./dist", "segments": "./segments" } \ No newline at end of file diff --git a/packages/init/templates/vue/package.json b/packages/init/templates/vue/package.json new file mode 100644 index 00000000..f9e21b70 --- /dev/null +++ b/packages/init/templates/vue/package.json @@ -0,0 +1,27 @@ +{ + "name": "jitar-vue-starter", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "npm run build-domain && npm run build-app", + "build-domain": "rimraf build dist && tsc -p src/tsconfig.json && jitar build", + "build-app": "vite build --config=src/app/vite.config.ts && vue-tsc --noEmit", + "standalone": "jitar start --service=services/standalone.json" + }, + "dependencies": { + "jitar": "^0.11.0", + "vue": "^3.5.35" + }, + "devDependencies": { + "@types/node": "^24.12.4", + "@jitar/plugin-vite": "^0.11.0", + "@vitejs/plugin-vue": "^6.0.7", + "@vue/tsconfig": "^0.9.1", + "rimraf": "^6.1.3", + "typescript": "5.9.3", + "vite": "^7.3.3", + "vue-tsc": "^3.3.3" + } +} diff --git a/packages/init/templates/vue/public/vite.svg b/packages/init/templates/vue/public/vite.svg deleted file mode 100644 index e7b8dfb1..00000000 --- a/packages/init/templates/vue/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/init/templates/vue/services/standalone.json b/packages/init/templates/vue/services/standalone.json index e3432231..fe62f2b2 100644 --- a/packages/init/templates/vue/services/standalone.json +++ b/packages/init/templates/vue/services/standalone.json @@ -3,6 +3,7 @@ "standalone": { "segments": ["default"], + "assetRoot": "./app", "assets": ["index.html", "vite.svg", "assets/**/*"] } } \ No newline at end of file diff --git a/packages/init/templates/vue/src/webui/assets/jitar.svg b/packages/init/templates/vue/src/app/assets/jitar.svg similarity index 100% rename from packages/init/templates/vue/src/webui/assets/jitar.svg rename to packages/init/templates/vue/src/app/assets/jitar.svg diff --git a/packages/init/templates/vue/src/webui/assets/vue.svg b/packages/init/templates/vue/src/app/assets/vue.svg similarity index 100% rename from packages/init/templates/vue/src/webui/assets/vue.svg rename to packages/init/templates/vue/src/app/assets/vue.svg diff --git a/packages/init/templates/vue/src/webui/App.vue b/packages/init/templates/vue/src/app/components/App.vue similarity index 81% rename from packages/init/templates/vue/src/webui/App.vue rename to packages/init/templates/vue/src/app/components/App.vue index dd6e5553..209ee792 100644 --- a/packages/init/templates/vue/src/webui/App.vue +++ b/packages/init/templates/vue/src/app/components/App.vue @@ -1,7 +1,7 @@ + \ No newline at end of file diff --git a/packages/init/templates/vue/src/app/public/vite.svg b/packages/init/templates/vue/src/app/public/vite.svg new file mode 100644 index 00000000..5101b674 --- /dev/null +++ b/packages/init/templates/vue/src/app/public/vite.svg @@ -0,0 +1 @@ +Vite diff --git a/packages/init/templates/vue/src/app/tsconfig.json b/packages/init/templates/vue/src/app/tsconfig.json new file mode 100644 index 00000000..b0d7d6c6 --- /dev/null +++ b/packages/init/templates/vue/src/app/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "@vue/tsconfig/tsconfig.dom.json", + "compilerOptions": { + "types": ["vite/client"] + }, + "include": ["./"] +} \ No newline at end of file diff --git a/packages/init/templates/vue/src/app/vite.config.ts b/packages/init/templates/vue/src/app/vite.config.ts new file mode 100644 index 00000000..0456d3b8 --- /dev/null +++ b/packages/init/templates/vue/src/app/vite.config.ts @@ -0,0 +1,25 @@ + +import { defineConfig } from 'vite'; +import vue from '@vitejs/plugin-vue'; +import jitar, { JitarConfig } from '@jitar/plugin-vite'; + +const jitarConfig: JitarConfig = { + projectRoot: '../../', + sourceRoot: '../', + jitarUrl: 'http://localhost:3000', + segments: [], + middleware: [] +}; + +export default defineConfig({ + root: './src/app', + publicDir: 'public', + build: { + outDir: '../../dist/app', + emptyOutDir: true + }, + plugins: [ + vue(), + jitar(jitarConfig) + ] +}); diff --git a/packages/init/templates/vue/src/domain/sayHello.js b/packages/init/templates/vue/src/domain/sayHello.js new file mode 100644 index 00000000..0ff3a6ca --- /dev/null +++ b/packages/init/templates/vue/src/domain/sayHello.js @@ -0,0 +1,3 @@ +export async function sayHello(name) { + return `Hello, ${name}!`; +} diff --git a/packages/init/templates/vue/src/tsconfig.json b/packages/init/templates/vue/src/tsconfig.json new file mode 100644 index 00000000..eee6fbda --- /dev/null +++ b/packages/init/templates/vue/src/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "outDir": "../build", + "rootDir": "./" + }, + "include": ["./domain"] +} \ No newline at end of file diff --git a/packages/init/templates/vue/src/vite-env.d.ts b/packages/init/templates/vue/src/vite-env.d.ts deleted file mode 100644 index 11f02fe2..00000000 --- a/packages/init/templates/vue/src/vite-env.d.ts +++ /dev/null @@ -1 +0,0 @@ -/// diff --git a/packages/init/templates/vue/tsconfig.build.json b/packages/init/templates/vue/tsconfig.build.json deleted file mode 100644 index 5cdb7884..00000000 --- a/packages/init/templates/vue/tsconfig.build.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "noEmit": false, - "rootDir": "./src", - "outDir": "./dist", - }, - "include": ["src"], - "exclude": ["src/webui"] -} \ No newline at end of file diff --git a/packages/init/templates/vue/tsconfig.json b/packages/init/templates/vue/tsconfig.json new file mode 100644 index 00000000..3849b8ac --- /dev/null +++ b/packages/init/templates/vue/tsconfig.json @@ -0,0 +1,15 @@ +{ + "compilerOptions": { + "types": ["node"], + "useDefineForClassFields": true, + "allowJs": false, + "skipLibCheck": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + "target": "esnext", + "module": "esnext", + "moduleResolution": "bundler" + } +} \ No newline at end of file