-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
35 lines (35 loc) · 1.33 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
{
"name": "test-plugin",
"version": "1.0.0",
"description": "test-plugin",
"type": "module",
"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 plugin,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 plugin,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",
"devDependencies": {
"@figma/plugin-typings": "*",
"@sveltejs/vite-plugin-svelte": "^2.0.4",
"@tsconfig/svelte": "^4.0.1",
"@types/node": "^18.15.11",
"concurrently": "^6.3.0",
"esbuild": "^0.13.5",
"prettier": "^2.3.2",
"svelte": "^3.54.0",
"svelte-check": "^2.10.0",
"typescript": "^4.4.2",
"vite": "^4.2.1",
"vite-plugin-singlefile": "^0.13.3"
}
}