Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0.1 refactor #29

Merged
merged 16 commits into from
Dec 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# ESLint
# git
.git
.gitattributes
.gitignore

# vscode
.vscode

# docs
docs/

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Dependency directories
node_modules/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
},
"extends": ["airbnb-base", "prettier"],
"plugins": ["prettier"],
"ignorePatterns": ["node_modules/**/*.js"],
"parserOptions": {
"ecmaVersion": 11
},
"rules": {
"prettier/prettier": "error",
"no-underscore-dangle": 0,
"no-param-reassign": "off"
"no-param-reassign": "off",
"no-restricted-syntax": "off"
}
}
10 changes: 5 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ name: Node.js Package

on:
release:
types: [created]
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12
node-version: 16
- run: npm ci
- run: npm test

Expand All @@ -23,9 +23,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12
node-version: '16.x'
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: PR Test
on: [pull_request]
jobs:
test-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v2

- name: Install Node v16
uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'

- name: Clean install deps
run: npm ci

- name: Run tests
run: npm test
53 changes: 0 additions & 53 deletions .jsdoc.json

This file was deleted.

23 changes: 19 additions & 4 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
# NPM

# node
node_modules

# git
.git
.gitattributes
.gitignore

# vscode
.vscode

# ESLint
.eslintrc.json
.jsdoc.json
.eslintignore

# prettier
.prettierrc.json
.gitattributes
.gitignore
npm-debug.log
.prettierignore

# project
*.log
test/
docs/

# github
.github/
48 changes: 41 additions & 7 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,45 @@
# Prettier
node_modules
# git
.git
.vscode
.eslintrc.json
.prettierrc.json
.gitattributes
.gitignore
npm-debug.log
test/
docs/

# vscode
.vscode

# docs
docs/

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Dependency directories
node_modules/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test
Loading