Skip to content

Commit 16970dd

Browse files
author
John Campion Jr
authored
Initial Version (#1)
* wip: Initial work * cleanup * cleanup
1 parent 0de9474 commit 16970dd

50 files changed

Lines changed: 19406 additions & 1 deletion

Some content is hidden

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

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
open-pull-requests-limit: 10

.github/tailwindcss-mark.svg

Lines changed: 1 addition & 0 deletions
Loading

.github/workflows/nodejs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [main]
9+
pull_request:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
node-version: [14, 16]
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
- run: npm install
26+
- run: npm test
27+
env:
28+
CI: true

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.vscode
2+
coverage
3+
node_modules
4+
npm-debug.log
5+
yarn-error.log
6+
dist

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"printWidth": 100,
3+
"semi": false,
4+
"singleQuote": true,
5+
"trailingComma": "es5",
6+
"arrowParens": "avoid"
7+
}

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [0.1.0] - 2022-08-13
9+
10+
Initial release!

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 John Campion
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,53 @@
1-
# tailwindcss-plugin-animate
1+
# @jcamp/tailwindcss-plugin-animate
2+
3+
<div align="center">
4+
<img src="./.github/tailwindcss-mark.svg" alt="Tailwind CSS" width="108" height="66">
5+
<h1>Tailwind CSS Animation Plugin</h1>
6+
<p>An updated animation plugin for Tailwind CSS v3</p>
7+
</div>
8+
9+
Easily add animations to your Tailwind projects. Uses the animations from [animate.css](https://github.com/animate-css/animate.css) but through Tailwind's system.
10+
11+
```html
12+
<div class="animate-shake-x animate-delay animate-infinite">(icon)</div>
13+
```
14+
15+
Keyframes are only added to the generated CSS if an animation using them is added.
16+
17+
## Install
18+
19+
```bash
20+
npm i -D @jcamp/tailwindcss-plugin-animate
21+
```
22+
23+
Then add the plugin to your `tailwind.config.js` file:
24+
25+
```js
26+
// tailwind.config.js
27+
const animate = require('@jcamp/tailwindcss-plugin-animate')
28+
module.exports = {
29+
theme: {
30+
// ...
31+
},
32+
plugins: [
33+
animate({
34+
/* options */
35+
}),
36+
// ...
37+
],
38+
}
39+
```
40+
41+
## Configuration
42+
43+
Refer to the [type definition](https://github.com/jcamp-code/tailwindcss-plugin-animate/blob/main/src/types.ts) for all configurations avaliable.
44+
45+
## Credits
46+
47+
This plugin is heaviliy inspired by and based on the work of [tailwindcss-animate.css](https://github.com/bentzibentz/tailwindcss-animate.css) created by [Fabian Bentz](https://github.com/bentzibentz). Unfortunately, this package has not been updated in a few years and not for Tailwind v3 either.
48+
49+
It is also includes some ideas by [Jamie Kyle](https://github.com/jamiebuilds) and his work at [tailwindcss-animate](https://github.com/jamiebuilds/tailwindcss-animate). I wanted more keyframes built in, but liked his ideas for matching utilities.
50+
51+
## License
52+
53+
MIT License &copy; 2022-PRESENT [John Campion](https://github.com/JohnCampionJr/)

demo/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Vue 3 + TypeScript + Vite
2+
3+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4+
5+
## Recommended IDE Setup
6+
7+
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar)
8+
9+
## Type Support For `.vue` Imports in TS
10+
11+
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's Take Over mode by following these steps:
12+
13+
1. Run `Extensions: Show Built-in Extensions` from VS Code's command palette, look for `TypeScript and JavaScript Language Features`, then right click and select `Disable (Workspace)`. By default, Take Over mode will enable itself if the default TypeScript extension is disabled.
14+
2. Reload the VS Code window by running `Developer: Reload Window` from the command palette.
15+
16+
You can learn more about Take Over mode [here](https://github.com/johnsoncodehk/volar/discussions/471).

0 commit comments

Comments
 (0)