Skip to content

Commit

Permalink
refactor: code base
Browse files Browse the repository at this point in the history
  • Loading branch information
Airkro committed Aug 21, 2023
1 parent 8700c36 commit 7cf91a1
Show file tree
Hide file tree
Showing 19 changed files with 6,596 additions and 5,333 deletions.
2 changes: 1 addition & 1 deletion .githooks/commit-msg
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh

npx --no-install commitlint -e
npx --no-install nice-move lint commit
2 changes: 1 addition & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

npm run lint
npm run lint:staged
npm test
36 changes: 36 additions & 0 deletions .github/workflows/bring-it.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: bring-it

on:
push:
branches:
- master

jobs:
test:
strategy:
matrix:
os:
- macos-latest
- windows-latest
- ubuntu-latest
node:
- 18.0.0
- 16.15.0
exclude:
- os: ubuntu-latest
node: 16.15.0
runs-on: ${{ matrix.os }}
steps:
- name: Run
uses: airkro/bring-it@actions
with:
node-version: ${{ matrix.node }}

publish:
needs: [test]
runs-on: ubuntu-latest
steps:
- name: Run
uses: airkro/bring-it@actions
with:
npm-token: ${{ secrets.NPM_TOKEN }}
37 changes: 30 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Created by https://gitignore.io/api/node,windows
# Edit at https://gitignore.io?templates=node,windows
# Created by https://gitignore.io/api/ssh,certificates,node,windows
# Edit at https://gitignore.io?templates=ssh,certificates,node,windows

### certificates ###
*.pem
*.key
*.crt
*.cer
*.der
*.priv

### Node ###
# Logs
Expand Down Expand Up @@ -58,6 +66,9 @@ web_modules/
# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
Expand All @@ -73,10 +84,12 @@ web_modules/
# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
# dotenv environment variable files
.env
.env.test
.env.production
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
Expand All @@ -99,6 +112,12 @@ dist
# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

Expand Down Expand Up @@ -126,11 +145,15 @@ dist
.webpack/

# Optional stylelint cache
.stylelintcache

# SvelteKit build / generate output
.svelte-kit

### SSH ###
**/.ssh/id_*
**/.ssh/*_id_*
**/.ssh/known_hosts

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Expand All @@ -157,4 +180,4 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk

# End of https://gitignore.io/api/node,windows
# End of https://gitignore.io/api/ssh,certificates,node,windows
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Eric Chen
Copyright (c) 2023 Eric Chen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
11 changes: 0 additions & 11 deletions jsconfig.json

This file was deleted.

Loading

0 comments on commit 7cf91a1

Please sign in to comment.