Skip to content

Commit b8bf973

Browse files
authored
Remove tsdx and fix up typings (#214)
Simplifies plugin build & dev tooling. Should fix #213
1 parent 3905d9b commit b8bf973

22 files changed

Lines changed: 7799 additions & 25868 deletions

.changeset/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"$schema": "https://unpkg.com/@changesets/config@1.3.0/schema.json",
2+
"$schema": "https://unpkg.com/@changesets/config@latest/schema.json",
33
"access": "public",
44
"baseBranch": "main",
55
"changelog": [
6-
"@changesets/changelog-github",
6+
"@zazen/changesets-changelog",
77
{ "repo": "stormwarning/tailwindcss-capsize" }
88
],
99
"commit": false,

.changeset/dirty-rats-think.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'tailwindcss-capsize': patch
3+
---
4+
5+
Reworked internals
6+
No notable change in CSS output. Should support Tailwind TypeScript configs better now.

.eslintrc.cjs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/** @type {import('eslint').Linter.Config} */
2+
const config = {
3+
extends: [
4+
'@zazen',
5+
'@zazen/eslint-config/node',
6+
'@zazen/eslint-config/typescript',
7+
],
8+
env: {
9+
node: true,
10+
},
11+
rules: {},
12+
overrides: [
13+
{
14+
// Jest config
15+
files: [
16+
'**/__tests__/**/*.{js,ts,tsx}',
17+
'**/*.@(spec|test).{js,ts,tsx}',
18+
],
19+
env: {
20+
jest: true,
21+
},
22+
rules: {
23+
'import/no-extraneous-dependencies': 'off',
24+
},
25+
},
26+
{
27+
files: ['**/*.d.ts'],
28+
rules: {
29+
// Prevent conflicts with `import/no-mutable-exports`.
30+
'prefer-let/prefer-let': 'off',
31+
},
32+
},
33+
],
34+
}
35+
36+
module.exports = config

.eslintrc.js

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

.github/dependabot.yml

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

.github/renovate.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["github>tidaltheory/renovate-config"]
4+
}

.github/workflows/main.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- name: Begin CI...
10+
- name: Checkout repo
1111
uses: actions/checkout@v3
1212

13-
- name: Use Node 12
13+
- name: Setup Node.js 18.x
1414
uses: actions/setup-node@v3.1.1
1515
with:
16-
node-version: 12.x
16+
node-version: 18.x
1717

1818
- name: Use cached node_modules
1919
uses: actions/cache@v3.0.2
@@ -26,11 +26,8 @@ jobs:
2626
- name: Install dependencies
2727
run: npm ci
2828

29-
- name: Lint
30-
run: npm run lint
31-
3229
- name: Build
3330
run: npm run build
3431

3532
- name: Test
36-
run: npm test -- --ci --coverage --maxWorkers=2
33+
run: npm test

.github/workflows/release.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,30 @@ jobs:
1010
name: Release
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Checkout Repo
13+
# https://github.com/actions/checkout
14+
- name: Checkout repo
1415
uses: actions/checkout@v3
1516
with:
16-
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1717
fetch-depth: 0
1818

19-
- name: Setup Node.js 12.x
19+
- name: Setup Node.js 18.x
2020
uses: actions/setup-node@v3.1.1
2121
with:
22-
node-version: 12.x
22+
node-version: 18.x
23+
cache: npm
2324

24-
- name: Install Dependencies
25+
- name: Install dependencies
2526
run: npm ci
2627

27-
- name: Create Release Pull Request or Publish to npm
28+
# https://github.com/changesets/action
29+
- name: Create release PR or publish to npm
2830
id: changesets
29-
# https://github.com/changesets/action
30-
uses: changesets/action@master
31+
uses: changesets/action@v1
3132
with:
32-
title: 'Chore: Publish release'
3333
# This expects you to have a script called release which does a build
3434
# for your packages and calls changeset publish
3535
publish: npm run release
36+
title: 'Publish release'
3637
env:
3738
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3839
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)