-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
86 lines (86 loc) · 3.3 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
{
"private": true,
"type": "module",
"engines": {
"node": ">=18"
},
"scripts": {
"build": "turbo run build",
"bump-dependencies": "tsx scripts/bump-dependencies.ts @typescript-eslint/eslint-plugin eslint-config-yuanqing eslint-plugin-import eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-simple-import-sort eslint-plugin-sort-keys-fix stylelint-config-yuanqing",
"clean": "turbo run clean && rimraf '*.log' build",
"fix": "turbo run fix && concurrently npm:fix:js npm:fix:json",
"fix:js": "eslint --fix 'scripts/**/*.ts'",
"fix:json": "prettier --loglevel error --write '*.json'",
"lint": "turbo run lint && npm run lint:js",
"lint:js": "eslint 'scripts/**/*.ts'",
"postinstall": "simple-git-hooks && tsx scripts/patch-figma-plugin-typings.ts && npm run build",
"prepackages-publish": "turbo run fix lint test build",
"packages-publish": "lerna publish from-package",
"packages-version": "lerna version --force-publish",
"release": "sh scripts/release.sh",
"reset": "npm run clean && rimraf node_modules package-lock.json './packages/*/node_modules' && npm install",
"test": "turbo run test",
"prewebsite-build": "npm run build && rimraf build",
"website-build": "npm run website-build:website && npm run website-build:storybook && npm run website-build:figma-plugin-json",
"website-build:website": "cd packages/website && npm run website-build && cpy './build/**/*' ../../build",
"website-build:storybook": "cd packages/ui && BASE_URL=/create-figma-plugin/storybook/ npm run storybook-build && cpy './build/**/*' ../../build/create-figma-plugin/storybook",
"website-build:figma-plugin-json": "cp packages/build/src/figma-plugin.json build/create-figma-plugin/figma-plugin.json",
"prewebsite-deploy": "npm run website-build",
"website-deploy": "gh-pages --dist build/create-figma-plugin",
"website-serve": "sirv build --dev --host --port 4242"
},
"devDependencies": {
"@lerna-lite/cli": "^1.13.0",
"@types/node": "^18.11.17",
"@typescript-eslint/eslint-plugin": "5.47.0",
"concurrently": "^7.6.0",
"cpy-cli": "^4.2.0",
"eslint": "^8.30.0",
"eslint-config-yuanqing": "0.0.7",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-react": "7.31.11",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-simple-import-sort": "8.0.0",
"eslint-plugin-sort-keys-fix": "1.1.2",
"gh-pages": "^4.0.0",
"globby": "^13.1.3",
"lint-staged": "^13.1.0",
"npm-check-updates": "^16.6.0",
"prettier": "^2.8.1",
"rimraf": "^3.0.2",
"simple-git-hooks": "^2.8.1",
"sirv-cli": "^2.0.2",
"stylelint": "^14.16.0",
"stylelint-config-yuanqing": "0.0.4",
"tsx": "^3.12.1",
"turbo": "^1.6.3",
"typescript": "^4.9.4"
},
"eslintConfig": {
"extends": "eslint-config-yuanqing",
"root": true,
"env": {
"node": true
}
},
"lint-staged": {
"*.{cjs,js,ts,tsx}": [
"eslint"
],
"*.css": [
"stylelint"
]
},
"prettier": "eslint-config-yuanqing/prettier",
"simple-git-hooks": {
"pre-commit": "npx lint-staged",
"pre-push": "npx turbo run fix lint test build"
},
"stylelint": {
"extends": "stylelint-config-yuanqing"
},
"workspaces": [
"packages/*"
]
}