Skip to content

Commit

Permalink
chore: format & tweaks, better ignores
Browse files Browse the repository at this point in the history
Signed-off-by: Charlike Mike Reagent <[email protected]>
  • Loading branch information
tunnckoCore committed Jan 31, 2020
1 parent a38e768 commit 0ca40b3
Show file tree
Hide file tree
Showing 22 changed files with 1,597 additions and 457 deletions.
92 changes: 18 additions & 74 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,81 +1,25 @@
CHANGELOG.md
README.md
*.d.ts
recipes
patches
# Ignore everything!
*

test-legacy
*.js.snap
*.tsbuildinfo
.cache
.*cache
*.cache
# de-ignores: add here what you want to be committed
!*.*js*
!*.ts*
!*.md*

.all-contrib*rc
# Build environment
dist
!**/src
!**/src/**

# Package managers lockfiles
package-lock.json
shrinkwrap.json
pnpm-lock.json
!**/test
!**/test/**

# Logs
logs
*.log
*~
!**/*tests*
!**/*tests*/**

# Runtime data
pids
*.pid
*.seed
*.pid.lock
!**/benchmark*
!**/benchmark*/**

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
!**/example*
!**/example*/**

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://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

# next.js build output
.next
# re-ignores: add here what you want to be ignored again
test/tmp
2 changes: 0 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ module.exports = {
extends: ['eslint:recommended', 'airbnb-base', 'plugin:prettier/recommended'],
plugins: ['prettier'],
rules: {
'prettier/prettier': 'error',

...additionalChanges,
...importRules,
},
Expand Down
1 change: 0 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ ko_fi: tunnckoCore
# Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
custom:
- https://gumroad.com/l/tunnckoCoreRecurringDonation

# github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
#open_collective: # Replace with a single Open Collective username
#tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
Expand Down
10 changes: 0 additions & 10 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
# if: contains(toJson(github.event.commits), '[skip ci]') == false
- uses: actions/cache@v1
# if: contains(toJson(github.event.commits), '[skip ci]') == false
id: nodejs-cache
name: Cache node modules
with:
Expand All @@ -33,24 +31,16 @@ jobs:
${{ matrix.os }}-nodejs-${{ matrix.node }}-
${{ matrix.os }}-nodejs-
${{ matrix.os }}-
# - name: "Use Node.js ${{ matrix.node }}"
# uses: actions/setup-node@v1
# with:
# node: ${{ matrix.node }}

- name: Dump GitHub context
# if: contains(toJson(github.event.commits), '[skip ci]') == false
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Installing dependencies
if: steps.nodejs-cache.outputs.cache-hit != 'true'
run: yarn --frozen-lockfile
- name: Linting & Format codebase with ESLint & Prettier
# if: contains(toJson(github.event.commits), '[skip ci]') == false
run: yarn lint && yarn fmt
- name: Testing
# if: contains(toJson(github.event.commits), '[skip ci]') == false
run: yarn test:ci
- name: Sending test coverage to CodeCov
if: matrix.os == 'ubuntu-latest' && matrix.node == '12.x'
Expand Down
158 changes: 104 additions & 54 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,76 +1,126 @@
*.tsbuildinfo
.cache
.*cache
*.cache
# Ignore everything!
*
*~*

# de-ignores: add here what you want to be committed
!logo.png
!logo.jpg
!test-legacy
!tool

!*.*js*
!*.ts*
!*.md*
!.*rc
!.*ignore
!LICENSE

!package.json
!yarn.lock

!**/src
!**/src/**

!**/test
!**/test/**

!**/*tests*
!**/*tests*/**

!**/.github
!**/.github/**

!**/example*
!**/example*/**

!**/benchmark*
!**/benchmark*/**

# re-ignores: add here what you want to be ignored again
test/tmp
*.upload
*.un~

# Build environment
dist
# !src/*.js
# !src/*.ts
# !test
# !test/*.js
# !test/*.ts
# !test/**/*.js
# !test/**/*.ts
# !*/__tests__


# *.tsbuildinfo
# .*cache
# *.cache

# test/tmp
# *.upload
# *.un~

# # Build environment
# dist

# Package managers lockfiles
package-lock.json
shrinkwrap.json
pnpm-lock.json
# # Package managers lockfiles
# package-lock.json
# shrinkwrap.json
# pnpm-lock.json

# Logs
logs
*.log
*~
# # Logs
# logs
# *.log
# *~

# Runtime data
pids
*.pid
*.seed
*.pid.lock
# # Runtime data
# pids
# *.pid
# *.seed
# *.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# # Directory for instrumented libs generated by jscoverage/JSCover
# lib-cov

# Coverage directory used by tools like istanbul
/coverage
# # Coverage directory used by tools like istanbul
# /coverage

# nyc test coverage
.nyc_output
# # nyc test coverage
# .nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
# .grunt

# Bower dependency directory (https://bower.io/)
bower_components
# # Bower dependency directory (https://bower.io/)
# bower_components

# node-waf configuration
.lock-wscript
# # node-waf configuration
# .lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# # Compiled binary addons (https://nodejs.org/api/addons.html)
# build/Release

# Dependency directories
node_modules/
jspm_packages/
# # Dependency directories
# node_modules/
# jspm_packages/

# TypeScript v1 declaration files
typings/
# # TypeScript v1 declaration files
# typings/

# Optional npm cache directory
.npm
# # Optional npm cache directory
# .npm

# Optional eslint cache
.eslintcache
# # Optional eslint cache
# .eslintcache

# Optional REPL history
.node_repl_history
# # Optional REPL history
# .node_repl_history

# Output of 'npm pack'
*.tgz
# # Output of 'npm pack'
# *.tgz

# Yarn Integrity file
.yarn-integrity
# # Yarn Integrity file
# .yarn-integrity

# dotenv environment variables file
.env
# # dotenv environment variables file
# .env

# next.js build output
.next
# # next.js build output
# .next
7 changes: 0 additions & 7 deletions .npmignore

This file was deleted.

Loading

0 comments on commit 0ca40b3

Please sign in to comment.