Skip to content

Commit 675383b

Browse files
authored
Merge pull request #12 from sonofmagic/dev
Release: unplugin 0.1.3
2 parents f027cd7 + f2d7ef3 commit 675383b

File tree

24 files changed

+835
-335
lines changed

24 files changed

+835
-335
lines changed

.npmrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
registry=http://registry.npmmirror.com/
22
shamefully-hoist=true
3-
git-checks=false
3+
git-checks=false
4+
hoist-pattern[]=!tailwindcss

apps/next-app/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
"prepare": "tw-patch"
1111
},
1212
"dependencies": {
13-
"@types/node": "18.16.2",
13+
"@types/node": "18.16.3",
1414
"@types/react": "18.2.0",
1515
"@types/react-dom": "18.2.1",
1616
"autoprefixer": "10.4.14",
1717
"eslint": "8.39.0",
18-
"eslint-config-next": "13.3.1",
19-
"next": "13.3.1",
18+
"eslint-config-next": "13.3.2",
19+
"next": "13.3.2",
2020
"postcss": "8.4.23",
2121
"react": "18.2.0",
2222
"react-dom": "18.2.0",

apps/nuxt-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"prepare": "tw-patch"
1111
},
1212
"devDependencies": {
13-
"@types/node": "^18.16.2",
13+
"@types/node": "^18.16.3",
1414
"autoprefixer": "^10.4.14",
1515
"nuxt": "^3.4.3",
1616
"postcss": "^8.4.23",

apps/webpack5-vue3/src/App.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<p
55
class="fixed left-0 top-0 flex w-full justify-center border-b border-gray-300 bg-gradient-to-b from-zinc-200 pb-6 pt-8 backdrop-blur-2xl dark:border-neutral-800 dark:bg-zinc-800/30 dark:from-inherit lg:static lg:w-auto lg:rounded-xl lg:border lg:bg-gray-200 lg:p-4 lg:dark:bg-zinc-800/30">
66
Get started by editing&nbsp;
7-
<code class="font-mono font-bold">pages/index.tsx</code>
7+
<code class="font-mono font-bold text-[#543] bg-[url('//www.xxx.com/img/hero-pattern.svg')]">pages/index.tsx</code>
88
</p>
99
<div
1010
class="fixed bottom-0 left-0 flex h-48 w-full items-end justify-center bg-gradient-to-t from-white via-white dark:from-black dark:via-black lg:static lg:h-auto lg:w-auto lg:bg-none">
@@ -38,7 +38,7 @@
3838
<a href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app"
3939
class="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
4040
target="_blank" rel="noopener noreferrer">
41-
<h2 class="mb-3 text-2xl font-semibold">
41+
<h2 class="mb-3 text-2xl font-semibold text-[red]">
4242
Learn <span
4343
class="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">-&gt;</span>
4444
</h2>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424
"@icebreakers/tsconfig": "^0.0.6",
2525
"@tsconfig/recommended": "^1.0.2",
2626
"@types/jest": "^29.5.1",
27-
"@types/node": "^18.16.2",
27+
"@types/node": "^18.16.3",
2828
"cross-env": "^7.0.3",
2929
"eslint": "^8.39.0",
3030
"jest": "^29.5.0",
3131
"only-allow": "^1.1.1",
3232
"prettier": "^2.8.8",
33-
"rollup": "^3.21.0",
33+
"rollup": "^3.21.2",
3434
"ts-jest": "^29.1.0",
3535
"ts-node": "^10.9.1",
3636
"turbo": "^1.9.3",

packages/tailwindcss-patch/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tailwindcss-patch",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "patch tailwindcss for exposing context",
55
"main": "dist/index.js",
66
"types": "dist/types/index.d.ts",
@@ -41,10 +41,10 @@
4141
"tailwindcss": "^3.3.2"
4242
},
4343
"dependencies": {
44-
"@babel/generator": "^7.21.4",
45-
"@babel/parser": "^7.21.4",
46-
"@babel/traverse": "^7.21.4",
47-
"@babel/types": "^7.21.4",
44+
"@babel/generator": "^7.21.5",
45+
"@babel/parser": "^7.21.5",
46+
"@babel/traverse": "^7.21.5",
47+
"@babel/types": "^7.21.5",
4848
"resolve": "^1.22.2",
4949
"semver": "^7.5.0"
5050
},

packages/tailwindcss-patch/src/exposeContext.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import type { Rule } from 'postcss'
44
import { requireResolve } from './utils'
55

66
export function getTailwindcssEntry(basedir: string = process.cwd()) {
7-
return requireResolve('tailwindcss', {
8-
basedir
9-
})
7+
return requireResolve('tailwindcss')
108
}
119

1210
export function getContexts(basedir?: string) {

packages/tailwindcss-patch/src/patcher.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ export function getInstalledPkgJsonPath(options: PatchOptions = {}) {
1212
try {
1313
// const cwd = process.cwd()
1414
const tmpJsonPath = requireResolve(`tailwindcss/package.json`, {
15-
paths: options.paths,
16-
basedir: options.basedir ?? process.cwd()
15+
paths: options.paths
1716
})
1817

1918
return tmpJsonPath

packages/unplugin-tailwindcss-mangle/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unplugin-tailwindcss-mangle",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "mangle tailwindcss utilities class plugin. support vite and webpack!",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",
@@ -68,12 +68,12 @@
6868
"author": "SonOfMagic <[email protected]>",
6969
"license": "MIT",
7070
"dependencies": {
71-
"@babel/core": "^7.21.4",
72-
"@babel/types": "^7.21.4",
71+
"@babel/core": "^7.21.5",
72+
"@babel/types": "^7.21.5",
7373
"micromatch": "^4.0.5",
7474
"parse5": "^7.1.2",
7575
"postcss": "^8.4.23",
76-
"postcss-selector-parser": "^6.0.11",
76+
"postcss-selector-parser": "^6.0.12",
7777
"semver": "^7.5.0",
7878
"tailwindcss-patch": "workspace:^",
7979
"unplugin": "^1.3.1"
@@ -89,6 +89,7 @@
8989
"@types/micromatch": "^4.0.2",
9090
"@types/semver": "^7.3.13",
9191
"pkg-types": "^1.0.2",
92+
"simple-functional-loader": "^1.2.1",
9293
"tailwindcss": "^3.3.2",
9394
"tslib": "^2.5.0",
9495
"vite": "^4.3.3",

packages/unplugin-tailwindcss-mangle/rollup.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export default createRollupConfig({
77
nuxt: 'src/nuxt.ts',
88
rollup: 'src/rollup.ts',
99
vite: 'src/vite.ts',
10-
webpack: 'src/webpack.ts'
10+
webpack: 'src/webpack.ts',
11+
'twm-css': 'src/loader/twm-css.ts',
12+
'twm-js': 'src/loader/twm-js.ts'
1113
},
1214
// external: ['tailwindcss'],
1315
output: [

0 commit comments

Comments
 (0)