-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
167 lines (167 loc) · 4.94 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
{
"name": "preact-template",
"description": "The tiny 16kb preact app that could",
"private": true,
"version": "0.0.0",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/bdombro/preact-template.git"
},
"scripts": {
"build": "vite build",
"build:storybook": "storybook build",
"clean": "rm -rf dist playwright-report",
"ci:test": "gh act --artifact-server-path /tmp/artifacts",
"format": "prettier --cache -w .",
"cap:ios:build": "cap build ios",
"cap:ios:init": "cap add ios && cap sync ios",
"cap:ios:xcode": "cap open ios",
"cap:ios:sync": "cap sync ios",
"//cap:watch": "using the ionic cli to run cap adds livereload feature",
"cap:ios:watch": "ionic cap run ios --livereload --no-sync",
"//cap:ios:watch:ondevice": "tip: make sure you choose a signing team in xcode before running this command",
"cap:ios:watch:ondevice": "ionic cap run ios --livereload --no-sync --external",
"//ionic:serve": "Needed for ionic cli to work",
"ionic:serve": "NOSSL=true vite",
"lint": "tsc && eslint . --cache --cache-location=node_modules/.eslintcache && prettier --check .",
"lint:watch": "npx nodemon -e js,jsx,ts,tsx,css,pcss --exec 'npm run lint'",
"precommit": "run-s clean lint build test",
"preinstall": "echo npm run precommit > .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit",
"preview": "vite preview",
"update": "npx npm-check-updates",
"start": "vite",
"storybook": "storybook dev -p 6006",
"test": "playwright test --project=chromium"
},
"engines": {
"node": ">=16.13.0"
},
"postcss": {
"map": true,
"plugins": {
"postcss-custom-selectors": {},
"postcss-extend": {},
"postcss-nested": {}
}
},
"dependencies": {
"@capacitor/device": "^5.0.6",
"@slimr/mdi-paths": "^2.1.43",
"@slimr/react": "^3.0.16",
"@slimr/util": "^3.2.40",
"preact": "^10.19.3"
},
"devDependencies": {
"@capacitor/camera": "5.0.8",
"@capacitor/cli": "5.6.0",
"@capacitor/core": "5.6.0",
"@capacitor/ios": "5.6.0",
"@capacitor/splash-screen": "5.0.6",
"@ionic/cli": "7.2.0",
"@playwright/test": "^1.40.1",
"@preact/preset-vite": "^2.8.1",
"@storybook/addon-essentials": "^7.6.7",
"@storybook/addon-interactions": "^7.6.7",
"@storybook/addon-links": "^7.6.7",
"@storybook/addon-mdx-gfm": "^7.6.7",
"@storybook/blocks": "^7.6.7",
"@storybook/react": "^7.6.7",
"@storybook/react-vite": "^7.6.7",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/node": "^20.10.6",
"@types/react": "^18.2.46",
"@types/react-dom": "^18.2.18",
"@typescript-eslint/eslint-plugin": "^6.17.0",
"@typescript-eslint/parser": "^6.17.0",
"@vitejs/plugin-react-swc": "^3.5.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.33.2",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.32",
"postcss-custom-selectors": "^7.1.6",
"postcss-extend": "^1.0.5",
"postcss-nested": "^6.0.1",
"prettier": "^3.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "7.6.7",
"typescript": "^5.3.3",
"vite": "^5.0.10",
"vite-plugin-mkcert": "^1.17.1",
"vite-plugin-pwa": "^0.17.4",
"workbox-window": "^7.0.0"
},
"eslintConfig": {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"ignorePatterns": [
"ios",
"dist"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": "error",
"no-prototype-builtins": "off",
"no-var": "off",
"react/button-has-type": "error",
"react/jsx-no-undef": "off",
"react/no-unescaped-entities": "off",
"react/prop-types": "off"
},
"settings": {
"react": {
"version": "18"
}
}
},
"prettier": {
"trailingComma": "es5",
"semi": false,
"singleQuote": true,
"arrowParens": "avoid",
"bracketSpacing": false,
"printWidth": 100,
"plugins": [
"@trivago/prettier-plugin-sort-imports"
],
"importOrder": [
".pcss$",
".css$",
"polyfills",
"<THIRD_PARTY_MODULES>",
"~/(.*)$",
"^[./]"
],
"importOrderCaseInsensitive": true,
"importOrderGroupNamespaceSpecifiers": true,
"importOrderParserPlugins": [
"typescript",
"decorators-legacy",
"jsx"
],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true
}
}