ts-node setting
This commit is contained in:
+3
-1
@@ -2,9 +2,10 @@
|
|||||||
"name": "sam_hidche",
|
"name": "sam_hidche",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev:client": "vite",
|
"dev:client": "vite",
|
||||||
"dev:server": "nodemon --watch 'src/**/*.ts' --exec 'node --experimental-specifier-resolution=node --loader ts-node/esm' server/index.ts",
|
"dev:server": "TS_NODE_PROJECT=\"tsconfig.server.json\" nodemon --watch 'server/**/*.ts' --exec 'node --experimental-specifier-resolution=node --loader ts-node/esm' server/index.ts",
|
||||||
"dev": "concurrently 'npm:dev:client' 'npm:dev:server'",
|
"dev": "concurrently 'npm:dev:client' 'npm:dev:server'",
|
||||||
"build": "run-p build:client build:server",
|
"build": "run-p build:client build:server",
|
||||||
"build:client": "run-p type-check build-only:client",
|
"build:client": "run-p type-check build-only:client",
|
||||||
@@ -30,6 +31,7 @@
|
|||||||
"ky": "^0.33.3",
|
"ky": "^0.33.3",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"pinia": "^2.1.4",
|
"pinia": "^2.1.4",
|
||||||
|
"reflect-metadata": "^0.1.13",
|
||||||
"typeorm": "^0.3.17",
|
"typeorm": "^0.3.17",
|
||||||
"vue": "^3.3.4",
|
"vue": "^3.3.4",
|
||||||
"vue-router": "^4.2.4"
|
"vue-router": "^4.2.4"
|
||||||
|
|||||||
Generated
+3
@@ -47,6 +47,9 @@ dependencies:
|
|||||||
pinia:
|
pinia:
|
||||||
specifier: ^2.1.4
|
specifier: ^2.1.4
|
||||||
version: 2.1.4(typescript@5.1.6)(vue@3.3.4)
|
version: 2.1.4(typescript@5.1.6)(vue@3.3.4)
|
||||||
|
reflect-metadata:
|
||||||
|
specifier: ^0.1.13
|
||||||
|
version: 0.1.13
|
||||||
typeorm:
|
typeorm:
|
||||||
specifier: ^0.3.17
|
specifier: ^0.3.17
|
||||||
version: 0.3.17(ts-node@10.9.1)
|
version: 0.3.17(ts-node@10.9.1)
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
import {
|
||||||
|
validate,
|
||||||
|
validateOrReject,
|
||||||
|
Contains,
|
||||||
|
IsInt,
|
||||||
|
Length,
|
||||||
|
IsEmail,
|
||||||
|
IsFQDN,
|
||||||
|
IsDate,
|
||||||
|
Min,
|
||||||
|
Max,
|
||||||
|
IsString,
|
||||||
|
} from 'class-validator';
|
||||||
|
|
||||||
|
export class BasicQueryDTO {
|
||||||
|
@IsInt()
|
||||||
|
generalID!: number;
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
command!: string;
|
||||||
|
}
|
||||||
+11
-1
@@ -1 +1,11 @@
|
|||||||
console.log("Hello World!");
|
//import 'reflect-metadata';
|
||||||
|
//import { BasicQueryDTO } from './api';
|
||||||
|
|
||||||
|
export function test(){
|
||||||
|
console.log("Hello World!");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
test();
|
||||||
|
|
||||||
|
export default {};
|
||||||
@@ -103,4 +103,8 @@
|
|||||||
"include": [
|
"include": [
|
||||||
"./server/**/*"
|
"./server/**/*"
|
||||||
],
|
],
|
||||||
|
"ts-node": {
|
||||||
|
"esm": true,
|
||||||
|
"experimentalSpecifierResolution": "node"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user