From cda5727e7248a2d224ad7ab71643b19a1b0938bd Mon Sep 17 00:00:00 2001 From: tomasz-io Date: Thu, 17 Oct 2024 11:23:02 +0700 Subject: [PATCH 1/2] dev: add prettier plugin for tailwind --- .prettierrc | 3 +- gui/src/pages/history/HistoryHeader.tsx | 6 +- package-lock.json | 106 ++++++++++++++++++++++++ package.json | 6 ++ 4 files changed, 117 insertions(+), 4 deletions(-) create mode 100644 package-lock.json create mode 100644 package.json diff --git a/.prettierrc b/.prettierrc index d3be6d22e..46664808a 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,6 @@ { "tabWidth": 2, "useTabs": false, - "trailingComma": "all" + "trailingComma": "all", + "plugins": ["prettier-plugin-tailwindcss"] } diff --git a/gui/src/pages/history/HistoryHeader.tsx b/gui/src/pages/history/HistoryHeader.tsx index b088875a7..ec64c1377 100644 --- a/gui/src/pages/history/HistoryHeader.tsx +++ b/gui/src/pages/history/HistoryHeader.tsx @@ -14,7 +14,7 @@ export const HistoryHeader = () => { style={{ backgroundColor: vscBackground, fontSize: getFontSize() }} >
{ width="1.2em" height="1.2em" onClick={() => navigate("/")} - className="inline-block ml-4 cursor-pointer" + className="ml-4 inline-block cursor-pointer" /> -

History

+

History

{/* {workspacePaths && workspacePaths.length > 0 && ( =14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prettier-plugin-tailwindcss": { + "version": "0.6.8", + "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.6.8.tgz", + "integrity": "sha512-dGu3kdm7SXPkiW4nzeWKCl3uoImdd5CTZEJGxyypEPL37Wj0HT2pLqjrvSei1nTeuQfO4PUfjeW5cTUNRLZ4sA==", + "dev": true, + "engines": { + "node": ">=14.21.3" + }, + "peerDependencies": { + "@ianvs/prettier-plugin-sort-imports": "*", + "@prettier/plugin-pug": "*", + "@shopify/prettier-plugin-liquid": "*", + "@trivago/prettier-plugin-sort-imports": "*", + "@zackad/prettier-plugin-twig-melody": "*", + "prettier": "^3.0", + "prettier-plugin-astro": "*", + "prettier-plugin-css-order": "*", + "prettier-plugin-import-sort": "*", + "prettier-plugin-jsdoc": "*", + "prettier-plugin-marko": "*", + "prettier-plugin-multiline-arrays": "*", + "prettier-plugin-organize-attributes": "*", + "prettier-plugin-organize-imports": "*", + "prettier-plugin-sort-imports": "*", + "prettier-plugin-style-order": "*", + "prettier-plugin-svelte": "*" + }, + "peerDependenciesMeta": { + "@ianvs/prettier-plugin-sort-imports": { + "optional": true + }, + "@prettier/plugin-pug": { + "optional": true + }, + "@shopify/prettier-plugin-liquid": { + "optional": true + }, + "@trivago/prettier-plugin-sort-imports": { + "optional": true + }, + "@zackad/prettier-plugin-twig-melody": { + "optional": true + }, + "prettier-plugin-astro": { + "optional": true + }, + "prettier-plugin-css-order": { + "optional": true + }, + "prettier-plugin-import-sort": { + "optional": true + }, + "prettier-plugin-jsdoc": { + "optional": true + }, + "prettier-plugin-marko": { + "optional": true + }, + "prettier-plugin-multiline-arrays": { + "optional": true + }, + "prettier-plugin-organize-attributes": { + "optional": true + }, + "prettier-plugin-organize-imports": { + "optional": true + }, + "prettier-plugin-sort-imports": { + "optional": true + }, + "prettier-plugin-style-order": { + "optional": true + }, + "prettier-plugin-svelte": { + "optional": true + } + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 000000000..88e26a707 --- /dev/null +++ b/package.json @@ -0,0 +1,6 @@ +{ + "devDependencies": { + "prettier": "^3.3.3", + "prettier-plugin-tailwindcss": "^0.6.8" + } +} From 16f468a560f0192fcd4beabb11184248386fb130 Mon Sep 17 00:00:00 2001 From: tomasz-io Date: Thu, 17 Oct 2024 11:28:06 +0700 Subject: [PATCH 2/2] dev: update installation scripts --- scripts/install-dependencies.ps1 | 3 +++ scripts/install-dependencies.sh | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/scripts/install-dependencies.ps1 b/scripts/install-dependencies.ps1 index f97d4b840..c9ded6a0e 100644 --- a/scripts/install-dependencies.ps1 +++ b/scripts/install-dependencies.ps1 @@ -48,6 +48,9 @@ if (($null -eq $node)) { return "`nSome dependencies that may require installation could not be found. Exiting" } +Write-Host "`nInstalling root-level dependencies..." -ForegroundColor White +npm install + Write-Host "`nInstalling Core extension dependencies..." -ForegroundColor White Push-Location core npm install diff --git a/scripts/install-dependencies.sh b/scripts/install-dependencies.sh index 9f3fbe2e9..ac23cab05 100755 --- a/scripts/install-dependencies.sh +++ b/scripts/install-dependencies.sh @@ -5,6 +5,9 @@ # - Debug -> Extension set -e +echo "Installing root-level dependencies..." +npm install + echo "Installing Core extension dependencies..." pushd core ## This flag is set because we pull down Chromium at runtime @@ -43,3 +46,5 @@ popd echo "Installing docs dependencies..." pushd docs npm install + +popd