-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from EricRovell/refactoring
refactoring
- Loading branch information
Showing
37 changed files
with
1,694 additions
and
1,851 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[*] | ||
|
||
charset = utf-8 | ||
indent_style = tab | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespce = true | ||
|
||
[*.yaml] | ||
|
||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- "**.md" | ||
pull_request: | ||
paths-ignore: | ||
- "**.md" | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: install pnpm | ||
run: npm i pnpm -g | ||
|
||
- name: install dependencies | ||
run: pnpm i | ||
|
||
- name: linting | ||
run: | | ||
pnpm lint | ||
pnpm lint:types | ||
- name: unit tests | ||
run: pnpm test:ci | ||
|
||
- name: test coverage artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage | ||
path: ./coverage | ||
if-no-files-found: error | ||
|
||
- name: Code Coverage Report | ||
uses: codecov/codecov-action@v4 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- name: build | ||
run: pnpm build | ||
|
||
- name: build artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: build | ||
path: ./dist | ||
if-no-files-found: error |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: npm-release | ||
on: | ||
release: | ||
types: [ published ] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.release.target_commitish }} | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: latest | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: install pnpm | ||
run: npm i pnpm -g | ||
|
||
- name: install dependencies | ||
run: pnpm i | ||
|
||
- name: linting | ||
run: | | ||
pnpm lint | ||
pnpm lint:types | ||
- name: unit tests | ||
run: pnpm test:ci | ||
|
||
- name: test coverage artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: coverage | ||
path: ./coverage | ||
if-no-files-found: error | ||
|
||
- name: build | ||
run: pnpm build | ||
|
||
- name: build artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: build | ||
path: ./dist | ||
if-no-files-found: error | ||
|
||
- name: publish | ||
run: pnpm run publish --no-git-checks | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { build } from "esbuild"; | ||
|
||
await build({ | ||
entryPoints: [ | ||
"./src/index.ts" | ||
], | ||
format: "esm", | ||
bundle: true, | ||
minify: true, | ||
outdir: "./dist" | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.