Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 committed Jul 24, 2024
1 parent b1ba898 commit b16ffc3
Show file tree
Hide file tree
Showing 7 changed files with 1,903 additions and 1,508 deletions.
68 changes: 35 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,39 +111,41 @@
- You can use config to control some matching rules, such as strict-splicing, or the generated calculation result is `-[10px]` or `-10px`
- attributifyMode defaults true, turn on the ability to automatically convert tailwind attributes into class, just like the writing of attributify of unuchs, which automatically converts after saving.

``` typescript
"properties": {
"tailwindMagic.variantGroup": {
"type": "boolean",
"default": true,
"description": "Enable/disable transform hover:(x1 x2) to hover:x1 hover:x2"
},
"tailwindMagic.strictMode": {
"type": "boolean",
"default": false,
"description": "if true bg#fff or bgrgba(0,0,0,.0) will transform bg-[#fff] or bg-[rgba(0,0,0,.0)]"
},
"tailwindMagic.attributifyMode": {
"type": "boolean",
"default": true,
"description": "if true the attribute bg#fff will transform class=\"bg-[#fff]\""
},
"tailwindMagic.presets": {
"type": "array",
"default": [],
"description": "set transform rules"
},
"tailwindMagic.code": {
"type": "boolean",
"default": "",
"description": "activation code"
},
"tailwindMagic.aggressiveMode": {
"type": "boolean",
"default": false,
"description": "After turning on aggressive mode, it will be more abbreviated, such as t1 -> top-1"
}
}
``` json
{
"properties": {
"tailwindMagic.variantGroup": {
"type": "boolean",
"default": true,
"description": "Enable/disable transform hover:(x1 x2) to hover:x1 hover:x2"
},
"tailwindMagic.strictMode": {
"type": "boolean",
"default": false,
"description": "if true bg#fff or bgrgba(0,0,0,.0) will transform bg-[#fff] or bg-[rgba(0,0,0,.0)]"
},
"tailwindMagic.attributifyMode": {
"type": "boolean",
"default": true,
"description": "if true the attribute bg#fff will transform class=\"bg-[#fff]\""
},
"tailwindMagic.presets": {
"type": "array",
"default": [],
"description": "set transform rules"
},
"tailwindMagic.code": {
"type": "boolean",
"default": "",
"description": "activation code"
},
"tailwindMagic.aggressiveMode": {
"type": "boolean",
"default": false,
"description": "After turning on aggressive mode, it will be more abbreviated, such as t1 -> top-1"
}
}
}
```

## :coffee:
Expand Down
68 changes: 35 additions & 33 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,39 +110,41 @@
- 您可以使用配置来控制一些匹配规则,例如严格拆分,或者生成的计算结果是`-[10px]``-10px`
- attributifyMode 默认 true,开启tailwind 属性自动转换成class的能力,就像unocss的attributify的写法,保存后自动转换

``` typescript
"properties": {
"tailwindMagic.variantGroup": {
"type": "boolean",
"default": true,
"description": "Enable/disable transform hover:(x1 x2) to hover:x1 hover:x2"
},
"tailwindMagic.strictMode": {
"type": "boolean",
"default": false,
"description": "if true bg#fff or bgrgba(0,0,0,.0) will transform bg-[#fff] or bg-[rgba(0,0,0,.0)]"
},
"tailwindMagic.attributifyMode": {
"type": "boolean",
"default": true,
"description": "if true the attribute bg#fff will transform class=\"bg-[#fff]\""
},
"tailwindMagic.presets": {
"type": "array",
"default": [],
"description": "set transform rules"
},
"tailwindMagic.code": {
"type": "boolean",
"default": "",
"description": "activation code"
},
"tailwindMagic.aggressiveMode": {
"type": "boolean",
"default": false,
"description": "开启激进模式后,可以更加精简一些规则的写法,比如 t1 -> top-1"
}
}
``` json
{
"properties": {
"tailwindMagic.variantGroup": {
"type": "boolean",
"default": true,
"description": "Enable/disable transform hover:(x1 x2) to hover:x1 hover:x2"
},
"tailwindMagic.strictMode": {
"type": "boolean",
"default": false,
"description": "if true bg#fff or bgrgba(0,0,0,.0) will transform bg-[#fff] or bg-[rgba(0,0,0,.0)]"
},
"tailwindMagic.attributifyMode": {
"type": "boolean",
"default": true,
"description": "if true the attribute bg#fff will transform class=\"bg-[#fff]\""
},
"tailwindMagic.presets": {
"type": "array",
"default": [],
"description": "set transform rules"
},
"tailwindMagic.code": {
"type": "boolean",
"default": "",
"description": "activation code"
},
"tailwindMagic.aggressiveMode": {
"type": "boolean",
"default": false,
"description": "开启激进模式后,可以更加精简一些规则的写法,比如 t1 -> top-1"
}
}
}
```

## :coffee:
Expand Down
30 changes: 13 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "vscode-tailwind-magic",
"displayName": "vscode-tailwind-magic",
"version": "1.0.42",
"packageManager": "pnpm@8.1.1",
"packageManager": "pnpm@8.15.9",
"description": "vscode-tailwind-magic",
"author": "Simon He <https://github.com/Simon-He95>",
"license": "MIT",
Expand Down Expand Up @@ -86,9 +86,9 @@
]
},
"scripts": {
"dev": "tsup src/index.ts --external vscode",
"dev": "tsup src/index.ts --external vscode,jsonc-parser",
"test": "vitest",
"build": "tsup src/index.ts --external vscode --minify",
"build": "tsup src/index.ts --external vscode,jsonc-parser --minify",
"pack": "vsce package --no-dependencies",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
Expand All @@ -97,30 +97,26 @@
"release": "pnpm run build && bumpp && pnpm run publish"
},
"devDependencies": {
"@antfu/eslint-config": "^2.8.0",
"@types/node": "^18.15.11",
"@types/vscode": "^1.77.0",
"@unocss/core": "^0.61.3",
"@unocss/preset-attributify": "^0.61.3",
"@unocss/preset-uno": "^0.61.3",
"@antfu/eslint-config": "^2.23.2",
"@types/node": "^18.19.42",
"@types/vscode": "^1.91.0",
"@vscode-use/utils": "0.1.10",
"@vue/compiler-sfc": "^3.3.4",
"axios": "^1.6.3",
"bumpp": "^9.1.0",
"@vue/compiler-sfc": "3.3.4",
"bumpp": "^9.4.1",
"eslint": "^8.57.0",
"esno": "^0.16.3",
"fast-glob": "^3.3.2",
"jiti": "^1.21.6",
"local-pkg": "^0.5.0",
"node-machine-id": "^1.1.12",
"pnpm": "^8.1.1",
"pnpm": "^8.15.9",
"rimraf": "^4.4.1",
"sucrase": "^3.35.0",
"tailwindcss": "^3.3.3",
"tailwindcss": "^3.4.6",
"transform-to-tailwindcss-core": "^0.0.19",
"tsup": "^6.7.0",
"typescript": "^5.0.3",
"vitest": "^0.29.8",
"tsup": "^8.2.2",
"typescript": "^5.5.4",
"vitest": "^2.0.4",
"vsce": "^2.15.0"
}
}
Loading

0 comments on commit b16ffc3

Please sign in to comment.