Skip to content

Commit 3202f59

Browse files
committed
chore: update to use preferred tools
1 parent 448bf1b commit 3202f59

12 files changed

+2573
-1166
lines changed

.commitlintrc.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ['@commitlint/config-conventional'] }

.editorconfig

Lines changed: 0 additions & 9 deletions
This file was deleted.

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@jcamp"
3+
}

.github/renovate.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:base"
5-
]
3+
"extends": ["config:base"]
64
}

.gitignore

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
.vscode
2-
coverage
31
node_modules
4-
npm-debug.log
5-
yarn-error.log
2+
*.log*
3+
.cache
4+
.output
5+
.env
66
dist
7+
.DS_Store
8+
/coverage
9+
*.tgz
10+
.DS_Store
11+
.idea
12+
.temp
13+
cache
14+
temp
15+
pnpm-global
16+
types

.lintstagedrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"*": ["prettier --write --ignore-unknown"],
3+
"*.ts": ["eslint"]
4+
}

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
dist
2+
pnpm-lock.yaml
3+
cache
4+
temp

.prettierrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

.prettierrc.cjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
const baseConfig = require('@jcamp/eslint-config/.prettierrc.js')
2+
3+
module.exports = {
4+
...baseConfig,
5+
/* make any changes here*/
6+
}

package.json

Lines changed: 41 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,64 @@
11
{
22
"name": "@jcamp/tailwindcss-plugin-animate",
33
"version": "0.1.0",
4+
"packageManager": "^[email protected]",
45
"description": "An updated animation plugin for Tailwind CSS v3",
6+
"author": "John Campion (https://github.com/JohnCampionJr/)",
7+
"license": "MIT",
8+
"homepage": "https://github.com/jcamp-code/tailwindcss-plugin-animate",
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/jcamp-code/tailwindcss-plugin-animate.git"
12+
},
13+
"bugs": {
14+
"url": "https://github.com/jcamp-code/tailwindcss-plugin-animate/issues"
15+
},
16+
"keywords": [
17+
"tailwindcss",
18+
"animate",
19+
"animation"
20+
],
521
"main": "dist/index.js",
6-
"packageManager": "^[email protected]",
22+
"files": [
23+
"dist/*"
24+
],
725
"scripts": {
8-
"dev": "tsc --watch & cd ./demo && npm run-script dev",
26+
"dev": "tsc --watch & cd ./demo && pnpm run-script dev",
927
"build": "tsc",
10-
"release": "np --no-2fa",
28+
"lint": "eslint .",
29+
"lint:fix": "eslint . --fix",
30+
"format": "prettier --check --write .",
31+
"postinstall": "npx simple-git-hooks",
32+
"release": "changelogen --release --push && pnpm publish --access public",
1133
"test": "tsc && c8 jest"
1234
},
13-
"license": "MIT",
14-
"author": "John Campion (https://github.com/JohnCampionJr/)",
15-
"repository": "https://github.com/jcamp-code/tailwindcss-plugin-animate",
1635
"publishConfig": {
1736
"access": "public"
1837
},
19-
"files": [
20-
"dist/*"
21-
],
38+
"peerDependencies": {
39+
"tailwindcss": ">=3.3.0"
40+
},
41+
"dependencies": {
42+
"lodash": "^4.17.21"
43+
},
2244
"devDependencies": {
45+
"@commitlint/cli": "^17.5.1",
46+
"@commitlint/config-conventional": "^17.4.4",
47+
"@iconify/types": "^2.0.0",
48+
"@jcamp/eslint-config": "0.6.1",
2349
"@types/lodash": "^4.14.192",
50+
"@types/node": "^18.15.11",
2451
"c8": "^7.13.0",
52+
"changelogen": "^0.5.2",
53+
"eslint": "8.37.0",
2554
"jest": "^29.5.0",
26-
"np": "^7.7.0",
55+
"lint-staged": "^13.2.0",
2756
"postcss": "^8.4.21",
28-
"prettier": "^2.8.7",
57+
"prettier": "2.8.7",
58+
"simple-git-hooks": "^2.8.1",
2959
"tailwindcss": "^3.3.1",
3060
"typescript": "^5.0.3"
3161
},
32-
"peerDependencies": {
33-
"tailwindcss": ">=3.3.1"
34-
},
3562
"jest": {
3663
"setupFilesAfterEnv": [
3764
"<rootDir>/jest/customMatchers.js"
@@ -42,13 +69,5 @@
4269
"jest/customMatchers.js",
4370
"**/*.test.js"
4471
]
45-
},
46-
"keywords": [
47-
"tailwindcss",
48-
"animate",
49-
"animation"
50-
],
51-
"dependencies": {
52-
"lodash": "^4.17.21"
5372
}
5473
}

0 commit comments

Comments
 (0)