@luozhu/create-vscode-webview
Version:
Create vscode extension with webview
93 lines (92 loc) • 2.72 kB
JSON
{
"name": "{{name}}",
"displayName": "{{displayName}}",
"version": "0.0.0",
"description": "{{description}}",
"private": "true",
"icon": "assets/icon.png",
"workspaces": ["web"],
"engines": {
"vscode": "^1.59.0"
},
"categories": ["Other"],
"keywords": ["umijs", "webview"],
"license": "MIT",
"publisher": "{{publisher}}",
"repository": {
"type": "git",
"url": "https://github.com/{{repository}}.git"
},
"activationEvents": ["*", "onCommand:{{name}}.start"],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "{{name}}.start",
"title": "Start",
"category": "{{displayName}}"
}
]
},
"scripts": {
"vscode:prepublish": "yarn web-build && yarn esbuild-base --minify",
"preesbuild-base": "rimraf out",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "yarn esbuild-base --sourcemap",
"esbuild-watch": "yarn esbuild-base --sourcemap --watch",
"web-build": "yarn workspace web run build",
"web-watch": "yarn workspace web run start",
"test-compile": "tsc -p ./",
"lint": "eslint src --ext ts,tsx",
"pretest": "yarn test-compile && yarn lint",
"test": "node ./out/test/runTest.js",
"commit": "git cz",
"package": "vsce package --no-yarn",
"release-it": "standard-version",
"prepublish-it": "yarn release-it",
"publish-it": "git push --follow-tags origin main && vsce publish --no-yarn"
},
"config": {
"commitizen": {
"path": "cz-customizable"
}
},
"gitHooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -e -V"
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx}": ["eslint --fix"],
"**/*.{md,json,less}": ["prettier --write"]
},
"devDependencies": {
"@commitlint/cli": "^13.1.0",
"@luozhu/eslint-config-react-typescript": "^1.5.0",
"@luozhu/prettier-config": "^1.0.3",
"@types/glob": "^7.1.3",
"@types/mocha": "^8.0.4",
"@types/node": "^12.11.7",
"@types/qs": "^6.9.7",
"@types/vscode": "^1.59.0",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"commitizen": "^4.2.4",
"commitlint-config-cz": "^0.13.2",
"cz-customizable": "^6.3.0",
"esbuild": "^0.12.19",
"eslint": "^7.19.0",
"glob": "^7.1.6",
"lint-staged": "^11.1.2",
"mocha": "^8.2.1",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",
"standard-version": "^9.3.1",
"typescript": "^4.1.3",
"vsce": "^1.96.1",
"vscode-test": "^1.5.0",
"yorkie": "^2.0.0"
},
"dependencies": {
"@luozhu/vscode-utils": "^0.6.1"
}
}