forked from yuanqing/create-figma-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
81 lines (81 loc) · 3.1 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
{
"private": true,
"type": "module",
"scripts": {
"build": "lerna run --stream build",
"bump-dependencies": "TS_NODE_PROJECT=tsconfig.shared.json node --loader ts-node/esm scripts/bump-dependencies.ts react react-dom",
"clean": "lerna run --parallel --stream clean && lerna run --stream storybook-clean && yarn run website-clean && rm -rf '*.log'",
"fix": "lerna run --parallel --stream fix && eslint --fix 'scripts/**/*.ts' && prettier --ignore-path lerna.json --loglevel error --write '*.json'",
"generate-docs": "lerna run --stream generate-docs",
"lint": "lerna run --parallel --stream lint && eslint 'scripts/**/*.ts'",
"postinstall": "simple-git-hooks && yarn run build",
"publish": "yarn run build && lerna publish from-package",
"reset": "yarn run clean && lerna clean --yes && rm -rf node_modules yarn.lock && yarn install",
"storybook": "lerna run --stream storybook",
"test": "lerna run --stream test",
"version": "lerna version --force-publish",
"website-build": "yarn run website-clean && yarn run website-build-docs && yarn run website-build-storybook && cp packages/build/src/figma-plugin.json build",
"website-build-docs": "yarn run generate-docs && single-page-markdown-website docs/index.md && TS_NODE_PROJECT=tsconfig.shared.json node --loader ts-node/esm scripts/check-html-anchor-links.ts build/index.html",
"website-build-storybook": "lerna run --stream storybook-build && cpy packages/ui/build build/ui",
"website-clean": "rm -rf build",
"website-deploy": "yarn run website-build && gh-pages --dist build"
},
"devDependencies": {
"@types/node": "^15.12.4",
"cpy-cli": "^3.1.1",
"eslint": "^7.29.0",
"eslint-config-yuanqing": "^0.0.5",
"gh-pages": "^3.2.2",
"globby": "^11.0.4",
"lerna": "^4.0.0",
"lint-staged": "^11.0.0",
"npm-check-updates": "^11.7.1",
"prettier": "^2.3.1",
"simple-git-hooks": "^2.4.1",
"single-page-markdown-website": "^0.0.19",
"ts-node": "^10.0.0",
"typescript": "^4.3.4"
},
"eslintConfig": {
"extends": "eslint-config-yuanqing"
},
"lint-staged": {
"*.{cjs,js,ts,tsx}": [
"eslint"
],
"*.css": [
"stylelint"
]
},
"prettier": "eslint-config-yuanqing/prettier",
"simple-git-hooks": {
"pre-commit": "yarn run lint-staged",
"pre-push": "yarn run lint && yarn run fix && yarn run test"
},
"single-page-markdown-website": {
"baseUrl": "https://yuanqing.github.io/create-figma-plugin/",
"title": "Create Figma Plugin",
"description": "A comprehensive toolkit for developing Figma plugins",
"links": [
{
"text": "Changelog",
"url": "https://github.com/yuanqing/create-figma-plugin/blob/main/CHANGELOG.md#readme"
},
{
"text": "Storybook",
"url": "https://yuanqing.github.io/create-figma-plugin/ui/"
},
{
"text": "GitHub",
"url": "https://github.com/yuanqing/create-figma-plugin"
}
],
"socialMediaPreviewImage": "media/share.png"
},
"stylelint": {
"extends": "stylelint-config-yuanqing"
},
"workspaces": [
"packages/*"
]
}