express-generator-typescript
Version:
Generate new Express applications similar to express-generate which but sets it up to use TypeScript instead
73 lines (72 loc) • 2.57 kB
JSON
{
"name": "express-typescript-example",
"version": "0.0.0",
"scripts": {
"build": "shx rm -rf dist && npm run lint && tsc --project tsconfig.prod.json && npm run build:copy-static && npm run build:make-db",
"build:copy-static": "shx mkdir -p dist/public dist/views && shx cp -r src/public/* dist/public && shx cp -r src/views/* dist/views",
"build:make-db": "shx mkdir -p dist/repos/common && shx touch dist/repos/common/database.json && echo \"{}\" > dist/repos/common/database.json",
"clean-install": "rm -rf ./node_modules && rm -r package-lock.json && npm i",
"dev:basic": "cross-env DOTENV_CONFIG_PATH=./config/.env.development ts-node ./src/main",
"dev:watch": "nodemon --exec \"npm run dev:basic\" --watch ./src --ext .ts",
"dev": "concurrently \"npm run dev:watch\" \"npm run sync\"",
"lint": "eslint .",
"format": "prettier --write .",
"start": "cross-env DOTENV_CONFIG_PATH=./config/.env.production node -r dotenv/config -r module-alias/register ./dist/main.js",
"sync": "delay 1s && browser-sync start --config bs-config.js",
"test": "cross-env NODE_ENV=test vitest",
"type-check": "tsc -b --noEmit"
},
"engines": {
"node": ">=16.0.0"
},
"_moduleAliases": {
"@src": "dist"
},
"dependencies": {
"cookie-parser": "^1.4.7",
"cross-env": "^10.1.0",
"dayjs": "^1.11.19",
"dotenv": "^17.2.3",
"express": "^5.2.1",
"helmet": "^8.1.0",
"jet-env": "^1.1.6",
"jet-logger": "^2.2.3",
"jet-paths": "^3.1.1",
"jet-validators": "^2.3.1",
"jsonfile": "^6.2.0",
"module-alias": "^2.2.3",
"morgan": "^1.10.1",
"tspo": "^1.0.7"
},
"devDependencies": {
"@eslint/js": "^9.39.2",
"@swc/core": "^1.15.8",
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
"@types/cookie-parser": "^1.4.10",
"@types/find": "^0.2.4",
"@types/fs-extra": "^11.0.4",
"@types/jsonfile": "^6.1.4",
"@types/module-alias": "^2.0.4",
"@types/morgan": "^1.9.10",
"@types/node": "^25.0.9",
"@types/supertest": "^6.0.3",
"browser-sync": "^3.0.4",
"concurrently": "^9.2.1",
"delay-cli": "^3.0.0",
"eslint": "^9.39.2",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-n": "^17.23.2",
"find": "^0.3.0",
"fs-extra": "^11.3.3",
"jiti": "^2.6.1",
"nodemon": "^3.1.11",
"prettier": "^3.8.0",
"shx": "^0.4.0",
"supertest": "^7.2.2",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.53.0",
"vitest": "^4.0.17"
}
}