-
-
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.
- Loading branch information
0 parents
commit 14c8041
Showing
23 changed files
with
951 additions
and
0 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,42 @@ | ||
# config file for `editorconfig` | ||
# | ||
# update: wget -O .editorconfig https://git.io/fjVjz | ||
# document: https://editorconfig.org | ||
# | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# all files | ||
[*] | ||
|
||
# Set default charset | ||
charset = utf-8 | ||
|
||
# Unix-style newlines | ||
end_of_line = lf | ||
|
||
# with a newline ending every file | ||
insert_final_newline = true | ||
|
||
# 2 space indentation | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# remove any whitespace characters preceding newline characters | ||
trim_trailing_whitespace = true | ||
|
||
# overrides | ||
|
||
# python overrides | ||
[*.py] | ||
indent_size = 4 | ||
|
||
# cmd overrides | ||
[*.{bat,cmd}] | ||
charset = ansi | ||
end_of_line = crlf | ||
|
||
# markdown | ||
[*.{md,markdown}] | ||
insert_final_newline = false |
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,27 @@ | ||
# ignore file for `eslint` | ||
# | ||
# update: wget -O .eslintignore https://git.io/fjVjo | ||
# document: https://eslint.org/docs/user-guide/configuring#eslintignore | ||
# | ||
|
||
# also lint dot files | ||
!.* | ||
|
||
# vendors | ||
node_modules/** | ||
**/vendors/** | ||
**/vendor/** | ||
**/third-party/** | ||
|
||
# build file | ||
dist/** | ||
**/*.min.* | ||
|
||
# fixtures | ||
**/fixtures/** | ||
|
||
# test | ||
.nyc_output/** | ||
coverage/** | ||
|
||
# project glob |
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,20 @@ | ||
/*! | ||
* config file for `eslint` | ||
* | ||
* update: wget -O .eslintrc.js https://git.io/fjVjK | ||
* document: https://eslint.org/docs/user-guide/configuring | ||
*/ | ||
|
||
/* @fisker/eslint-config https://git.io/fjOeH */ | ||
|
||
module.exports = { | ||
root: true, | ||
env: {}, | ||
parserOptions: {}, | ||
extends: ['@fisker'], | ||
settings: {}, | ||
rules: {}, | ||
plugins: [], | ||
globals: {}, | ||
overrides: [{files: ['test.js'], extends: ['@fisker/ava']}], | ||
} |
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 @@ | ||
* text=auto eol=lf |
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,107 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
# schedule: | ||
# - cron: "0 23 * * 6" | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- "ubuntu-latest" | ||
- "macos-latest" | ||
- "windows-latest" | ||
node_version: | ||
- "16" | ||
- "14" | ||
- "12" | ||
# exclude: | ||
# - os: "macos-latest" | ||
# node_version: "12" | ||
|
||
name: Node.js ${{ matrix.node_version }} on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
# needs: [build] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node_version }} | ||
|
||
- name: Install Dependencies | ||
run: yarn | ||
|
||
# - name: Download Artifact | ||
# uses: actions/download-artifact@v2 | ||
# with: | ||
# name: dist | ||
# path: dist | ||
|
||
- name: Run Test | ||
run: yarn test-coverage | ||
|
||
- name: Upload Coverage | ||
uses: coverallsapp/github-action@master | ||
if: success() | ||
continue-on-error: true | ||
with: | ||
github-token: ${{ secrets.github_token }} | ||
parallel: true | ||
|
||
coverage: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Sending webhook to Coveralls | ||
uses: coverallsapp/github-action@master | ||
continue-on-error: true | ||
with: | ||
github-token: ${{ secrets.github_token }} | ||
parallel-finished: true | ||
|
||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
|
||
- name: Install Dependencies | ||
run: yarn | ||
|
||
- name: Run Lint | ||
run: yarn lint | ||
|
||
# build: | ||
# name: Build | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v2 | ||
|
||
# - name: Setup Node.js | ||
# uses: actions/setup-node@v2 | ||
|
||
# - name: Install Dependencies | ||
# run: yarn | ||
|
||
# - name: Build Package | ||
# run: yarn build | ||
|
||
# - name: Upload Artifact | ||
# uses: actions/upload-artifact@v2 | ||
# with: | ||
# name: dist | ||
# path: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# ignore file for git project | ||
# | ||
# update: wget -O .gitignore https://git.io/fjXI5 | ||
# | ||
|
||
# Base on https://www.gitignore.io/api/node | ||
|
||
### Node ### | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
yarn.lock | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# next.js build output | ||
.next | ||
|
||
# nuxt.js build output | ||
.nuxt | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# project ignore files | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
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,4 @@ | ||
{ | ||
"default": true, | ||
"line-length": false | ||
} |
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,2 @@ | ||
save-prefix="" | ||
package-lock=false |
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,30 @@ | ||
# ignore file for `prettier` | ||
# | ||
# update: wget -O .prettierignore https://git.io/fjVj5 | ||
# document: https://prettier.io/docs/en/ignore.html#ignoring-files | ||
# | ||
|
||
# also prettier dot files | ||
!.* | ||
|
||
# vendors | ||
node_modules/** | ||
**/vendors/** | ||
**/vendor/** | ||
**/third-party/** | ||
|
||
# build file | ||
dist/** | ||
**/*.min.* | ||
|
||
# fixtures | ||
**/fixtures/** | ||
|
||
# test | ||
.nyc_output/** | ||
coverage/** | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# project glob |
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 @@ | ||
save-prefix "" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.