Skip to content

Commit

Permalink
Adopt core commons 2.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
eaviles committed Aug 26, 2019
1 parent 2e85605 commit 3323f05
Show file tree
Hide file tree
Showing 15 changed files with 1,092 additions and 1,001 deletions.
4 changes: 4 additions & 0 deletions .auto-changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"commitLimit": false,
"template": "./templates/CHANGELOG.hbs"
}
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/coverage
/package-lock.json
/templates
/tests
35 changes: 0 additions & 35 deletions .github/main.workflow

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/publish-module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Publish Module
on:
push:
branches:
- master
jobs:
install-and-check:
name: Install & Check
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
version: 10
- name: Install
run: npm ci --loglevel=error
env:
DISABLE_OPENCOLLECTIVE: true
- name: Run linter
run: npm run eslint
- name: Run tests
run: npm test
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
npm-publish:
name: NPM Publish
needs: install-and-check
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
version: 10
registry-url: 'https://registry.npmjs.org'
- name: Install
run: npm ci --loglevel=error
env:
DISABLE_OPENCOLLECTIVE: true
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
34 changes: 34 additions & 0 deletions .github/workflows/pull-request-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Pull Request Check
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
test:
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [8, 10, 12]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Clone repository
uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
version: ${{ matrix.node_version }}
- name: Install
run: npm ci --loglevel=error
env:
DISABLE_OPENCOLLECTIVE: true
- name: Run linter
run: npm run eslint
- name: Run tests
run: npm test
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
CI: true
16 changes: 16 additions & 0 deletions .jest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"collectCoverage": true,
"collectCoverageFrom": ["**/*.js"],
"coverageDirectory": "../coverage",
"coverageReporters": ["clover", "lcov", "text"],
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
},
"rootDir": "./lib",
"testEnvironment": "node"
}
10 changes: 10 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"*.js": [
"eslint --fix",
"git add"
],
"*.{json,md}": [
"prettier --write",
"git add"
]
}
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
*.md
*.test.js
/.*
/coverage
/docs
/templates
__mocks__
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"printWidth": 100,
"singleQuote": true
}
20 changes: 20 additions & 0 deletions .renovaterc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"assignees": [
"eaviles",
"kenzable"
],
"automerge": true,
"branchPrefix": "feature/renovate-",
"engines": {
"node": {
"enabled": false
}
},
"extends": [
"config:base"
],
"major": {
"automerge": false
},
"rangeStrategy": "bump"
}
26 changes: 13 additions & 13 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
- The use of sexualized language or imagery and unwelcome sexual attention or
advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic
address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Expand Down
Loading

0 comments on commit 3323f05

Please sign in to comment.