-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
146 lines (146 loc) · 3.72 KB
/
Copy pathpackage.json
File metadata and controls
146 lines (146 loc) · 3.72 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"name": "pose-estimation-one-euro-filter",
"version": "1.0.0",
"description": "基于TensorFlow.js的姿态估计应用",
"type": "module",
"main": "src/main.js",
"scripts": {
"dev": "http-server -p 8080 -c-1 --cors",
"start": "npm run dev",
"build": "tsc",
"build:watch": "tsc --watch",
"lint": "eslint src/**/*.js",
"lint:fix": "eslint src/**/*.js --fix",
"format": "prettier --write src/**/*.js",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"clean": "rimraf dist",
"serve": "http-server -p 8080 -c-1 --cors --ssl --cert cert.pem --key key.pem",
"generate-cert": "openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes",
"analyze": "webpack-bundle-analyzer dist/bundle.js",
"deploy": "npm run build && npm run deploy:gh-pages",
"deploy:gh-pages": "gh-pages -d dist"
},
"keywords": [
"pose-estimation",
"tensorflow.js",
"one-euro-filter",
"computer-vision",
"machine-learning",
"real-time",
"webcam",
"javascript"
],
"author": "Your Name",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/yourusername/pose-estimation-one-euro-filter.git"
},
"bugs": {
"url": "https://github.com/yourusername/pose-estimation-one-euro-filter/issues"
},
"homepage": "https://yourusername.github.io/pose-estimation-one-euro-filter",
"devDependencies": {
"@types/jest": "^29.5.0",
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.45.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"gh-pages": "^6.0.0",
"http-server": "^14.1.1",
"jest": "^29.6.0",
"jest-environment-jsdom": "^29.6.0",
"prettier": "^3.0.0",
"rimraf": "^5.0.0",
"typescript": "^5.1.0",
"webpack-bundle-analyzer": "^4.9.0"
},
"dependencies": {
"@tensorflow-models/pose-detection": "^2.1.0",
"@tensorflow/tfjs": "^4.10.0",
"selfsigned": "^2.4.1"
},
"peerDependencies": {
"@tensorflow/tfjs-backend-cpu": "^4.10.0",
"@tensorflow/tfjs-backend-webgl": "^4.10.0"
},
"engines": {
"node": ">=16.0.0",
"npm": ">=8.0.0"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead",
"not ie 11"
],
"jest": {
"testEnvironment": "jsdom",
"setupFilesAfterEnv": [
"<rootDir>/src/tests/setup.js"
],
"testMatch": [
"<rootDir>/src/**/__tests__/**/*.{js,ts}",
"<rootDir>/src/**/*.{test,spec}.{js,ts}"
],
"collectCoverageFrom": [
"src/**/*.{js,ts}",
"!src/**/*.d.ts",
"!src/tests/**"
],
"coverageDirectory": "coverage",
"coverageReporters": [
"text",
"lcov",
"html"
]
},
"eslintConfig": {
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"prettier"
],
"rules": {
"prettier/prettier": "error",
"no-console": "warn",
"no-unused-vars": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "warn"
},
"ignorePatterns": [
"dist/",
"node_modules/",
"*.min.js"
]
},
"prettier": {
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"bracketSpacing": true,
"arrowParens": "avoid",
"endOfLine": "lf"
}
}