Skip to content

Commit

Permalink
feat: updated to latest tailwind plugin structure
Browse files Browse the repository at this point in the history
BREAKING CHANGE: May require change to your 1tailwind.config.js/ts`
  • Loading branch information
JohnCampionJr committed Jul 5, 2023
1 parent be7fe46 commit d54d4a6
Show file tree
Hide file tree
Showing 14 changed files with 1,920 additions and 882 deletions.
22 changes: 20 additions & 2 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"]
"extends": [
"config:base",
"group:allNonMajor",
":semanticCommitTypeAll(chore)"
],
"meteor": {
"enabled": false
},
"rangeStrategy": "bump",
"npm": {
"commitMessageTopic": "{{prettyDepType}} {{depName}}"
},
"packageRules": [
{
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"automerge": true,
"automergeSchedule": ["after 1am and before 2am"],
"schedule": ["after 2am and before 3am"]
}
]
}
40 changes: 35 additions & 5 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,52 @@ on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14, 16]
node-version: [16, 18, 20]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
env:
CI: true

- name: Install pnpm
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: 8
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm run build

- name: Test
run: pnpm test
18 changes: 18 additions & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "http://json.schemastore.org/swcrc",
"module": {
"type": "commonjs",

// These are defaults.
"strict": false,
"strictMode": true,
"lazy": false,
"noInterop": false
},
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": false
}
}
}
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@ module.exports = {
}
```

```ts
// tailwind.config.ts
import type { Config } from 'tailwindcss'
import animate from '@jcamp/tailwindcss-plugin-animate'

export default <Partial<Config>>{
theme: {
// ...
},
plugins: [
animate({
/* options */
}),
],
}
```

## Configuration

Refer to the [type definition](https://github.com/jcamp-code/tailwindcss-plugin-animate/blob/main/src/types.ts) for all configurations avaliable.
Expand Down
26 changes: 14 additions & 12 deletions demo/package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
{
"name": "tw-plugin-demo",
"private": true,
"packageManager": "^pnpm@8.1.0",
"version": "0.0.0",
"type": "module",
"version": "0.0.0",
"private": true,
"packageManager": "pnpm@8.6.3",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview"
},
"dependencies": {
"@vueuse/core": "^9.13.0",
"vue": "^3.2.47"
"@vueuse/core": "^10.2.1",
"vue": "^3.3.4"
},
"devDependencies": {
"@jcamp/tailwindcss-plugin-icons": "^0.5.0",
"@vitejs/plugin-vue": "^4.1.0",
"@iconify-json/carbon": "1.1.18",
"@iconify-json/twemoji": "1.1.11",
"@jcamp/tailwindcss-plugin-icons": "^0.6.0",
"@vitejs/plugin-vue": "^4.2.3",
"autoprefixer": "^10.4.14",
"postcss": "^8.4.21",
"tailwindcss": "^3.3.1",
"typescript": "^5.0.3",
"vite": "^4.2.1",
"vue-tsc": "^1.2.0"
"postcss": "^8.4.24",
"tailwindcss": "^3.3.2",
"typescript": "^5.1.6",
"vite": "^4.3.9",
"vue-tsc": "^1.8.3"
}
}
Loading

0 comments on commit d54d4a6

Please sign in to comment.