Skip to content

Commit e96bff6

Browse files
committed
Initial commit.
0 parents  commit e96bff6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+23489
-0
lines changed

.DS_Store

8 KB
Binary file not shown.

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FAST_REFRESH= false
2+
CHOKIDAR_USEPOLLING= true

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/*

.eslintrc.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parser": "babel-eslint",
3+
"parserOptions": {
4+
"ecmaVersion": 6,
5+
"sourceType": "module",
6+
"ecmaFeatures": {
7+
"modules": true,
8+
"experimentalObjectRestSpread": true
9+
}
10+
},
11+
"plugins": [],
12+
"extends": ["eslint:recommended"],
13+
"rules": {
14+
"comma-dangle": 0,
15+
"no-unused-vars": "warn",
16+
"no-unexpected-multiline": "warn",
17+
"prefer-const": "warn"
18+
},
19+
"settings": {},
20+
"env": {
21+
"browser": true,
22+
"node": true,
23+
"jasmine": true,
24+
"jest": true,
25+
"es6": true
26+
}
27+
}

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: https://hge.to/thanks

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "04:00"
8+
timezone: America/Montreal
9+
open-pull-requests-limit: 10
10+
versioning-strategy: increase

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- README.md
7+
- .gitignore
8+
- .github/**
9+
10+
jobs:
11+
build:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
node-version: [16.x]
16+
os: [ubuntu-latest]
17+
steps:
18+
- uses: actions/checkout@v1
19+
- name: Use Node.js ${{ matrix.node_version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node_version }}
23+
- name: npm install, build, and test
24+
run: |
25+
npm install
26+
npm run start -- --testMode
27+
npm run demo
28+
npm run coverage
29+
env:
30+
CI: true

.github/workflows/publish.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths-ignore:
8+
- README.md
9+
- .gitignore
10+
- .github/**
11+
12+
jobs:
13+
publish:
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
node-version: [16.x]
18+
os: [ubuntu-latest]
19+
steps:
20+
- uses: actions/checkout@v1
21+
- name: Use Node.js ${{ matrix.node_version }}
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node_version }}
25+
26+
- name: npm install, build, and test
27+
run: |
28+
npm install
29+
npm run coverage
30+
31+
- name: Setup GIT
32+
run: |
33+
git reset --hard
34+
git config --local --list
35+
git checkout master
36+
git config user.email "$GH_EMAIL"
37+
git config user.name "Francisco Hodge"
38+
env:
39+
GH_EMAIL: ${{secrets.GH_EMAIL}}
40+
41+
- name: Bump version
42+
run: |
43+
git reset --hard
44+
npm version patch
45+
npm run build
46+
git add . || true
47+
git commit -m "Build update" || true
48+
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY"
49+
env:
50+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
51+
52+
- name: npm publish
53+
run: |
54+
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
55+
npm run trypublish
56+
env:
57+
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}

.github/workflows/pull_request.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build PR (Standard)
2+
3+
on: pull_request
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
if: ${{ github.actor != 'dependabot[bot]' }}
9+
strategy:
10+
matrix:
11+
node-version: [12.x]
12+
os: [ubuntu-latest]
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Use Node.js ${{ matrix.node_version }}
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: ${{ matrix.node_version }}
19+
- name: npm install, build, and test
20+
run: |
21+
npm install
22+
npm run start -- --testMode
23+
npm run demo
24+
npm run coverage
25+
env:
26+
CI: true
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Build PR (Dependabot)
2+
3+
on: pull_request_target
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
if: ${{ github.actor == 'dependabot[bot]' }}
9+
strategy:
10+
matrix:
11+
node-version: [12.x]
12+
os: [ubuntu-latest]
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
ref: ${{ github.event.pull_request.head.sha }}
17+
- name: Use Node.js ${{ matrix.node_version }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node_version }}
21+
- name: npm install, build, and test
22+
run: |
23+
npm install
24+
npm run start -- --testMode
25+
npm run demo
26+
npm run coverage
27+
env:
28+
CI: true
29+
- name: Merge PR
30+
if: success()
31+
uses: "actions/github-script@v2"
32+
with:
33+
github-token: "${{ secrets.GH_KEY }}"
34+
script: |
35+
const pullRequest = context.payload.pull_request
36+
const repository = context.repo
37+
38+
await github.pulls.merge({
39+
merge_method: "merge",
40+
owner: repository.owner,
41+
pull_number: pullRequest.number,
42+
repo: repository.repo,
43+
})
44+
- name: Reject PR
45+
if: failure()
46+
uses: peter-evans/close-pull@v1
47+
with:
48+
pull-request-number: ${{github.event.number}}
49+
comment: "Closing PR due to failing tests."
50+
delete-branch: true

0 commit comments

Comments
 (0)