Skip to content

Commit

Permalink
chore(deps): upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
sonofmagic committed Oct 19, 2023
1 parent 867e1dd commit f079033
Show file tree
Hide file tree
Showing 8 changed files with 807 additions and 754 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,30 @@
"@tailwindcss-mangle/core": "workspace:*",
"@tailwindcss-mangle/shared": "workspace:*",
"@tsconfig/recommended": "^1.0.3",
"@types/lodash-es": "^4.17.9",
"@types/node": "^20.6.3",
"@vitest/coverage-v8": "^0.34.5",
"@types/lodash-es": "^4.17.10",
"@types/node": "^20.8.7",
"@vitest/coverage-v8": "^0.34.6",
"bumpp": "^9.2.0",
"cross-env": "^7.0.3",
"dedent": "^1.5.1",
"defu": "^6.1.2",
"del": "^7.1.0",
"eslint": "^8.49.0",
"eslint": "^8.51.0",
"eslint-config-icebreaker": "^1.2.2",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-prettier": "^5.0.1",
"lodash-es": "^4.17.21",
"only-allow": "^1.1.1",
"only-allow": "^1.2.1",
"prettier": "^3.0.3",
"rollup": "^3.29.2",
"rollup": "^4.1.4",
"tailwindcss-patch": "workspace:*",
"ts-node": "^10.9.1",
"tslib": "^2.6.2",
"tsup": "^7.2.0",
"typescript": "^5.2.2",
"unbuild": "^2.0.0",
"unplugin-tailwindcss-mangle": "workspace:*",
"vitest": "^0.34.5"
"vitest": "^0.34.6"
},
"engines": {
"node": ">=16.6.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
},
"dependencies": {
"@tailwindcss-mangle/shared": "workspace:^",
"c12": "^1.4.2",
"c12": "^1.5.1",
"dedent": "^1.5.1"
},
"homepage": "https://github.com/sonofmagic/tailwindcss-mangle",
Expand Down
14 changes: 7 additions & 7 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,23 @@
},
"dependencies": {
"@ast-core/escape": "^1.0.1",
"@babel/core": "^7.22.20",
"@babel/core": "^7.23.2",
"@babel/helper-plugin-utils": "^7.22.5",
"@babel/preset-typescript": "^7.22.15",
"@babel/types": "^7.22.19",
"@babel/preset-typescript": "^7.23.2",
"@babel/types": "^7.23.0",
"@tailwindcss-mangle/config": "workspace:^",
"@tailwindcss-mangle/shared": "workspace:^",
"fast-sort": "^3.4.0",
"magic-string": "^0.30.3",
"magic-string": "^0.30.5",
"micromatch": "^4.0.5",
"parse5": "^7.1.2",
"postcss": "^8.4.30",
"postcss": "^8.4.31",
"postcss-selector-parser": "^6.0.13"
},
"devDependencies": {
"@parse5/tools": "^0.3.0",
"@types/babel__core": "^7.20.2",
"@types/micromatch": "^4.0.2",
"@types/babel__core": "^7.20.3",
"@types/micromatch": "^4.0.4",
"@vue/compiler-core": "^3.3.4",
"@vue/compiler-sfc": "^3.3.4"
},
Expand Down
20 changes: 10 additions & 10 deletions packages/tailwindcss-patch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,24 @@
}
},
"devDependencies": {
"@types/babel__generator": "^7.6.4",
"@types/babel__traverse": "^7.20.1",
"@types/resolve": "^1.20.2",
"@types/semver": "^7.5.2",
"@types/babel__generator": "^7.6.6",
"@types/babel__traverse": "^7.20.3",
"@types/resolve": "^1.20.4",
"@types/semver": "^7.5.4",
"pkg-types": "^1.0.3",
"tailwindcss": "^3.3.3"
},
"dependencies": {
"@babel/generator": "^7.22.15",
"@babel/parser": "^7.22.16",
"@babel/traverse": "^7.22.19",
"@babel/types": "^7.22.19",
"@babel/generator": "^7.23.0",
"@babel/parser": "^7.23.0",
"@babel/traverse": "^7.23.2",
"@babel/types": "^7.23.0",
"@tailwindcss-mangle/config": "workspace:^",
"cac": "^6.7.14",
"jiti": "^1.20.0",
"lilconfig": "^2.1.0",
"postcss": "^8.4.29",
"resolve": "^1.22.5",
"postcss": "^8.4.31",
"resolve": "^1.22.8",
"semver": "^7.5.4"
},
"homepage": "https://github.com/sonofmagic/tailwindcss-mangle",
Expand Down
17 changes: 17 additions & 0 deletions packages/tailwindcss-patch/test/__snapshots__/postcss.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -489,3 +489,20 @@ video {
text-decoration-line: underline;
}"
`;

exports[`postcss > rpx case 0 1`] = `
"*, ::before, ::after {--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / 0.5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia:
}::backdrop {--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / 0.5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia:
}.m-\\\\[23\\\\.43rpx\\\\] {margin: 23.43rpx
}.h-\\\\[12rpx\\\\] {height: 12rpx
}.max-h-\\\\[12rpx\\\\] {max-height: 12rpx
}.min-h-\\\\[12rpx\\\\] {min-height: 12rpx
}.w-\\\\[12rpx\\\\] {width: 12rpx
}.min-w-\\\\[12rpx\\\\] {min-width: 12rpx
}.max-w-\\\\[12rpx\\\\] {max-width: 12rpx
}.basis-\\\\[32rpx\\\\] {flex-basis: 32rpx
}.space-y-\\\\[12\\\\.0rpx\\\\] > :not([hidden]) ~ :not([hidden]) {--tw-space-y-reverse: 0;margin-top: calc(12.0rpx * calc(1 - var(--tw-space-y-reverse)));margin-bottom: calc(12.0rpx * var(--tw-space-y-reverse))
}.p-\\\\[0\\\\.32rpx\\\\] {padding: 0.32rpx
}.text-\\\\[32rpx\\\\] {font-size: 32rpx
}"
`;
36 changes: 36 additions & 0 deletions packages/tailwindcss-patch/test/postcss.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import path from 'node:path'
import postcss from 'postcss'
import type { Config } from 'tailwindcss'
import { appRoot } from './utils'
import { processTailwindcss } from '@/core/postcss'
import { TailwindcssPatcher } from '@/core/tw-patcher'
Expand All @@ -18,4 +20,38 @@ describe('postcss', () => {
})
expect(set.size).toBe(4)
})

it('rpx case 0', async () => {
const config: Config = {
content: [
'p-[0.32rpx]',
'm-[23.43rpx]',
'space-y-[12.0rpx]',
'w-[12rpx]',
'min-w-[12rpx]',
'max-w-[12rpx]',
'h-[12rpx]',
'min-h-[12rpx]',
'max-h-[12rpx]',
'basis-[32rpx]',
'text-[32rpx]'
].map((x) => {
return {
raw: x
}
}),
corePlugins: {
preflight: false
}
}
const { css } = await postcss([
require('tailwindcss')({
config
})
]).process('@tailwind base;@tailwind components;@tailwind utilities;', {
from: undefined
})

expect(css).toMatchSnapshot()
})
})
10 changes: 5 additions & 5 deletions packages/unplugin-tailwindcss-mangle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,26 +74,26 @@
"@tailwindcss-mangle/config": "workspace:^",
"@tailwindcss-mangle/core": "workspace:^",
"@tailwindcss-mangle/shared": "workspace:^",
"magic-string": "^0.30.3",
"magic-string": "^0.30.5",
"unplugin": "^1.5.0"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"devDependencies": {
"@types/babel__helper-plugin-utils": "^7.10.1",
"@types/babel__helper-plugin-utils": "^7.10.2",
"astro": "^2.10.12",
"css-loader": "^6.8.1",
"html-webpack-plugin": "^5.5.3",
"mini-css-extract-plugin": "^2.7.6",
"normalize-newline": "^4.1.0",
"postcss": "^8.4.30",
"postcss": "^8.4.31",
"postcss-loader": "^7.3.3",
"tailwindcss": "^3.3.3",
"tailwindcss-patch": "workspace:^",
"vite": "^4.4.9",
"webpack": "^5.88.2",
"vite": "^4.5.0",
"webpack": "^5.89.0",
"webpack-build-utils": "^0.0.4"
},
"homepage": "https://github.com/sonofmagic/tailwindcss-mangle",
Expand Down
Loading

0 comments on commit f079033

Please sign in to comment.