Skip to content

Commit 9ce246a

Browse files
authored
Merge pull request #9 from sonofmagic/dev
Chore: add test github action
2 parents a0bd6af + 6949bea commit 9ce246a

File tree

22 files changed

+594
-167
lines changed

22 files changed

+594
-167
lines changed

.github/workflows/test.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: test
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
build:
9+
# https://github.com/webpack/webpack/blob/main/.github/workflows/test.yml
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: [ubuntu-latest, windows-latest, macos-latest]
14+
node-version: [10.x, 18.x]
15+
part: [a, b]
16+
include:
17+
- os: ubuntu-latest
18+
node-version: 18.x
19+
part: a
20+
- os: ubuntu-latest
21+
node-version: 16.x
22+
part: a
23+
- os: ubuntu-latest
24+
node-version: 14.x
25+
part: a
26+
- os: ubuntu-latest
27+
node-version: 12.x
28+
part: a
29+
runs-on: ${{ matrix.os }}
30+
steps:
31+
- uses: actions/checkout@v3
32+
- uses: pnpm/action-setup@v2
33+
with:
34+
version: ^7.27.1
35+
- uses: actions/setup-node@v3
36+
with:
37+
node-version: '16'
38+
cache: 'pnpm'
39+
40+
- run: pnpm i
41+
- run: pnpm build:pkg
42+
- run: pnpm test
43+
44+
- uses: codecov/codecov-action@v3
45+
with:
46+
directory: coverage

apps/solid-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"tailwindcss-patch": "workspace:*",
1919
"typescript": "^5.0.4",
2020
"unplugin-tailwindcss-mangle": "workspace:*",
21-
"vite": "^4.3.2",
21+
"vite": "^4.3.3",
2222
"vite-plugin-solid": "^2.5.0"
2323
},
2424
"dependencies": {

apps/vite-lit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
"tailwindcss-patch": "workspace:*",
2828
"typescript": "^5.0.4",
2929
"unplugin-tailwindcss-mangle": "workspace:*",
30-
"vite": "^4.3.2"
30+
"vite": "^4.3.3"
3131
}
3232
}

apps/vite-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
"tailwindcss-patch": "workspace:*",
2424
"typescript": "^5.0.4",
2525
"unplugin-tailwindcss-mangle": "workspace:*",
26-
"vite": "^4.3.2"
26+
"vite": "^4.3.3"
2727
}
2828
}

apps/vite-svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
"tslib": "^2.5.0",
2222
"typescript": "^5.0.4",
2323
"unplugin-tailwindcss-mangle": "workspace:*",
24-
"vite": "^4.3.2"
24+
"vite": "^4.3.3"
2525
}
2626
}

apps/vite-vanilla/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
"tailwindcss-patch": "workspace:*",
1717
"typescript": "^5.0.4",
1818
"unplugin-tailwindcss-mangle": "workspace:*",
19-
"vite": "^4.3.2"
19+
"vite": "^4.3.3"
2020
}
2121
}

apps/vite-vue/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"tailwindcss-patch": "workspace:*",
2121
"typescript": "^5.0.4",
2222
"unplugin-tailwindcss-mangle": "workspace:*",
23-
"vite": "^4.3.2",
24-
"vue-tsc": "^1.4.4"
23+
"vite": "^4.3.3",
24+
"vue-tsc": "^1.6.0"
2525
}
2626
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"devDependencies": {
2020
"@icebreakers/eslint-config-ts": "^1.0.4",
21-
"@icebreakers/rollup": "^0.3.0",
21+
"@icebreakers/rollup": "^0.4.0",
2222
"@icebreakers/tsconfig": "^0.0.6",
2323
"@tsconfig/recommended": "^1.0.2",
2424
"@types/jest": "^29.5.1",

packages/tailwindcss-patch/package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tailwindcss-patch",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "patch tailwindcss for exposing context",
55
"main": "dist/index.js",
66
"types": "dist/types/index.d.ts",
@@ -18,9 +18,6 @@
1818
"dev:tsc": "tsc -p tsconfig.json --sourceMap",
1919
"build:tsc": "tsc -p tsconfig.json",
2020
"test": "npm run patch && jest",
21-
"prepare": "echo prepare",
22-
"postinstall": "echo postinstall",
23-
"preinstall": "npx only-allow pnpm",
2421
"patch": "ts-node src/cli.ts"
2522
},
2623
"keywords": [
@@ -35,7 +32,7 @@
3532
},
3633
"devDependencies": {
3734
"@types/babel__generator": "^7.6.4",
38-
"@types/babel__traverse": "^7.18.4",
35+
"@types/babel__traverse": "^7.18.5",
3936
"@types/resolve": "^1.20.2",
4037
"@types/semver": "^7.3.13",
4138
"defu": "^6.1.2",

packages/unplugin-tailwindcss-mangle/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,11 @@ export interface IClassGeneratorOptions {
116116

117117
### include / exclude
118118

119-
type: glob string
119+
Type: `string | string[]`
120120

121-
allow you to control the mangle range of bundles.
121+
Default: `undefined`
122+
123+
`glob string` allow you to control the mangle range of bundles.
122124

123125
## Notice
124126

0 commit comments

Comments
 (0)