This commit is contained in:
Leandro Facchinetti 2020-03-17 22:19:05 -04:00
parent 68f933a194
commit d36ed3ef47
6 changed files with 7069 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
node_modules
lib
.caddy
static/feeds/*
!static/feeds/.gitkeep

15
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,15 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "dev:start",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}

7011
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

24
package.json Normal file
View File

@ -0,0 +1,24 @@
{
"scripts": {
"start": "node src/index.js",
"test": "tsc && prettier --check 'src/**'",
"dev:start": "concurrently \"tsc --watch\" \"nodemon lib/index.js\""
},
"dependencies": {
"express": "^4.17.1",
"xml2js": "^0.4.23"
},
"devDependencies": {
"@types/express": "^4.17.3",
"@types/jest": "^25.1.4",
"concurrently": "^5.1.0",
"jest": "^25.1.0",
"nodemon": "^2.0.2",
"prettier": "^1.19.1",
"typescript": "^3.8.3"
},
"jest": {
"rootDir": "lib",
"testEnvironment": "node"
}
}

5
src/index.ts Normal file
View File

@ -0,0 +1,5 @@
import express from "express";
const app = express();
app.listen(4000);

12
tsconfig.json Normal file
View File

@ -0,0 +1,12 @@
{
"compilerOptions": {
"target": "ESNEXT",
"module": "commonjs",
"jsx": "react",
"sourceMap": true,
"rootDir": "src",
"outDir": "lib",
"strict": true,
"esModuleInterop": true
}
}