replace microbundle with ncc

master
Brad Cornes 2019-01-10 23:43:44 +00:00
parent b7f9046644
commit 3b3c296006
4 changed files with 17 additions and 5321 deletions

5319
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -25,8 +25,7 @@
"activationEvents": [ "activationEvents": [
"workspaceContains:**/{tailwind,tailwind.config,tailwind-config,.tailwindrc}.js" "workspaceContains:**/{tailwind,tailwind.config,tailwind-config,.tailwindrc}.js"
], ],
"source": "./src/extension.ts", "main": "./dist/index.js",
"main": "./dist/extension.js",
"contributes": { "contributes": {
"grammars": [ "grammars": [
{ {
@ -58,8 +57,8 @@
"preview": true, "preview": true,
"scripts": { "scripts": {
"vscode:prepublish": "npm run build", "vscode:prepublish": "npm run build",
"build": "microbundle -f cjs --external vscode,child_process,os,crypto,net", "build": "ncc build src/index.ts --out dist --minify --external vscode",
"watch": "npm run build -- --watch", "watch": "ncc build src/index.ts --out dist --watch --external vscode",
"postinstall": "node ./node_modules/vscode/bin/install", "postinstall": "node ./node_modules/vscode/bin/install",
"test": "npm run build && node ./node_modules/vscode/bin/test" "test": "npm run build && node ./node_modules/vscode/bin/test"
}, },
@ -81,7 +80,7 @@
"vscode-languageclient": "^5.2.1" "vscode-languageclient": "^5.2.1"
}, },
"devDependencies": { "devDependencies": {
"microbundle": "^0.8.4", "@zeit/ncc": "^0.8.1",
"vscode": "^1.1.26" "vscode": "^1.1.26"
} }
} }

View File

@ -28,7 +28,7 @@ import { createTreeView } from './treeView'
const CONFIG_GLOB = const CONFIG_GLOB =
'**/{tailwind,tailwind.config,tailwind-config,.tailwindrc}.js' '**/{tailwind,tailwind.config,tailwind-config,.tailwindrc}.js'
let LANGUAGES: string[] = ['html'] let LANGUAGES: string[] = ['html', 'css']
let defaultClient: LanguageClient let defaultClient: LanguageClient
let clients: Map<string, LanguageClient> = new Map() let clients: Map<string, LanguageClient> = new Map()

8
tsconfig.json 100644
View File

@ -0,0 +1,8 @@
{
"compilerOptions": {
"target": "es2015",
"moduleResolution": "node"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "**/*.spec.ts"]
}