Merge branch '2-setup-typescript' into 'main'

Resolve "Setup Typescript"

Closes #2

See merge request finvis/backend!3
This commit is contained in:
Ethan Girouard 2023-09-26 17:00:53 -04:00
commit 34d5a82981
5 changed files with 60 additions and 1 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
node_modules/**
dist/**

43
package-lock.json generated Normal file
View File

@ -0,0 +1,43 @@
{
"name": "finvis-backend",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "finvis-backend",
"version": "1.0.0",
"license": "GPL-3.0-or-later",
"devDependencies": {
"@tsconfig/node-lts": "^18.12.5",
"@types/node": "^20.7.0",
"typescript": "^5.2.2"
}
},
"node_modules/@tsconfig/node-lts": {
"version": "18.12.5",
"resolved": "https://registry.npmjs.org/@tsconfig/node-lts/-/node-lts-18.12.5.tgz",
"integrity": "sha512-KJZX0kQ5FBv77WDVzmQ9y1dUjaJCNXAAz3LSsg5cMwH0AUijVdDQtII+IVprEXdb13U9GjVOBxBzyRvr/ozPxw==",
"dev": true
},
"node_modules/@types/node": {
"version": "20.7.0",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.7.0.tgz",
"integrity": "sha512-zI22/pJW2wUZOVyguFaUL1HABdmSVxpXrzIqkjsHmyUjNhPoWM1CKfvVuXfetHhIok4RY573cqS0mZ1SJEnoTg==",
"dev": true
},
"node_modules/typescript": {
"version": "5.2.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz",
"integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==",
"dev": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
},
"engines": {
"node": ">=14.17"
}
}
}
}

View File

@ -7,5 +7,10 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "GPL-3.0-or-later"
"license": "GPL-3.0-or-later",
"devDependencies": {
"@tsconfig/node-lts": "^18.12.5",
"@types/node": "^20.7.0",
"typescript": "^5.2.2"
}
}

1
src/main.ts Normal file
View File

@ -0,0 +1 @@
console.log("Hello, World!");

8
tsconfig.json Normal file
View File

@ -0,0 +1,8 @@
{
"extends": "@tsconfig/node-lts/tsconfig.json",
"compilerOptions": {
"outDir": "dist"
},
"include": ["src"],
"exclude": ["node_modules"]
}