Skip to content

Commit

Permalink
refactor: update types and cleanup dependencies (#29)
Browse files Browse the repository at this point in the history
* refactor: update types and cleanup dependencies

- Update @textlint/ast-node-types
  - Export extends `TxtNode`
- Require Node.js 14+
  - Now, output ES2018+ codes
- Remove CLI
  - You can use a website

* CI: update node versions

* CI: Update Node versions

* docs: remove CLI

* CI: use Node 16

* CI: use Node 18

* refactor: use dual package

* fix: import .js

* fix: avoid vite `sideEffects` bug

Use `import` instead of <script>
Ref vitejs/vite#10735

* chore: add .js

* fix: work on ESM

* make ES2020

* fix types

* CI: add .github/release.yml

* fix: debug log

* chore: remove snowpack

* chore: remove unused pkg

* fix: use import type

* fix: cleanup unused functions

* update

* update

* update

* update

* Update

* Update
  • Loading branch information
azu committed Feb 10, 2023
1 parent b346f69 commit 9221cf0
Show file tree
Hide file tree
Showing 38 changed files with 1,274 additions and 1,817 deletions.
2 changes: 2 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
npx --no-install lint-staged
30 changes: 30 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
changelog:
exclude:
labels:
- 'Type: Meta'
- 'Type: Question'
- 'Type: Release'

categories:
- title: Security Fixes
labels: ['Type: Security']
- title: Breaking Changes
labels: ['Type: Breaking Change']
- title: Features
labels: ['Type: Feature']
- title: Bug Fixes
labels: ['Type: Bug']
- title: Documentation
labels: ['Type: Documentation']
- title: Refactoring
labels: ['Type: Refactoring']
- title: Testing
labels: ['Type: Testing']
- title: Maintenance
labels: ['Type: Maintenance']
- title: CI
labels: ['Type: CI']
- title: Dependency Updates
labels: ['Type: Dependencies', "dependencies"]
- title: Other Changes
labels: ['*']
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 12, 14, 16 ]
node-version: [ 16, 18 ]
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
dist/
.cache/
/lib
.parcel-cache
### https://raw.github.com/github/gitignore/608690d6b9a78c2a003affc792e49a84905b3118/Node.gitignore

Expand Down Expand Up @@ -89,3 +88,5 @@ crashlytics-build.properties

# Local Netlify folder
.netlify
/module/
/lib/
8 changes: 5 additions & 3 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"require": [
"ts-node-test-register"
"$schema": "https://json.schemastore.org/mocharc",
"loader": "ts-node/esm",
"spec": [
"test/**/*.ts"
]
}
}
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.14.0
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

0 comments on commit 9221cf0

Please sign in to comment.