From 560628c7deb356775f5b691375ff8be88e117524 Mon Sep 17 00:00:00 2001 From: Andy Bunce Date: Sun, 6 Feb 2022 12:51:13 +0000 Subject: [PATCH] [mod] use esbuild --- .vscodeignore | 9 +++------ LICENSE | 2 +- package.json | 8 ++++++-- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.vscodeignore b/.vscodeignore index ea75c67..af62a43 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -1,8 +1,5 @@ -.vscode/** -.vscode-test/** -out/test/** -out/**/*.map -src/** -.gitignore +node_modules +out/ +src/ tsconfig.json vsc-extension-quickstart.md diff --git a/LICENSE b/LICENSE index db94f28..98ce5d9 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015 Josh Johnson +Copyright (c) 2022 Andy Bunce Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/package.json b/package.json index 4cdfda3..86cc5b7 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-basex", "displayName": "BaseX tools", "description": "BaseX tools: XQuery, XML, XPath Tools for Visual Studio Code", - "version": "0.0.4", + "version": "0.0.6", "preview": false, "publisher": "quodatum", "author": { @@ -261,7 +261,11 @@ } }, "scripts": { - "vscode:prepublish": "npm run compile", + "vscode:prepublish": "npm run esbuild-base -- --minify", + "esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node", + "esbuild": "npm run esbuild-base -- --sourcemap", + "esbuild-watch": "npm run esbuild-base -- --sourcemap --watch", + "test-compile": "tsc -p ./", "compile": "tsc -p ./", "watch": "tsc -watch -p ./", "pretest": "npm run compile && npm run lint",