Skip to content

Commit ccae548

Browse files
authored
Release: 2.1.0 (#43)
* chore: commit app config * feat: commit test case * chore: add ahocorasick * chore(deps): upgrade * chore: put a monorepo into root monorepo * chore: nuxt demo commit * chore: remove old config file and add extract script * chore: add ac test case * feat: use ahoCorasick to replace code * chore: fallback to orginal * chore: commit useAC * chore: commit tsup config * chore: release 2.1.0 * chore: commit normalizeNewline
1 parent 3839d95 commit ccae548

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+20401
-15097
lines changed

.vscode/launch.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@
9090
},
9191
{
9292
"command": "npm run build",
93-
"name": "Debug nuxt-app",
93+
"name": "[nuxt-app] build",
9494
"request": "launch",
9595
"type": "node-terminal",
9696
"cwd": "${workspaceFolder}/apps/nuxt-app"
9797
},
9898
{
9999
"command": "npm run build",
100-
"name": "Debug next-app",
100+
"name": "[next-app] build",
101101
"request": "launch",
102102
"type": "node-terminal",
103103
"cwd": "${workspaceFolder}/apps/next-app"

apps/.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
shamefully-hoist=true

apps/next-app/package.json

+6-8
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
"build": "next build",
88
"start": "next start",
99
"lint": "next lint",
10-
"prepare": "tw-patch install"
10+
"prepare": "tw-patch install",
11+
"tw-extract": "tw-patch extract"
1112
},
1213
"dependencies": {
13-
"@types/node": "20.4.9",
14+
"@types/node": "20.4.10",
1415
"@types/react": "18.2.20",
1516
"@types/react-dom": "18.2.7",
1617
"autoprefixer": "10.4.14",
17-
"eslint": "8.46.0",
18+
"eslint": "8.47.0",
1819
"eslint-config-next": "13.4.13",
1920
"next": "13.4.13",
2021
"postcss": "8.4.27",
@@ -23,8 +24,5 @@
2324
"tailwindcss": "3.3.3",
2425
"typescript": "5.1.6"
2526
},
26-
"devDependencies": {
27-
"tailwindcss-patch": "workspace:*",
28-
"unplugin-tailwindcss-mangle": "workspace:*"
29-
}
30-
}
27+
"devDependencies": {}
28+
}

apps/nuxt-app/nuxt.config.ts

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export default defineNuxtConfig({
1616
[
1717
nuxtPlugin,
1818
{
19-
classSetOutput: true,
2019
classMapOutput: true
2120
}
2221
]

apps/nuxt-app/package.json

+6-7
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@
66
"dev": "nuxt dev",
77
"generate": "nuxt generate",
88
"preview": "nuxt preview",
9-
"_postinstall": "nuxt prepare",
10-
"prepare": "tw-patch install"
9+
"postinstall": "nuxt prepare",
10+
"prepare": "tw-patch install",
11+
"tw-extract": "tw-patch extract"
1112
},
1213
"devDependencies": {
13-
"@types/node": "^20.4.9",
14+
"@types/node": "^20.4.10",
1415
"autoprefixer": "^10.4.14",
1516
"nuxt": "^3.6.5",
1617
"postcss": "^8.4.27",
17-
"tailwindcss": "^3.3.3",
18-
"tailwindcss-patch": "workspace:*",
19-
"unplugin-tailwindcss-mangle": "workspace:*"
18+
"tailwindcss": "^3.3.3"
2019
}
21-
}
20+
}

apps/package.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "apps",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"build": "pnpm run -r build",
8+
"extract": "pnpm run -r tw-extract",
9+
"preview": "pnpm run -r preview"
10+
},
11+
"keywords": [],
12+
"author": "",
13+
"license": "ISC",
14+
"dependencies": {
15+
"@tailwindcss-mangle/config": "link:../packages/config",
16+
"@tailwindcss-mangle/core": "link:../packages/core",
17+
"@tailwindcss-mangle/shared": "link:../packages/shared",
18+
"tailwindcss-patch": "link:../packages/tailwindcss-patch",
19+
"unplugin-tailwindcss-mangle": "link:../packages/unplugin-tailwindcss-mangle"
20+
}
21+
}

0 commit comments

Comments
 (0)