tailwind-ctp-intellisense @master -
refs -
log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
update language server package
3 changed files, 41 additions(+), 3 deletions(-)
diff --git a/packages/tailwindcss-language-server/README.md b/packages/tailwindcss-language-server/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..b560187b0df476631a14598ab9c7ae4b1cbd3fb4
--- /dev/null
+++ b/packages/tailwindcss-language-server/README.md
@@ -0,0 +1,25 @@
+# Tailwind CSS Language Server
+
+[Language Server Protocol](https://github.com/Microsoft/language-server-protocol) implementation for [Tailwind CSS](https://tailwindcss.com), used by [Tailwind CSS IntelliSense for VS Code](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss).
+
+## Install
+
+```bash
+npm install -g @tailwindcss/language-server
+```
+
+## Run
+
+```bash
+tailwindcss-language-server --stdio
+```
+
+```
+Usage: tailwindcss-language-server [options]
+
+Options:
+
+ --stdio use stdio
+ --node-ipc use node-ipc
+ --socket=<port> use socket
+```
diff --git a/packages/tailwindcss-language-server/package.json b/packages/tailwindcss-language-server/package.json
index d52031e63413c0763c7d7fbcd4f1889bd77310f6..46bc2c6ac3869307c85a292c420b805df9d70dd0 100644
--- a/packages/tailwindcss-language-server/package.json
+++ b/packages/tailwindcss-language-server/package.json
@@ -1,13 +1,15 @@
{
- "name": "tailwindcss-language-server",
+ "name": "@tailwindcss/language-server",
"description": "Tailwind CSS Language Server",
"license": "MIT",
"version": "0.0.1",
+ "license": "MIT",
"scripts": {
"build": "npm run clean && ncc build src/server.ts -o bin --minify && mv bin/index.js bin/tailwindcss-language-server && npm run hashbang",
"clean": "rimraf dist",
- "hashbang": "echo \"#!/usr/bin/env node\n$(cat bin/tailwindcss-language-server)\" > bin/tailwindcss-language-server",
+ "hashbang": "node scripts/hashbang.mjs",
- "create-notices-file": "node scripts/createNoticesFile.mjs"
+ "create-notices-file": "node scripts/createNoticesFile.mjs",
+ "prepublishOnly": "npm run build"
},
"bin": {
"tailwindcss-language-server": "./bin/tailwindcss-language-server"
@@ -16,6 +18,9 @@ "files": [
"bin",
"ThirdPartyNotices.txt"
],
+ "publishConfig": {
+ "access": "public"
+ },
"devDependencies": {
"@ctrl/tinycolor": "3.1.4",
"@parcel/watcher": "2.0.0-alpha.10",
diff --git a/packages/tailwindcss-language-server/scripts/hashbang.mjs b/packages/tailwindcss-language-server/scripts/hashbang.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..7e86bc031c5cee81119527625e004fbe6d635b36
--- /dev/null
+++ b/packages/tailwindcss-language-server/scripts/hashbang.mjs
@@ -0,0 +1,8 @@
+import { readFileSync, writeFileSync } from 'fs'
+import { dirname, resolve } from 'path'
+import { fileURLToPath } from 'url'
+
+let __dirname = dirname(fileURLToPath(import.meta.url))
+let file = resolve(__dirname, '../bin/tailwindcss-language-server')
+
+writeFileSync(file, '#!/usr/bin/env node\n' + readFileSync(file, 'utf-8'), 'utf-8')