Skip to content

Commit

Permalink
Merge 4c38d98 into 3ea1c0c
Browse files Browse the repository at this point in the history
  • Loading branch information
w3nl committed Jun 29, 2020
2 parents 3ea1c0c + 4c38d98 commit 3e25dce
Show file tree
Hide file tree
Showing 36 changed files with 10,840 additions and 756 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_size = 2
34 changes: 34 additions & 0 deletions .eslintrc.cjs
@@ -0,0 +1,34 @@
module.exports = {
root: true,
env: {
es6: true,
node: true,
browser: true
},
extends: ['@hckrnews/eslint-config'],
parserOptions: {
sourceType: "module",
parser: "babel-eslint",
babelOptions: {
configFile: "babel.config.js",
}
},
rules: {
"import/extensions": ['error', {
"js": "never",
"mjs": "always",
"json": "always"
}]
},
overrides: [
{
files: [
"**/__tests__/*.{j,t}s?(x)",
"**/tests/unit/**/*.spec.{j,t}s?(x)"
],
env: {
jest: true
}
}
]
};
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: [w3nl]
patreon: w3news
26 changes: 26 additions & 0 deletions .github/workflows/nodejs.yml
@@ -0,0 +1,26 @@
name: Node CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, lint, and test
run: |
npm ci
npm run lint
npm test
env:
CI: true
117 changes: 18 additions & 99 deletions .gitignore
@@ -1,104 +1,23 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# 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
.DS_Store
node_modules
coverage
*.lcov

# 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/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# 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 / generate output
.nuxt
dist
report

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/
# local env files
.env.local
.env.*.local

# DynamoDB Local files
.dynamodb/
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# TernJS port file
.tern-port
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
7 changes: 7 additions & 0 deletions .jscpd.json
@@ -0,0 +1,7 @@
{
"threshold": 0,
"reporters": ["json", "console"],
"ignore": ["**/__snapshots__/**"],
"absolute": true,
"gitignore": true
}
14 changes: 14 additions & 0 deletions .travis.yml
@@ -0,0 +1,14 @@
sudo: true
dist: trusty
addons:
language: node_js
node_js:
- "14"
before_script:
- npm run lint
after_script:
- npm run coveralls
git:
depth: 10
cache:
yarn: true

0 comments on commit 3e25dce

Please sign in to comment.