-
Notifications
You must be signed in to change notification settings - Fork 27
/
package.json
134 lines (134 loc) · 4.02 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
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
{
"type": "module",
"scripts": {
"prepare": "husky install",
"release": "node scripts/release.mjs",
"clean": "rm -rf ./dist",
"test": "export ODOO_TERMINAL_ENV=development && node scripts/build.mjs && jest --maxWorkers=1",
"dev:web-ext": "export ODOO_TERMINAL_ENV=development && web-ext lint --ignore-files=src/js/**",
"dev:eslint": "export ODOO_TERMINAL_ENV=development && eslint --color .",
"dev:flowcheck": "export ODOO_TERMINAL_ENV=development && flow check",
"dev:rollup": "export ODOO_TERMINAL_ENV=development && rollup -c",
"dev:rollup:watch": "export ODOO_TERMINAL_ENV=development && rollup -c -w",
"prod:build": "export ODOO_TERMINAL_ENV=production && node scripts/build.mjs",
"start:firefox": "export ODOO_TERMINAL_ENV=development && node scripts/build.mjs && web-ext run --verbose -t firefox-desktop",
"start:chromium": "export ODOO_TERMINAL_ENV=development && node scripts/build.mjs && web-ext run --verbose -t chromium",
"start:chrome": "export ODOO_TERMINAL_ENV=development && node scripts/build.mjs && web-ext run --verbose -t chromium --chromium-binary $(which chrome)"
},
"devDependencies": {
"@babel/cli": "^7.25",
"@babel/core": "^7.26",
"@babel/preset-env": "^7.26",
"@babel/preset-flow": "^7.25",
"@puppeteer/browsers": "^2.4",
"@rollup/plugin-alias": "^5.1",
"@rollup/plugin-babel": "^6.0",
"@rollup/plugin-commonjs": "^28.0",
"@rollup/plugin-eslint": "^9.0",
"@rollup/plugin-node-resolve": "^15.3",
"@rollup/plugin-terser": "^0.4",
"adm-zip": "^0.5",
"async-mutex": "^0.5",
"autoprefixer": "^10.4",
"babel-jest": "^29.7",
"babel-plugin-i18next-extract": "^0.10",
"babel-plugin-syntax-hermes-parser": "^0.25",
"cssnano": "^7.0",
"docker-compose": "^1.1",
"eslint": "^9.13",
"eslint-config-prettier": "^9.1",
"eslint-plugin-ft-flow": "^3.0",
"eslint-plugin-json": "^4.0",
"eslint-plugin-prettier": "^5.2",
"flow-bin": "^0.250",
"hermes-eslint": "^0.25",
"husky": "^9.1",
"i18next": "^23.16",
"i18next-http-backend": "^2.6",
"jest": "^29.7",
"jest-puppeteer": "^10.1",
"lint-staged": "^15.2",
"minimist": "^1.2",
"object-hash": "^3.0",
"prettier": "^3.3",
"puppeteer-core": "^23.6",
"rimraf": "^6.0",
"rollup": "^4.24",
"rollup-plugin-analyzer": "^4.0",
"rollup-plugin-postcss": "^4.0",
"simple-git": "^3.27",
"web-ext": "^8.3"
},
"overrides": {
"globals": "^15.11",
"@rollup/plugin-eslint": {
"eslint": "^9.10"
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "web-ext lint --ignore-files=src/js/**"
}
},
"lint-staged": {
"!(*.{mjs,js})": [
"prettier --write"
],
"*.{mjs,js}": [
"eslint --color --fix --parser hermes-eslint"
]
},
"babel": {
"targets": {
"esmodules": true
},
"presets": [
"@babel/preset-env",
"@babel/preset-flow"
],
"plugins": [
"babel-plugin-syntax-hermes-parser",
[
"i18next-extract",
{
"locales": [
"en",
"es"
],
"discardOldKeys": true,
"outputPath": "_locales/{{locale}}/{{ns}}.json",
"useI18nextDefaultValue": true
}
]
]
},
"jest": {
"verbose": true,
"transform": {
"^.+/tests/.+\\.js$": "babel-jest"
},
"preset": "jest-puppeteer",
"globalSetup": "./tests/jest-global-setup.js",
"globalTeardown": "./tests/jest-global-teardown.js"
},
"prettier": {
"printWidth": 120,
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "all",
"bracketSpacing": false,
"bracketSameLine": false,
"arrowParens": "avoid",
"requirePragma": false,
"proseWrap": "always",
"htmlWhitespaceSensitivity": "css",
"vueIndentScriptAndStyle": false,
"endOfLine": "lf",
"embeddedLanguageFormatting": "auto",
"singleAttributePerLine": false
}
}