From 63f8c0ff0726eae407ed77cb1b6211a4f22cf174 Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Tue, 28 Apr 2020 22:58:24 +0100 Subject: [PATCH] build and package updates --- .../package-lock.json | 39 ++ .../tailwindcss-language-server/package.json | 4 +- packages/tailwindcss-vscode/.vscodeignore | 5 - packages/tailwindcss-vscode/package-lock.json | 409 +++++++++++++++++- packages/tailwindcss-vscode/package.json | 15 +- 5 files changed, 456 insertions(+), 16 deletions(-) diff --git a/packages/tailwindcss-language-server/package-lock.json b/packages/tailwindcss-language-server/package-lock.json index 280ac2e..cd77c08 100644 --- a/packages/tailwindcss-language-server/package-lock.json +++ b/packages/tailwindcss-language-server/package-lock.json @@ -32,6 +32,18 @@ "concat-map": "0.0.1" } }, + "buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "dev": true + }, + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true + }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -157,6 +169,22 @@ "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", "dev": true }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-support": { + "version": "0.5.19", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", + "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, "subarg": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz", @@ -166,6 +194,17 @@ "minimist": "^1.1.0" } }, + "terser": { + "version": "4.6.12", + "resolved": "https://registry.npmjs.org/terser/-/terser-4.6.12.tgz", + "integrity": "sha512-fnIwuaKjFPANG6MAixC/k1TDtnl1YlPLUlLVIxxGZUn1gfUx2+l3/zGNB72wya+lgsb50QBi2tUV75RiODwnww==", + "dev": true, + "requires": { + "commander": "^2.20.0", + "source-map": "~0.6.1", + "source-map-support": "~0.5.12" + } + }, "typescript": { "version": "3.8.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.8.3.tgz", diff --git a/packages/tailwindcss-language-server/package.json b/packages/tailwindcss-language-server/package.json index dba232f..6526790 100644 --- a/packages/tailwindcss-language-server/package.json +++ b/packages/tailwindcss-language-server/package.json @@ -6,7 +6,8 @@ "scripts": { "dev1": "ncc build src/server.ts --watch -o dist/foo.js", "dev": "glob-exec --foreach --parallel \"src/*.ts\" -- \"ncc build {{file}} --watch -o dist/{{file.toString().replace(/\\.ts$/, '')}}\"", - "build": "ncc build src/server.ts --minify" + "build": "glob-exec --foreach --parallel \"src/*.ts\" -- \"ncc build {{file}} -o dist/{{file.toString().replace(/\\.ts$/, '')}}\"", + "minify": "glob-exec --foreach --parallel \"dist/src/**/index.js\" -- \"terser {{file}} --compress --mangle --output {{file.toString()}}\"" }, "keywords": [], "author": "Brad Cornes ", "license": "MIT", - "version": "0.0.1", + "version": "0.3.0-alpha.1", "repository": { "type": "git", "url": "https://github.com/bradlc/" @@ -60,14 +60,11 @@ } }, "scripts": { - "vscode:prepublish": "npm run build", - "devOld": "concurrently \"npm:devOld:*\"", - "devOld:client": "ncc build src/extension.ts --watch -o dist/client", - "devOld:server": "ncc build src/server.ts --watch -o dist/server", + "vscode:prepublish": "npm run build && npm run minify", "dev": "glob-exec --foreach --parallel \"src/*.ts\" -- \"ncc build {{file}} --watch -o dist/{{file.toString().replace(/\\.ts$/, '')}}\"", - "build": "npm run build:client && npm run build:server", - "build:client": "ncc build src/extension.ts --minify -o dist/client", - "build:server": "ncc build src/server.ts --minify -o dist/server" + "build": "glob-exec --foreach --parallel \"src/*.ts\" -- \"ncc build {{file}} -o dist/{{file.toString().replace(/\\.ts$/, '')}}\"", + "minify": "glob-exec --foreach --parallel \"dist/src/**/index.js\" -- \"terser {{file}} --compress --mangle --output {{file.toString()}}\"", + "package": "vsce package" }, "devDependencies": { "@types/mocha": "^5.2.0", @@ -79,8 +76,10 @@ "glob-exec": "^0.1.1", "mkdirp": "^1.0.3", "tailwindcss-language-server": "0.0.1", + "terser": "^4.6.12", "tslint": "^5.16.0", "typescript": "^3.8.3", + "vsce": "^1.75.0", "vscode-languageclient": "^5.2.1" } }