-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
58 lines (58 loc) · 2.51 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"name": "my-template-project",
"version": "1.0.0",
"description": "A template for TypeScript/JavaScript projects",
"main": "src/index.js",
"scripts": {
"start": "echo '🚀 Starting the app...' && npm run build && node dist/index.js",
"build": "echo '🔨 Building the app...' && tsc",
"test": "echo '🧪 Running tests...' && jest --config jest.config.cjs --coverage",
"format": "echo '🖋️ Formatting code...' && prettier --write .",
"lint": "echo '🧹 Linting code...' && eslint './**/*.{js,ts}' --ignore-path eslintignore",
"lint:root": "echo '🧹 Linting root code...' && eslint './**/*.{js,ts}' --ignore-pattern 'frontend/' --ignore-pattern 'backend/'",
"lint:frontend": "echo '🧹 Linting frontend code...' && eslint './frontend/**/*.{js,ts}'",
"lint:backend": "echo '🧹 Linting backend code...' && eslint './backend/**/*.{js,ts}'",
"setup-eslint": "echo '🔨 Starting setup...' && ts-node setup-eslint.ts && echo '🎉 Setup completed!'",
"precommit": "echo '🔒 Precommit: Linting and testing code...' && npm run lint && npm test",
"pretest": "echo '🔎 Pretest: Linting code...' && npm run lint",
"watch": "echo '👀 Watching files...' && jest --watch",
"debug": "echo '🐞 Starting the app in debug mode...' && NODE_ENV=development nodemon --inspect src/index.js",
"clean": "echo '🧽 Cleaning up...' && rm -rf ./node_modules ./dist && rm package-lock.json",
"prepare": "husky install # 🐶 Setting up Husky"
},
"repository": {
"type": "git",
"url": "git+https://github.com/yourusername/my-template-project.git"
},
"keywords": [],
"author": "Your Name",
"license": "MIT",
"bugs": {
"url": "https://github.com/yourusername/my-template-project/issues"
},
"homepage": "https://github.com/yourusername/my-template-project#readme",
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@babel/preset-typescript": "^7.26.0",
"@types/jest": "^29.5.14",
"@types/node": "^22.9.0",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0",
"babel-loader": "^9.2.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.9.0",
"eslint-plugin-prettier": "^5.2.1",
"husky": "^9.1.6",
"jest": "^29.7.0",
"nodemon": "^3.1.7",
"prettier": "^3.3.3",
"readline-sync": "^1.4.10",
"typescript": "^5.6.3"
},
"dependencies": {
"express": "^4.21.1"
}
}