-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
125 lines (125 loc) · 4.62 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
{
"private": true,
"name": "@sajari/search-widgets",
"version": "4.2.0",
"license": "MIT",
"browserslist": "> 1%",
"scripts": {
"start": "if-env NODE_ENV=production && npm run -s serve || npm run -s dev",
"build": "cross-env NODE_ENV=production preact build --template ./src/dev/index.ejs --no-prerender --no-sw --no-esm",
"build:script": "cross-env NODE_ENV=production DEPLOY_SCRIPT=true preact build --template ./src/dev/index.ejs --no-prerender --no-sw --no-esm",
"serve": "sirv build --cors --single",
"analyze": "cross-env NODE_ENV=production preact build --analyze",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"dev": "preact watch --host=localhost --template ./src/dev/index.ejs --no-esm",
"dev:ssl": "preact watch --template ./src/dev/index.ejs --no-esm --host search-widgets.local --https --cert ./src/dev/cert.pem --key ./src/dev/cert.key",
"deploy": "yarn lint && yarn build:script && node -r esm scripts/deploy.js",
"deploy:loader-only": "yarn lint && yarn build:script && node -r esm scripts/deploy.js --loaderOnly",
"deploy:full": "yarn lint && yarn build:script && node -r esm scripts/deploy.js --full && changeset tag",
"deploy:staging": "yarn lint && yarn build:script && node -r esm scripts/deploy.js --full --staging",
"cert": "openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout ./src/dev/cert.key -out ./src/dev/cert.pem -config ./src/dev/req.cnf -sha256",
"changeset": "changeset",
"release": "changeset publish",
"postinstall": "husky install",
"format": "prettier -c --write \"*/**\"",
"test": "jest",
"test:watch": "jest --watch",
"test:ci": "jest -u --env=jsdom --coverage --watchAll=false --maxWorkers=2",
"cypress:open": "cypress open"
},
"lint-staged": {
"*.{css,md,scss}": "prettier --write",
"**/*.{js,jsx,ts,tsx}": [
"prettier --write",
"eslint --fix"
]
},
"babelMacros": {
"twin": {
"preset": "emotion"
}
},
"devDependencies": {
"@babel/core": "^7.14.8",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
"@babel/plugin-transform-react-jsx": "^7.14.5",
"@babel/preset-env": "^7.15.6",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.16.7",
"@changesets/cli": "^2.19.0",
"@emotion/babel-plugin-jsx-pragmatic": "^0.1.5",
"@emotion/babel-preset-css-prop": "^11.2.0",
"@emotion/react": "^11.9.0",
"@google-cloud/storage": "^5.10.0",
"@sajari/eslint-config": "^0.1.1",
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^12.1.3",
"@types/body-scroll-lock": "^2.6.2",
"@types/jest": "^27.0.1",
"@types/lodash-es": "^4.17.4",
"@types/node": "^16.9.1",
"@types/react": "^17.0.20",
"@types/webpack-env": "^1.16.2",
"@typescript-eslint/eslint-plugin": "^4.28.4",
"ansi-colors": "^4.1.1",
"babel-jest": "^27.2.0",
"babel-plugin-macros": "^3.1.0",
"babel-plugin-transform-react-jsx": "^6.24.1",
"cross-env": "^7.0.3",
"cypress": "^11.2.0",
"eslint": "^7.31.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"fancy-log": "^1.3.3",
"husky": "^7.0.1",
"if-env": "^1.0.4",
"jest": "^27.2.0",
"lint-staged": "^11.1.1",
"postcss": "^8.2.13",
"preact-cli": "^3.0.5",
"prettier": "^2.2.1",
"prettier-eslint": "^12.0.0",
"react-test-renderer": "^17.0.2",
"sirv-cli": "^1.0.12",
"terser": "^5.14.2",
"ts-jest": "^27.0.5",
"typescript": "^4.3.5",
"whatwg-fetch": "^3.6.2",
"yargs": "^17.4.1"
},
"dependencies": {
"@emotion/cache": "^10",
"@emotion/core": "^10.1.1",
"@emotion/styled": "^10.0.27",
"@sajari/react-components": "^2.1.0",
"@sajari/react-hooks": "^4.0.1",
"@sajari/react-sdk-utils": "^2.0.0",
"@sajari/react-search-ui": "^6.0.0",
"@types/react-dom": "^17.0.9",
"body-scroll-lock": "^3.1.5",
"lodash-es": "^4.17.21",
"mitt": "^2.1.0",
"preact": "^10.5.12",
"preact-habitat": "^3.3.0",
"preact-render-to-string": "^5.1.12",
"query-string": "^6.14.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-i18next": "^11.11.2",
"resize-observer-polyfill": "^1.5.1",
"tailwindcss": "^2.0.3",
"twin.macro": "^2.3.0"
},
"alias": {
"react": "preact/compat",
"react-dom": "preact/compat"
},
"packageManager": "[email protected]"
}