forked from yuanqing/create-figma-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
68 lines (68 loc) · 2.8 KB
/
package.json
File metadata and controls
68 lines (68 loc) · 2.8 KB
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
{
"private": true,
"type": "module",
"engines": {
"node": ">=16"
},
"scripts": {
"build": "lerna run build --ignore website --stream",
"bump-dependencies": "TS_NODE_PROJECT=tsconfig.shared.json node --loader ts-node/esm scripts/bump-dependencies.ts cpy-cli css-loader style-loader",
"clean": "rimraf '*.log'",
"fix": "lerna run fix --parallel --stream && eslint --fix 'scripts/**/*.ts' && prettier --ignore-path lerna.json --loglevel error --write '*.json'",
"generate-docs": "lerna run generate-docs --stream",
"lint": "lerna run lint --parallel --stream && eslint 'scripts/**/*.ts'",
"patch-figma-plugin-typings": "TS_NODE_PROJECT=tsconfig.shared.json node --loader ts-node/esm scripts/patch-figma-plugin-typings.ts",
"postinstall": "simple-git-hooks && npm run patch-figma-plugin-typings && npm run build",
"publish": "npm run build && lerna publish from-package",
"release": "sh scripts/release.sh",
"reset": "npm run clean && lerna clean --yes && rimraf node_modules package-lock.json && npm install",
"storybook": "lerna run storybook --scope @create-figma-plugin/ui --stream",
"test": "lerna run test --stream",
"version": "lerna version --force-publish",
"website-build": "npm run website-clean && npm run website-build-docs && npm run website-build-storybook && cp packages/build/src/figma-plugin.json build/create-figma-plugin",
"website-build-docs": "npm run generate-docs && lerna run build --scope website && cpy --cwd packages/website/build --parents '**/*' ../../../build",
"website-build-storybook": "lerna run storybook-build --scope @create-figma-plugin/ui --stream && cpy --cwd packages/ui/build --parents '**/*' ../../../build/create-figma-plugin/storybook",
"website-clean": "rimraf build",
"website-deploy": "npm run website-build && gh-pages --dist build/create-figma-plugin",
"website-serve": "sirv build --dev --host --port 4242"
},
"devDependencies": {
"@types/node": "^18.11.3",
"cpy-cli": "3.1.1",
"eslint": "^8.26.0",
"eslint-config-yuanqing": "0.0.6",
"gh-pages": "^4.0.0",
"globby": "^13.1.2",
"lerna": "^6.0.1",
"lint-staged": "^13.0.3",
"npm-check-updates": "^16.3.15",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"simple-git-hooks": "^2.8.1",
"sirv-cli": "^2.0.2",
"ts-node": "^10.9.1",
"typescript": "^4.8.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": "npx lint-staged",
"pre-push": "npm run lint && npm run fix && npm run test"
},
"stylelint": {
"extends": "stylelint-config-yuanqing"
},
"workspaces": [
"packages/*"
]
}