Skip to content

Commit

Permalink
feat: recover project
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi committed Aug 28, 2023
1 parent fd86e50 commit 5bf3e38
Show file tree
Hide file tree
Showing 17 changed files with 1,492 additions and 451 deletions.
3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/build.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/lint.yml

This file was deleted.

24 changes: 3 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,6 @@ on:
types:
- published
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- name: Installing Node.js v16
uses: actions/setup-node@969bd2663942d722d85b6a8626225850c2f7be4b # tag=v3
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org/'
- run: |
git fetch origin main
git checkout main
- name: Installing dependencies
run: yarn install --frozen-lockfile
- name: Compile source
run: yarn build
- name: Publish source
run: |
npm publish --access public || true
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
release:
uses: nezuchan/workflows/.github/workflows/npm-release.yml@main
secrets: inherit
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Lint code & compile test

on:
push:
branches:
- "**"
pull_request:
branches:
- "**"

jobs:
test:
uses: nezuchan/workflows/.github/workflows/lint-and-compile-test.yml@main
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
1 change: 1 addition & 0 deletions .nvmrc
9 changes: 0 additions & 9 deletions build.config.ts

This file was deleted.

36 changes: 22 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,30 @@
"scripts": {
"build": "rimraf dist && tsc && gen-esm-wrapper dist/index.js dist/index.mjs",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"format": "prettier --write {src,tests}/**/*.ts"
"lint:fix": "eslint src --fix"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"@hazmi35/eslint-config/typescript"
],
"rules": {}
},
"devDependencies": {
"@sapphire/eslint-config": "4.4.3",
"@sapphire/prettier-config": "1.4.5",
"@sapphire/ts-config": "3.3.4",
"eslint": "8.25.0",
"@hazmi35/eslint-config": "^11.0.0",
"@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1",
"eslint": "^8.48.0",
"gen-esm-wrapper": "^1.1.3",
"prettier": "2.7.1",
"rimraf": "3.0.2",
"typescript": "4.8.4",
"unbuild": "0.8.11"
},
"prettier": "@sapphire/prettier-config",
"dependencies": {
"tslib": "^2.4.0"
"rimraf": "5.0.1",
"typescript": "^5.0.4"
}
}
Loading

0 comments on commit 5bf3e38

Please sign in to comment.