-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
125 lines (125 loc) · 3.87 KB
/
package.json
File metadata and controls
125 lines (125 loc) · 3.87 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
{
"name": "@alma/widgets",
"version": "3.1.1",
"description": "Widgets to easily display information from Alma - https://getalma.eu",
"keywords": [],
"main": "dist/widgets.js",
"umd:main": "dist/widgets.umd.js",
"module": "dist/widgets.m.js",
"typings": "dist/types/index.d.ts",
"files": [
"dist"
],
"author": "Olivier Lance <olivier.lance@getalma.eu>",
"repository": {
"type": "git",
"url": "git+https://github.com/alma/widgets.git"
},
"license": "MIT",
"engines": {
"node": ">=6.0.0"
},
"scripts": {
"start": "npx tsc && npx vite build -w",
"test": "NODE_ENV=test jest --coverage",
"test:no-coverage": "NODE_ENV=test jest",
"test:watch": "NODE_ENV=test jest --watch",
"test:prod": "npm run lint && npm run test -- --no-cache",
"lint": "npx eslint --ext .js,.jsx,.ts,.tsx ./src/ && stylelint 'src/**/*.{css,scss}'",
"lint:fix": "npx eslint --fix --ext .js,.jsx,.ts,.tsx ./src/ && stylelint 'src/**/*.{css,scss}' --fix",
"prebuild": "rm -rf dist",
"build": "npx tsc && npx vite build && npm run create:wc:umd",
"create:wc:umd": "node scripts/umd-for-woocommerce.js",
"translations:extract": "formatjs extract 'src/**/*.ts*' --out-file 'src/intl/messages.json' --format simple --ignore 'src/*.d.ts' && prettier ./src/intl --write",
"translations:upload": "crowdin upload sources",
"translations:download": "crowdin download && prettier ./src/intl --write",
"prepare": "husky"
},
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@crowdin/cli": "^4.3.0",
"@formatjs/cli": "^6.3.5",
"@octokit/core": "^6.1.2",
"@rollup/plugin-image": "^3.0.3",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/clean-css": "^4.2.11",
"@types/jest": "^29.5.14",
"@types/jest-axe": "^3.5.9",
"@types/no-scroll": "^2.1.2",
"@types/node": "^22.8.4",
"@types/react-modal": "^3.16.3",
"@typescript-eslint/parser": "^8.12.2",
"clean-css": "^5.3.3",
"commitizen": "^4.3.1",
"core-js": "^3.38.1",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.57.1",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-config-react-app": "^7.0.1",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.8.3",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.2",
"expect-type": "^1.1.0",
"husky": "^9.1.6",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-axe": "^10.0.0",
"jest-config": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"rollup": "^4.24.3",
"stylelint": "^13.13.1",
"stylelint-a11y": "^1.2.3",
"stylelint-config-standard": "^22.0.0",
"ts-essentials": "^10.0.2",
"ts-jest": "^29.2.5",
"typescript": "^5.6.3",
"vite": "^5.4.10",
"vite-plugin-dts": "^4.5.0",
"vite-plugin-node-polyfills": "^0.23.0"
},
"dependencies": {
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"classnames": "^2.5.1",
"date-fns": "^4.1.0",
"no-scroll": "^2.1.1",
"preact": "^10.24.3",
"preact-utils": "^1.1.2",
"react-intl": "^6.8.4",
"react-modal": "^3.16.1",
"react-responsive": "^10.0.0",
"test-utils": "^1.1.1"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"lint-staged": {
"{src,test}/**/*.ts": [
"prettier --write"
]
},
"prettier": {
"semi": false,
"singleQuote": true,
"trailingComma": "all"
},
"publishConfig": {
"access": "public"
}
}