Update package dependencies and configurations

This commit is contained in:
codecalm 2025-12-26 16:58:47 +01:00
parent c6a429a3be
commit ff9f1f4bd1
11 changed files with 828 additions and 428 deletions

View File

@ -119,8 +119,8 @@ export const getAllIcons = (withContent = false, withObject = false) => {
types.forEach((type) => { types.forEach((type) => {
icons[type] = globSync(slash(path.join(ICONS_SRC_DIR, `${type}/*.svg`))) icons[type] = globSync(slash(path.join(ICONS_SRC_DIR, `${type}/*.svg`)))
.sort((a, b) => a.localeCompare(b))
.slice(0, limit) .slice(0, limit)
.sort()
.map((i) => { .map((i) => {
const { data, content } = parseMatter(i), const { data, content } = parseMatter(i),
name = basename(i, '.svg'); name = basename(i, '.svg');

View File

@ -2,7 +2,6 @@ import { visualizer } from 'rollup-plugin-visualizer'
import license from 'rollup-plugin-license' import license from 'rollup-plugin-license'
import esbuild from 'rollup-plugin-esbuild' import esbuild from 'rollup-plugin-esbuild'
import { nodeResolve } from '@rollup/plugin-node-resolve'; import { nodeResolve } from '@rollup/plugin-node-resolve';
import bundleSize from '@atomico/rollup-plugin-sizes';
const getRollupPlugins = (pkg, minify) => { const getRollupPlugins = (pkg, minify) => {
return [ return [
@ -19,7 +18,6 @@ const getRollupPlugins = (pkg, minify) => {
This source code is licensed under the ${pkg.license} license. This source code is licensed under the ${pkg.license} license.
See the LICENSE file in the root directory of this source tree.` See the LICENSE file in the root directory of this source tree.`
}), }),
bundleSize(),
visualizer({ visualizer({
sourcemap: false, sourcemap: false,
filename: `stats/${pkg.name}${minify ? '-min' : ''}.html` filename: `stats/${pkg.name}${minify ? '-min' : ''}.html`

44
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,44 @@
name: Build
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10.12.1
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Build
env:
ICONS_LIMIT: 100
run: turbo build

View File

@ -49,7 +49,7 @@ jobs:
- uses: pnpm/action-setup@v4 - uses: pnpm/action-setup@v4
name: Install pnpm name: Install pnpm
with: with:
version: 10.26.1 version: 10.12.1
- name: Get pnpm store directory - name: Get pnpm store directory
shell: bash shell: bash

View File

@ -54,10 +54,9 @@
}, },
"devDependencies": { "devDependencies": {
"@11ty/eleventy": "^2.0.1", "@11ty/eleventy": "^2.0.1",
"@atomico/rollup-plugin-sizes": "^1.1.4",
"@release-it-plugins/workspaces": "^4.2.1", "@release-it-plugins/workspaces": "^4.2.1",
"@rollup/plugin-node-resolve": "^16.0.1", "@rollup/plugin-node-resolve": "^16.0.1",
"@testing-library/jest-dom": "^6.4.8", "@testing-library/jest-dom": "catalog:",
"adm-zip": "^0.5.16", "adm-zip": "^0.5.16",
"cheerio": "^1.0.0", "cheerio": "^1.0.0",
"csv-parser": "^3.0.0", "csv-parser": "^3.0.0",
@ -68,30 +67,30 @@
"glob": "10.3.16", "glob": "10.3.16",
"gray-matter": "^4.0.3", "gray-matter": "^4.0.3",
"html-minifier": "^4.0.0", "html-minifier": "^4.0.0",
"jest-serializer-html": "^7.1.0", "jest-serializer-html": "catalog:",
"jsdom": "^24.0.0", "jsdom": "catalog:",
"minimist": "1.2.8", "minimist": "1.2.8",
"openai": "^4.73.1", "openai": "^4.73.1",
"parse-svg-path": "^0.1.2", "parse-svg-path": "^0.1.2",
"prettier": "^3.2.5", "prettier": "^3.2.5",
"release-it": "17.1.1", "release-it": "17.1.1",
"rollup": "^4.12.1", "rollup": "catalog:",
"rollup-plugin-dts": "^6.1.1", "rollup-plugin-dts": "^6.1.1",
"rollup-plugin-esbuild": "^6.1.1", "rollup-plugin-esbuild": "^6.1.1",
"rollup-plugin-filesize": "10.0.0", "rollup-plugin-filesize": "10.0.0",
"rollup-plugin-license": "^3.2.0", "rollup-plugin-license": "^3.2.0",
"rollup-plugin-peer-deps-external": "2.2.4", "rollup-plugin-peer-deps-external": "2.2.4",
"rollup-plugin-visualizer": "^5.12.0", "rollup-plugin-visualizer": "^6.0.5",
"sass": "^1.71.1", "sass": "^1.71.1",
"slash": "^5.1.0", "slash": "^5.1.0",
"svg-outline-stroke": "1.3.1", "svg-outline-stroke": "1.3.1",
"svgo": "^3.2.0", "svgo": "^4.0.0",
"svgpath": "^2.6.0", "svgpath": "^2.6.0",
"svgson": "^5.3.1", "svgson": "^5.3.1",
"turbo": "^2.6.3", "turbo": "^2.7.2",
"typescript": "^5.3.3", "typescript": "catalog:",
"vite": "^7.3.0", "vite": "catalog:",
"vitest": "^4.0.16" "vitest": "catalog:"
}, },
"release-it": { "release-it": {
"plugins": { "plugins": {
@ -114,6 +113,7 @@
"release": true "release": true
} }
}, },
"packageManager": "pnpm@10.12.1",
"pnpm": { "pnpm": {
"ignoredBuiltDependencies": [ "ignoredBuiltDependencies": [
"@parcel/watcher", "@parcel/watcher",

View File

@ -65,17 +65,12 @@
}, },
"devDependencies": { "devDependencies": {
"@sveltejs/package": "^2.3.7", "@sveltejs/package": "^2.3.7",
"@sveltejs/vite-plugin-svelte": "^5.0.3", "@sveltejs/vite-plugin-svelte": "^5.1.1",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/svelte": "^5.2.9", "@testing-library/svelte": "^5.2.9",
"@tsconfig/svelte": "^5.0.4", "@tsconfig/svelte": "^5.0.4",
"jest-serializer-html": "^7.1.0",
"jsdom": "^25.0.1",
"svelte": "^5.0.0", "svelte": "^5.0.0",
"svelte-check": "^4.3.4", "svelte-check": "^4.3.4",
"typescript": "^5.7.3", "vite": "^6.0.0"
"vite": "^7.2.7",
"vitest": "^3.0.8"
}, },
"peerDependencies": { "peerDependencies": {
"svelte": "^5.0.0" "svelte": "^5.0.0"

View File

@ -54,12 +54,13 @@
}, },
"devDependencies": { "devDependencies": {
"@sveltejs/package": "^2.2.7", "@sveltejs/package": "^2.2.7",
"@sveltejs/vite-plugin-svelte": "^3.0.2", "@sveltejs/vite-plugin-svelte": "^3.1.2",
"@testing-library/svelte": "^4.2.1", "@testing-library/svelte": "^4.2.1",
"@tsconfig/svelte": "^5.0.2", "@tsconfig/svelte": "^5.0.2",
"svelte": "^4.2.12", "svelte": "^4.2.12",
"svelte-check": "^3.6.5", "svelte-check": "^3.6.5",
"svelte-preprocess": "^5.1.3" "svelte-preprocess": "^5.1.3",
"vite": "^5.4.0"
}, },
"peerDependencies": { "peerDependencies": {
"svelte": ">=3 <6 || >=5.0.0-next.0" "svelte": ">=3 <6 || >=5.0.0-next.0"

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,16 @@
packages: packages:
- 'packages/*' - 'packages/*'
- 'test/*' - 'test/*'
catalog:
typescript: ^5.3.3
vite: ^7.3.0
vitest: ^4.0.16
jest-serializer-html: ^7.1.0
jsdom: ^25.0.1
"@testing-library/jest-dom": ^6.6.3
rollup: ^4.12.1
"@types/react": 18.2.60
"@testing-library/react": ^14.2.1
react: 18.2.0
"@vitejs/plugin-react": ^4.2.1

View File

@ -14,10 +14,11 @@
"@tabler/icons-svelte": "workspace:*" "@tabler/icons-svelte": "workspace:*"
}, },
"devDependencies": { "devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.0.2", "@sveltejs/vite-plugin-svelte": "^3.1.2",
"@tsconfig/svelte": "^5.0.2", "@tsconfig/svelte": "^5.0.2",
"svelte": "^4.2.12", "svelte": "^4.2.12",
"svelte-check": "^3.6.5", "svelte-check": "^3.6.5",
"tslib": "^2.6.2" "tslib": "^2.6.2",
"vite": "^5.4.0"
} }
} }

View File

@ -1,5 +1,6 @@
{ {
"$schema": "https://turbo.build/schema.json", "$schema": "https://turbo.build/schema.json",
"globalEnv": ["ICONS_LIMIT"],
"tasks": { "tasks": {
"build": { "build": {
"outputs": ["dist/**", "src/icons/**", "icons/**", "icons.json", "tabler-nodes-*.json", "categories/**", "docs/**"], "outputs": ["dist/**", "src/icons/**", "icons/**", "icons.json", "tabler-nodes-*.json", "categories/**", "docs/**"],