-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vscode): preview of Robot Framework Notebook support for VSCode
- Loading branch information
Showing
67 changed files
with
5,412 additions
and
1,299 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ pyproject.toml | |
**/playground/ | ||
|
||
# svg files | ||
**/*.svg | ||
#**/*.svg | ||
|
||
# coverage | ||
.coverage | ||
|
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 |
---|---|---|
@@ -0,0 +1,83 @@ | ||
import * as esbuild from "esbuild"; | ||
import * as process from "process"; | ||
import { typecheckPlugin } from "@jgoz/esbuild-plugin-typecheck"; | ||
/** | ||
* @type {import('esbuild').LogLevel} | ||
*/ | ||
const LOG_LEVEL = "error"; | ||
|
||
/** | ||
* @type {boolean} | ||
*/ | ||
const production = process.argv.includes("--production"); | ||
|
||
/** | ||
* @type {import('esbuild').BuildOptions[]} | ||
*/ | ||
const projects = [ | ||
{ | ||
entryPoints: ["./vscode-client/extension"], | ||
format: "cjs", | ||
platform: "node", | ||
outfile: "out/extension.js", | ||
external: ["vscode"], | ||
}, | ||
{ | ||
entryPoints: ["./vscode-client/rendererHtml"], | ||
format: "esm", | ||
platform: "browser", | ||
outfile: "out/rendererHtml.js", | ||
external: ["vscode"], | ||
loader: { | ||
".jstemp": "text", | ||
".csstemp": "text", | ||
}, | ||
}, | ||
{ | ||
entryPoints: ["./vscode-client/rendererLog"], | ||
format: "esm", | ||
platform: "browser", | ||
outfile: "out/rendererLog.js", | ||
external: ["vscode"], | ||
loader: { | ||
".ttf": "file", | ||
".css": "text", | ||
}, | ||
}, | ||
]; | ||
|
||
/** | ||
* | ||
* @param {import('esbuild').BuildOptions} project | ||
*/ | ||
async function buildProject(project) { | ||
const ctx = await esbuild.context({ | ||
bundle: true, | ||
minify: production, | ||
sourcemap: !production, | ||
sourcesContent: false, | ||
logLevel: LOG_LEVEL, | ||
|
||
...project, | ||
|
||
plugins: [ | ||
typecheckPlugin({ configFile: project.entryPoints[0] + "/tsconfig.json" }), | ||
/* add to the end of plugins array */ | ||
//esbuildProblemMatcherPlugin, | ||
], | ||
}); | ||
|
||
await ctx.rebuild(); | ||
await ctx.dispose(); | ||
} | ||
|
||
async function main() { | ||
for (const project of projects) { | ||
await buildProject(project); | ||
} | ||
} | ||
|
||
main().catch((e) => { | ||
console.error(e); | ||
process.exit(1); | ||
}); |
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
Oops, something went wrong.