Skip to content

Commit

Permalink
Remove tsdx and fix up typings (#214)
Browse files Browse the repository at this point in the history
Simplifies plugin build & dev tooling.

Should fix #213
  • Loading branch information
stormwarning authored Apr 18, 2024
1 parent 3905d9b commit b8bf973
Show file tree
Hide file tree
Showing 22 changed files with 7,799 additions and 25,868 deletions.
4 changes: 2 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.3.0/schema.json",
"$schema": "https://unpkg.com/@changesets/config@latest/schema.json",
"access": "public",
"baseBranch": "main",
"changelog": [
"@changesets/changelog-github",
"@zazen/changesets-changelog",
{ "repo": "stormwarning/tailwindcss-capsize" }
],
"commit": false,
Expand Down
6 changes: 6 additions & 0 deletions .changeset/dirty-rats-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'tailwindcss-capsize': patch
---

Reworked internals
No notable change in CSS output. Should support Tailwind TypeScript configs better now.
36 changes: 36 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/** @type {import('eslint').Linter.Config} */
const config = {
extends: [
'@zazen',
'@zazen/eslint-config/node',
'@zazen/eslint-config/typescript',
],
env: {
node: true,
},
rules: {},
overrides: [
{
// Jest config
files: [
'**/__tests__/**/*.{js,ts,tsx}',
'**/*.@(spec|test).{js,ts,tsx}',
],
env: {
jest: true,
},
rules: {
'import/no-extraneous-dependencies': 'off',
},
},
{
files: ['**/*.d.ts'],
rules: {
// Prevent conflicts with `import/no-mutable-exports`.
'prefer-let/prefer-let': 'off',
},
},
],
}

module.exports = config
24 changes: 0 additions & 24 deletions .eslintrc.js

This file was deleted.

21 changes: 0 additions & 21 deletions .github/dependabot.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>tidaltheory/renovate-config"]
}
11 changes: 4 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Begin CI...
- name: Checkout repo
uses: actions/checkout@v3

- name: Use Node 12
- name: Setup Node.js 18.x
uses: actions/[email protected]
with:
node-version: 12.x
node-version: 18.x

- name: Use cached node_modules
uses: actions/[email protected]
Expand All @@ -26,11 +26,8 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

- name: Build
run: npm run build

- name: Test
run: npm test -- --ci --coverage --maxWorkers=2
run: npm test
19 changes: 10 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,30 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
# https://github.com/actions/checkout
- name: Checkout repo
uses: actions/checkout@v3
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js 12.x
- name: Setup Node.js 18.x
uses: actions/[email protected]
with:
node-version: 12.x
node-version: 18.x
cache: npm

- name: Install Dependencies
- name: Install dependencies
run: npm ci

- name: Create Release Pull Request or Publish to npm
# https://github.com/changesets/action
- name: Create release PR or publish to npm
id: changesets
# https://github.com/changesets/action
uses: changesets/action@master
uses: changesets/action@v1
with:
title: 'Chore: Publish release'
# This expects you to have a script called release which does a build
# for your packages and calls changeset publish
publish: npm run release
title: 'Publish release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit b8bf973

Please sign in to comment.