-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
106 lines (106 loc) · 4.14 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
{
"name": "acme",
"version": "0.0.0",
"private": true,
"workspaces": [
"apps/*",
"packages/*",
"packages/config/*",
"packages/web/*",
"packages/mobile/*"
],
"engines": {
"node": ">=14.0.0"
},
"packageManager": "[email protected]",
"scripts": {
"build": "turbo run build",
"db:generate": "turbo run generate --filter @acme/db",
"db:migrate:dev": "turbo run migrate:dev --filter @acme/db",
"db:seed": "turbo run seed --filter @acme/db",
"dev": "turbo run dev --parallel --filter @acme/web --filter @acme/mobile",
"dev:mobile": "turbo run dev --filter @acme/mobile",
"dev:web": "turbo run dev --filter @acme/web",
"env:local": "turbo run env:local",
"format": "prettier --check \"**/*.{js,jsx,ts,tsx,json,css,md,yml}\"",
"format:fix": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css,md,yml}\"",
"lint": "pnpm run lint:root && turbo run lint",
"lint:fix": "pnpm run lint:root:fix && turbo run lint:fix",
"lint:ls": "ls-lint",
"lint:root": "eslint --max-warnings 0 ./*.{js,jsx,ts,tsx}",
"lint:root:fix": "eslint --max-warnings 0 ./*.{js,jsx,ts,tsx}",
"lint:staged": "lint-staged",
"prepare": "husky install",
"storybook:mobile": "turbo run dev --filter @acme/mobile-ui-showcase --no-deps",
"storybook:web": "turbo run storybook --filter @acme/web-ui --no-deps",
"yeet": "find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \\; && find . -name '.turbo' -type d -prune -print -exec rm -rf '{}' \\; && find . -name 'dist' -type d -prune -print -exec rm -rf '{}' \\;"
},
"devDependencies": {
"@acme/eslint-config": "workspace:*",
"@ls-lint/ls-lint": "^1.11.2",
"eslint": "^8.23.1",
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1",
"turbo": "^1.5.1"
},
"lint-staged": {
"*": [
"ls-lint"
],
"./*.{js,jsx,ts,tsx}": [
"pnpm lint:root:fix"
],
"**/*.{js,jsx,ts,tsx,json,css,md,yml}": [
"pnpm format:fix"
],
"apps/web/**/*.{js,jsx,ts,tsx}": [
"eslint --max-warnings 0 --fix apps/web/**/*.{js,jsx,ts,tsx}"
],
"apps/mobile/**/*.{js,jsx,ts,tsx}": [
"eslint --max-warnings 0 --fix apps/mobile/**/*.{js,jsx,ts,tsx}"
],
"apps/mobile-storybook/**/*.{js,jsx,ts,tsx}": [
"eslint --max-warnings 0 --fix apps/mobile-storybook/**/*.{js,jsx,ts,tsx}"
],
"packages/db/**/*.{js,ts}": [
"eslint --max-warnings 0 --fix packages/db/**/*.{js,ts}"
],
"packages/api/**/*.{js,ts}": [
"eslint --max-warnings 0 --fix packages/api/**/*.{js,ts}"
],
"packages/theme/**/*.{js,ts}": [
"eslint --max-warnings 0 --fix packages/theme/**/*.{js,ts}"
],
"packages/web-ui/**/*.{js,jsx,ts,tsx}": [
"eslint --max-warnings 0 --fix packages/web-ui/**/*.{js,jsx,ts,tsx}"
],
"packages/web/forms/**/*.{js,jsx,ts,tsx}": [
"eslint --max-warnings 0 --fix packages/web/forms/**/*.{js,jsx,ts,tsx}"
],
"packages/web/locales/**/*.{js,jsx,ts,tsx}": [
"eslint --max-warnings 0 --fix packages/web/locales/**/*.{js,jsx,ts,tsx}"
],
"packages/web/locales/translations/**/*.{json}": [
"eslint --max-warnings 0 --fix --ext .json --format node_modules/eslint-plugin-i18n-json/formatter.js packages/web/locales/translations/"
],
"packages/web/storage/**/*.{js,jsx,ts,tsx}": [
"eslint --max-warnings 0 --fix packages/web/storage/**/*.{js,jsx,ts,tsx}"
],
"packages/mobile/ui/**/*.{js,jsx,ts,tsx}": [
"eslint --max-warnings 0 --fix packages/mobile/ui/**/*.{js,jsx,ts,tsx}"
],
"packages/mobile/forms/**/*.{js,jsx,ts,tsx}": [
"eslint --max-warnings 0 --fix packages/mobile/forms/**/*.{js,jsx,ts,tsx}"
],
"packages/mobile/locales/**/*.{js,jsx,ts,tsx}": [
"eslint --max-warnings 0 --fix packages/mobile/locales/**/*.{js,jsx,ts,tsx}"
],
"packages/mobile/locales/translations/**/*.{json}": [
"eslint --max-warnings 0 --fix --ext .json --format node_modules/eslint-plugin-i18n-json/formatter.js packages/mobile/locales/translations/"
],
"packages/mobile/storage/**/*.{js,jsx,ts,tsx}": [
"eslint --max-warnings 0 --fix packages/mobile/storage/**/*.{js,jsx,ts,tsx}"
]
}
}