-
-
Notifications
You must be signed in to change notification settings - Fork 91
/
package.json
87 lines (87 loc) · 3.41 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
{
"name": "create-figma-plugin",
"private": true,
"type": "module",
"engines": {
"node": ">=20"
},
"packageManager": "[email protected]",
"scripts": {
"build": "turbo run build",
"bump-dependencies": "tsx scripts/bump-dependencies.ts @figma/plugin-typings @typescript-eslint/eslint-plugin eslint 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 prettier stylelint stylelint-config-yuanqing",
"clean": "turbo run clean && rimraf --glob '*.log' 'packages/*/.turbo' .turbo build node_modules/.cache/turbo",
"fix": "turbo run fix && eslint --fix 'scripts/**/*.ts'",
"lint": "turbo run lint && eslint 'scripts/**/*.ts'",
"postinstall": "simple-git-hooks && tsx scripts/patch-figma-plugin-typings.ts && npm run build",
"prepackages-publish": "turbo run fix lint && turbo run test build",
"packages-publish": "lerna publish from-package",
"packages-version": "lerna version --force-publish",
"release": "sh scripts/release.sh",
"reset": "npm run clean && rimraf --glob 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/publish": "3.8.0",
"@lerna-lite/version": "3.8.0",
"@types/node": "22.2.0",
"@typescript-eslint/eslint-plugin": "8.0.1",
"concurrently": "8.2.2",
"cpy-cli": "5.0.0",
"eslint": "8.57.0",
"eslint-config-yuanqing": "0.0.11",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.35.0",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-simple-import-sort": "12.1.1",
"eslint-plugin-sort-keys-fix": "1.1.2",
"gh-pages": "6.1.1",
"globby": "14.0.2",
"lint-staged": "15.2.8",
"npm-check-updates": "17.0.6",
"path-exists": "5.0.0",
"prettier": "3.3.3",
"rimraf": "6.0.1",
"simple-git-hooks": "2.11.1",
"sirv-cli": "2.0.2",
"stylelint": "16.8.1",
"stylelint-config-yuanqing": "0.0.7",
"tsx": "4.17.0",
"turbo": "2.0.12",
"typescript": "5.4.5"
},
"eslintConfig": {
"extends": "eslint-config-yuanqing",
"root": true,
"env": {
"node": true
}
},
"lint-staged": {
"*.{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 && npx turbo run test build"
},
"stylelint": {
"extends": "stylelint-config-yuanqing"
},
"workspaces": [
"packages/*"
]
}