-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from narumincho/dev
update 1.90.0
- Loading branch information
Showing
10 changed files
with
1,757 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
{ | ||
"name": "@narumincho/vscode", | ||
"version": "1.89.0", | ||
"exports": "./mod.ts" | ||
"version": "1.90.0", | ||
"exports": "./mod.ts", | ||
"tasks": { | ||
"build-example": "deno run -A ./example/build.ts" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { denoPlugins } from "https://deno.land/x/esbuild_deno_loader@0.8.2/mod.ts"; | ||
import { denoPlugins } from "https://deno.land/x/esbuild_deno_loader@0.9.0/mod.ts"; | ||
import { | ||
build as esBuild, | ||
Plugin, | ||
} from "https://deno.land/x/esbuild@v0.19.7/mod.js"; | ||
import { ensureFile } from "https://deno.land/[email protected]/fs/mod.ts"; | ||
import { resolve } from "https://deno.land/[email protected]/path/mod.ts"; | ||
type Plugin, | ||
} from "https://deno.land/x/esbuild@v0.21.4/mod.js"; | ||
import { ensureFile } from "jsr:@std/fs"; | ||
import { resolve } from "jsr:@std/path"; | ||
|
||
/** | ||
* ```bash | ||
|
@@ -25,7 +25,7 @@ export const writeTextFileWithLog = async ( | |
|
||
const distributionPath = "./vscodeExtensionDistribution/"; | ||
|
||
const build = async (): Promise<string> => { | ||
const buildMainJs = async (): Promise<string> => { | ||
const esbuildResult = await esBuild({ | ||
entryPoints: ["./example/main.ts"], | ||
plugins: denoPlugins() as Plugin[], | ||
|
@@ -53,37 +53,38 @@ const scriptRelativePath = "./main.js"; | |
await Promise.all([ | ||
writeTextFileWithLog( | ||
resolve(distributionPath, scriptRelativePath), | ||
await build(), | ||
await buildMainJs(), | ||
), | ||
|
||
writeTextFileWithLog( | ||
resolve(distributionPath, "./package.json"), | ||
JSON.stringify({ | ||
"name": "example", | ||
"version": "0.0.1", | ||
"description": "example VSCode extension", | ||
"repository": { | ||
"url": "git+https://github.com/narumincho/vscode.git", | ||
"type": "git", | ||
name: "example", | ||
version: "0.0.1", | ||
description: "example VSCode extension", | ||
repository: { | ||
url: "git+https://github.com/narumincho/vscode.git", | ||
type: "git", | ||
}, | ||
"license": "MIT", | ||
"homepage": "https://github.com/narumincho/vscode", | ||
"author": "narumincho", | ||
"engines": { | ||
"vscode": "^1.76.0", | ||
license: "MIT", | ||
homepage: "https://github.com/narumincho/vscode", | ||
author: "narumincho", | ||
engines: { | ||
vscode: "^1.76.0", | ||
}, | ||
"dependencies": {}, | ||
"activationEvents": [], | ||
"contributes": { | ||
"commands": [ | ||
dependencies: {}, | ||
activationEvents: [], | ||
contributes: { | ||
commands: [ | ||
{ | ||
"command": "extension.helloWorld", | ||
"title": "Hello World", | ||
command: "extension.helloWorld", | ||
title: "Hello World", | ||
}, | ||
], | ||
}, | ||
"browser": scriptRelativePath, | ||
"publisher": "narumincho", | ||
type: "module", | ||
browser: scriptRelativePath, | ||
publisher: "narumincho", | ||
}), | ||
), | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.