-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
41 lines (41 loc) · 1.54 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
{
"name": "widget-template",
"version": "1.0.0",
"description": "WidgetTemplate",
"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 widget-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",
"build:production": "npm run build:ui && npm run build:main -- --minify",
"build:main": "esbuild widget-src/code.tsx --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' 'npx vite'"
},
"author": "Figma",
"license": "MIT License",
"dependencies": {
"clipboard-polyfill": "^4.1.0",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"sass": "^1.77.4",
"vanilla-framework": "^4.11.0"
},
"devDependencies": {
"@figma/plugin-typings": "^1.49.0",
"@figma/widget-typings": "^1.4.0",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@vitejs/plugin-react-refresh": "^1.3.1",
"concurrently": "^6.3.0",
"esbuild": "^0.13.5",
"prettier": "^2.3.2",
"typescript": "^4.4.2",
"vite": "^2.5.2",
"vite-plugin-singlefile": "^0.5.1"
}
}