Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Nov 26, 2021
0 parents commit 14c8041
Show file tree
Hide file tree
Showing 23 changed files with 951 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .editorconfig
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
27 changes: 27 additions & 0 deletions .eslintignore
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
20 changes: 20 additions & 0 deletions .eslintrc.cjs
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']}],
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
107 changes: 107 additions & 0 deletions .github/workflows/continuous-integration.yml
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
96 changes: 96 additions & 0 deletions .gitignore
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/
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
4 changes: 4 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"default": true,
"line-length": false
}
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
save-prefix=""
package-lock=false
30 changes: 30 additions & 0 deletions .prettierignore
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
1 change: 1 addition & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-prefix ""
4 changes: 4 additions & 0 deletions currencies-raw.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 14c8041

Please sign in to comment.