From 644747c6ea6852a7d84dfd8c1e439c7bfff0f27e Mon Sep 17 00:00:00 2001 From: Aleksandar Toplek Date: Sat, 27 Jul 2024 17:19:35 +0200 Subject: [PATCH 1/2] feat(ui-primitives): Published package @signalco/ui-primitives --- web/packages/ui-primitives/package.json | 26 +++++++-- ...tailwind.config.cjs => tailwind.config.js} | 2 +- web/packages/ui-primitives/tsup.config.ts | 8 +++ web/pnpm-lock.yaml | 53 +++++++++++++++++++ 4 files changed, 84 insertions(+), 5 deletions(-) rename web/packages/ui-primitives/{tailwind.config.cjs => tailwind.config.js} (95%) create mode 100644 web/packages/ui-primitives/tsup.config.ts diff --git a/web/packages/ui-primitives/package.json b/web/packages/ui-primitives/package.json index a3139d48c3..d40916689d 100644 --- a/web/packages/ui-primitives/package.json +++ b/web/packages/ui-primitives/package.json @@ -1,15 +1,27 @@ { "name": "@signalco/ui-primitives", - "version": "0.0.0", - "private": true, + "version": "0.1.5", "license": "MIT", "type": "module", "sideEffects": false, "exports": { "./*": "./src/*/index.ts" }, + "files": [ + "dist" + ], + "publishConfig": { + "access": "public", + "exports": { + "./*": { + "import": "./dist/*/index.js", + "types": "./dist/*/index.d.ts" + } + } + }, "scripts": { - "lint": "eslint ." + "lint": "eslint .", + "prepublishOnly": "tsup --env.NODE_ENV production" }, "devDependencies": { "@radix-ui/react-checkbox": "1.1.1", @@ -39,6 +51,12 @@ "react-timeago": "7.2.0", "sass": "1.77.8", "tailwind-merge": "2.4.0", - "typescript": "5.5.3" + "typescript": "5.5.3", + "tsup": "8.2.0", + "@microsoft/api-extractor": "7.47.2" + }, + "peerDependencies": { + "react": ">=18", + "react-dom": ">=18" } } diff --git a/web/packages/ui-primitives/tailwind.config.cjs b/web/packages/ui-primitives/tailwind.config.js similarity index 95% rename from web/packages/ui-primitives/tailwind.config.cjs rename to web/packages/ui-primitives/tailwind.config.js index cd1ba5f106..6feb677815 100644 --- a/web/packages/ui-primitives/tailwind.config.cjs +++ b/web/packages/ui-primitives/tailwind.config.js @@ -1,6 +1,6 @@ // NOTE: Not actualy used, but here to enable tailwindcss IDE support -import { baseConfig } from '@signalco/tailwindcss-config-signalco'; +import { baseConfig } from '@signalco/tailwindcss-config-signalco/baseConfig'; /** @type {import('tailwindcss').Config} */ // eslint-disable-next-line import/no-anonymous-default-export diff --git a/web/packages/ui-primitives/tsup.config.ts b/web/packages/ui-primitives/tsup.config.ts new file mode 100644 index 0000000000..74c1497fe8 --- /dev/null +++ b/web/packages/ui-primitives/tsup.config.ts @@ -0,0 +1,8 @@ +import { defineConfig } from 'tsup'; + +export default defineConfig({ + entry: ['./src/*/index.ts'], + format: ['esm'], + minify: true, + experimentalDts: true, +}) diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index 8609f267de..3aa7bd56d2 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -1838,10 +1838,63 @@ importers: tailwind-merge: specifier: 2.4.0 version: 2.4.0 + tsup: + specifier: 8.2.0 + version: 8.2.0(@microsoft/api-extractor@7.47.2(@types/node@20.14.11))(@swc/core@1.5.7)(jiti@1.21.0)(postcss@8.4.39)(typescript@5.5.3) typescript: specifier: 5.5.3 version: 5.5.3 + packages/ui-themes-minimal: + dependencies: + tailwindcss: + specifier: 3.4.6 + version: 3.4.6 + tailwindcss-animate: + specifier: 1.0.7 + version: 1.0.7(tailwindcss@3.4.6) + devDependencies: + '@microsoft/api-extractor': + specifier: 7.47.2 + version: 7.47.2(@types/node@20.14.11) + '@signalco/tailwindcss-config-signalco': + specifier: workspace:* + version: link:../tailwindcss-config-signalco + '@signalco/tsconfig': + specifier: workspace:* + version: link:../tsconfig + tsup: + specifier: 8.2.0 + version: 8.2.0(@microsoft/api-extractor@7.47.2(@types/node@20.14.11))(@swc/core@1.5.7)(jiti@1.21.0)(postcss@8.4.39)(typescript@5.5.4) + typescript: + specifier: 5.5.4 + version: 5.5.4 + + packages/ui-themes-minimal-app: + dependencies: + tailwindcss: + specifier: 3.4.6 + version: 3.4.6 + tailwindcss-animate: + specifier: 1.0.7 + version: 1.0.7(tailwindcss@3.4.6) + devDependencies: + '@microsoft/api-extractor': + specifier: 7.47.2 + version: 7.47.2(@types/node@20.14.11) + '@signalco/tailwindcss-config-signalco': + specifier: workspace:* + version: link:../tailwindcss-config-signalco + '@signalco/tsconfig': + specifier: workspace:* + version: link:../tsconfig + tsup: + specifier: 8.2.0 + version: 8.2.0(@microsoft/api-extractor@7.47.2(@types/node@20.14.11))(@swc/core@1.5.7)(jiti@1.21.0)(postcss@8.4.39)(typescript@5.5.4) + typescript: + specifier: 5.5.4 + version: 5.5.4 + packages/uier-toolbar: devDependencies: '@enterwell/react-hooks': From 4ab4d18c63f8a40a7e6bcb85e98c239cc755ef6a Mon Sep 17 00:00:00 2001 From: GitButler Date: Sat, 27 Jul 2024 17:20:06 +0200 Subject: [PATCH 2/2] GitButler WIP Commit