-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpackage.json
40 lines (40 loc) · 1.48 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
{
"name": "react",
"version": "1.0.0",
"description": "react",
"scripts": {
"test": "npm run tsc && npm run build",
"format": "prettier --write .",
"tsc": "npm run tsc:main && npm run tsc:ui",
"tsc:main": "tsc --noEmit -p plugin-src",
"tsc:ui": "tsc --noEmit -p ui-src",
"tsc:watch": "concurrently -n widget,iframe \"npm run tsc:main -- --watch --preserveWatchOutput\" \"npm run tsc:ui -- --watch --preserveWatchOutput\"",
"build": "npm run build:ui && npm run build:main -- --minify",
"build:main": "esbuild plugin-src/code.ts --bundle --outfile=dist/code.js",
"build:ui": "npx vite build --minify esbuild --emptyOutDir=false",
"build:watch": "concurrently -n widget,iframe \"npm run build:main -- --watch\" \"npm run build:ui -- --watch\"",
"dev": "concurrently -n tsc,build,vite 'npm:tsc:watch' 'npm:build:watch' 'vite'"
},
"author": "Figma",
"license": "MIT License",
"dependencies": {
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react-syntax-highlighter": "^15.5.0"
},
"devDependencies": {
"@figma/plugin-typings": "^1.76.0",
"@types/prettier": "^2.7.0",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@types/react-syntax-highlighter": "^15.5.4",
"@vitejs/plugin-react-refresh": "^1.3.1",
"concurrently": "^6.3.0",
"esbuild": "^0.13.5",
"prettier": "^2.7.1",
"typescript": "^4.4.2",
"vite": "^3.1.8",
"vite-plugin-singlefile": "^0.12.3",
"vite-svg-loader": "^3.6.0"
}
}