@achref-thamri/exercises 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +84 -2
- package/dist/exercises.json +13012 -0
- package/dist/index.cjs +7957 -0
- package/dist/index.d.cts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +7952 -0
- package/dist/steps.cjs +3349 -0
- package/dist/steps.d.cts +2 -0
- package/dist/steps.d.ts +2 -0
- package/dist/steps.js +3347 -0
- package/package.json +92 -5
- package/schema.json +150 -0
package/package.json
CHANGED
|
@@ -1,6 +1,93 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "@achref-thamri/exercises",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Open exercise library: names, step-by-step instructions, target muscles and equipment.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"exercises",
|
|
7
|
+
"workout",
|
|
8
|
+
"fitness",
|
|
9
|
+
"gym",
|
|
10
|
+
"dataset"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"author": "Achref Thamri",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/achref-thamri/gymdeck-exercises.git"
|
|
17
|
+
},
|
|
18
|
+
"homepage": "https://github.com/achref-thamri/gymdeck-exercises#readme",
|
|
19
|
+
"bugs": "https://github.com/achref-thamri/gymdeck-exercises/issues",
|
|
20
|
+
"type": "module",
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"import": "./dist/index.js",
|
|
25
|
+
"require": "./dist/index.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./steps": {
|
|
28
|
+
"import": "./dist/steps.js",
|
|
29
|
+
"require": "./dist/steps.cjs"
|
|
30
|
+
},
|
|
31
|
+
"./exercises.json": "./dist/exercises.json",
|
|
32
|
+
"./schema.json": "./schema.json",
|
|
33
|
+
"./package.json": "./package.json"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist",
|
|
37
|
+
"schema.json"
|
|
38
|
+
],
|
|
39
|
+
"scripts": {
|
|
40
|
+
"generate": "tsx scripts/generate.ts",
|
|
41
|
+
"build": "npm run generate && tsdown",
|
|
42
|
+
"typecheck": "npm run generate && tsc --noEmit",
|
|
43
|
+
"lint": "eslint .",
|
|
44
|
+
"test": "vitest run",
|
|
45
|
+
"test:watch": "vitest",
|
|
46
|
+
"format": "prettier --write .",
|
|
47
|
+
"format:check": "prettier --check .",
|
|
48
|
+
"prepare": "husky && npm run generate",
|
|
49
|
+
"prepublishOnly": "npm run build",
|
|
50
|
+
"pretest": "npm run generate"
|
|
51
|
+
},
|
|
52
|
+
"lint-staged": {
|
|
53
|
+
"*.{ts,js}": [
|
|
54
|
+
"eslint --fix --max-warnings=0",
|
|
55
|
+
"prettier --write"
|
|
56
|
+
],
|
|
57
|
+
"!(package-lock).{json,md,yml,yaml}": [
|
|
58
|
+
"prettier --write"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@arethetypeswrong/core": "^0.18.5",
|
|
63
|
+
"@eslint/js": "^9.39.5",
|
|
64
|
+
"@types/node": "^24.19.2",
|
|
65
|
+
"eslint": "^9.39.5",
|
|
66
|
+
"eslint-config-prettier": "^10.1.8",
|
|
67
|
+
"eslint-plugin-prettier": "^5.5.7",
|
|
68
|
+
"globals": "^17.13.0",
|
|
69
|
+
"husky": "^9.1.7",
|
|
70
|
+
"lint-staged": "^17.6.0",
|
|
71
|
+
"prettier": "^3.9.10",
|
|
72
|
+
"publint": "^0.3.25",
|
|
73
|
+
"tsdown": "^0.23.3",
|
|
74
|
+
"tsx": "^4.23.15",
|
|
75
|
+
"typescript": "~6.0.3",
|
|
76
|
+
"typescript-eslint": "^8.72.1",
|
|
77
|
+
"vitest": "^5.0.5",
|
|
78
|
+
"zod": "^4.6.7"
|
|
79
|
+
},
|
|
80
|
+
"devEngines": {
|
|
81
|
+
"runtime": {
|
|
82
|
+
"name": "node",
|
|
83
|
+
"version": ">=24"
|
|
84
|
+
},
|
|
85
|
+
"packageManager": {
|
|
86
|
+
"name": "npm",
|
|
87
|
+
"version": ">=11.19"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"engines": {
|
|
91
|
+
"node": ">=18"
|
|
92
|
+
}
|
|
93
|
+
}
|
package/schema.json
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"id": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*$"
|
|
8
|
+
},
|
|
9
|
+
"name": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 1
|
|
12
|
+
},
|
|
13
|
+
"muscles": {
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"primary": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"enum": [
|
|
19
|
+
"chest",
|
|
20
|
+
"back",
|
|
21
|
+
"shoulders",
|
|
22
|
+
"biceps",
|
|
23
|
+
"triceps",
|
|
24
|
+
"quads",
|
|
25
|
+
"hamstrings",
|
|
26
|
+
"glutes",
|
|
27
|
+
"calves",
|
|
28
|
+
"abs"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"secondary": {
|
|
32
|
+
"readOnly": true,
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"enum": [
|
|
37
|
+
"chest",
|
|
38
|
+
"back",
|
|
39
|
+
"shoulders",
|
|
40
|
+
"biceps",
|
|
41
|
+
"triceps",
|
|
42
|
+
"quads",
|
|
43
|
+
"hamstrings",
|
|
44
|
+
"glutes",
|
|
45
|
+
"calves",
|
|
46
|
+
"abs"
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": [
|
|
52
|
+
"primary",
|
|
53
|
+
"secondary"
|
|
54
|
+
],
|
|
55
|
+
"additionalProperties": false
|
|
56
|
+
},
|
|
57
|
+
"equipment": {
|
|
58
|
+
"readOnly": true,
|
|
59
|
+
"type": "array",
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"enum": [
|
|
63
|
+
"bodyweight",
|
|
64
|
+
"dumbbell",
|
|
65
|
+
"barbell",
|
|
66
|
+
"kettlebell",
|
|
67
|
+
"cable",
|
|
68
|
+
"band",
|
|
69
|
+
"pullup-bar",
|
|
70
|
+
"bench",
|
|
71
|
+
"chest-press-machine",
|
|
72
|
+
"pec-deck",
|
|
73
|
+
"lat-pulldown",
|
|
74
|
+
"seated-row-machine",
|
|
75
|
+
"shoulder-press-machine",
|
|
76
|
+
"leg-press",
|
|
77
|
+
"leg-extension",
|
|
78
|
+
"leg-curl",
|
|
79
|
+
"smith-machine",
|
|
80
|
+
"hip-thrust-machine",
|
|
81
|
+
"calf-raise-machine"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"mechanic": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"enum": [
|
|
88
|
+
"compound",
|
|
89
|
+
"isolation"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"level": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"enum": [
|
|
95
|
+
"beginner",
|
|
96
|
+
"intermediate",
|
|
97
|
+
"expert"
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"steps": {
|
|
101
|
+
"readOnly": true,
|
|
102
|
+
"minItems": 2,
|
|
103
|
+
"type": "array",
|
|
104
|
+
"items": {
|
|
105
|
+
"type": "string",
|
|
106
|
+
"minLength": 1
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"tips": {
|
|
110
|
+
"readOnly": true,
|
|
111
|
+
"minItems": 1,
|
|
112
|
+
"type": "array",
|
|
113
|
+
"items": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"minLength": 1
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"source": {
|
|
119
|
+
"type": "object",
|
|
120
|
+
"properties": {
|
|
121
|
+
"name": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"minLength": 1
|
|
124
|
+
},
|
|
125
|
+
"id": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"minLength": 1
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"required": [
|
|
131
|
+
"name",
|
|
132
|
+
"id"
|
|
133
|
+
],
|
|
134
|
+
"additionalProperties": false
|
|
135
|
+
},
|
|
136
|
+
"$schema": {
|
|
137
|
+
"type": "string"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"required": [
|
|
141
|
+
"id",
|
|
142
|
+
"name",
|
|
143
|
+
"muscles",
|
|
144
|
+
"equipment",
|
|
145
|
+
"mechanic",
|
|
146
|
+
"level",
|
|
147
|
+
"steps"
|
|
148
|
+
],
|
|
149
|
+
"additionalProperties": false
|
|
150
|
+
}
|