create-vscode-editor
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "tldraw-vscode", | ||
"displayName": "TLDraw", | ||
"description": "The TLDraw Extension for VS Code.", | ||
"version": "0.1.15", | ||
"license": "MIT", | ||
"publisher": "tldraw-org", | ||
"repository": { | ||
"name": "vscode-editor", | ||
"displayName": "VS Code Editor", | ||
"description": "A Custom Editor Extension for VS Code.", | ||
"version": "0.0.4", | ||
"license": "MIT","repository": { | ||
"type": "git", | ||
"url": "https://github.com/tldraw/tldraw" | ||
"url": "https://github.com/seflless/create-vscode-editor" | ||
}, | ||
@@ -66,4 +64,2 @@ "engines": { | ||
"web": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=.", | ||
"package": "cd ../editor && yarn build && cd ../extension && node scripts/build && node scripts/package", | ||
"vscode:publish": "yarn version && yarn package && vsce publish", | ||
"lint": "eslint src --ext ts" | ||
@@ -70,0 +66,0 @@ }, |
{ | ||
"name": "create-vscode-editor", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A custom editor for VS Code", | ||
@@ -21,6 +21,6 @@ "author": "@seflless", | ||
"start:extension": "code extension && node scripts/dev-extension.mjs -w", | ||
"build": "npm run build:editor && npm run build:extension", | ||
"build": "yarn build:editor && yarn build:extension", | ||
"build:editor": "node scripts/build-editor.mjs", | ||
"build:extension": "node scripts/build-extension.mjs", | ||
"package": "npm run build:editor && npm run build:extension && vsce package" | ||
"build:extension": "node scripts/build-extension.js", | ||
"package": "yarn build && node scripts/package.js" | ||
}, | ||
@@ -27,0 +27,0 @@ "dependencies": { |
## Create VS Code Editors | ||
Easily create custom VS Code editors, using React for the UI. | ||
**WARNING: This project is not ready for production use. Proceed with caution** | ||
This is an opionated VS Code extension generator with the following features out of the box: | ||
@@ -17,2 +19,6 @@ - Editor UIs are built with React | ||
Example editors built with this project: | ||
- [Make your own customized Tldraw editor for VS Code](https://github.com/seflless/tldraw-vscode-editor) | ||
### Install and Run | ||
@@ -31,2 +37,3 @@ | ||
1. `yarn package` | ||
1. The installer will be created in the `out` folder | ||
1. Coming soon: automated publishing to the Marketplace. For now you can use the workflow where you upload the .vsix installer file | ||
@@ -33,0 +40,0 @@ |
@@ -8,4 +8,4 @@ /* eslint-disable */ | ||
async function main() { | ||
if (fs.existsSync('./dist')) { | ||
fs.rmSync('./dist', { recursive: true }, (e) => { | ||
if (fs.existsSync('./extension/dist')) { | ||
fs.rmSync('./extension/dist', { recursive: true }, (e) => { | ||
if (e) { | ||
@@ -16,7 +16,8 @@ throw e | ||
} | ||
try { | ||
const esmResult = esbuild.buildSync({ | ||
entryPoints: ['./src/extension.ts'], | ||
outdir: 'dist/web', | ||
entryPoints: ['./extension/src/extension.ts'], | ||
outdir: 'extension/dist/web', | ||
minify: true, | ||
@@ -29,4 +30,7 @@ bundle: true, | ||
}, | ||
tsconfig: './tsconfig.json', | ||
external: Object.keys(pkg.dependencies).concat(Object.keys(pkg.peerDependencies)).concat(["vscode"]), | ||
tsconfig: '../extension/tsconfig.json', | ||
external: Object.keys(pkg.dependencies) | ||
.concat(Object.keys(pkg.devDependencies)) | ||
.concat(['vscode']) | ||
, | ||
metafile: true, | ||
@@ -33,0 +37,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1386940
42
23549
129
10
2