Skip to content

Commit 69c7199

Browse files
authored
Merge pull request #14 from gregoranders/development
0.0.9 Release
2 parents 05e3354 + 3c95abd commit 69c7199

Some content is hidden

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

58 files changed

+1441
-1434
lines changed

.appveyor.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
environment:
2+
matrix:
3+
- nodejs_version: '14'
4+
- nodejs_version: '13'
5+
- nodejs_version: '12'
6+
- nodejs_version: '10'
7+
install:
8+
- ps: Install-Product node $env:nodejs_version
9+
- npm install --global npm@latest
10+
- set PATH=%APPDATA%\npm;%PATH%
11+
- npm install
12+
matrix:
13+
fast_finish: true
14+
build: off
15+
shallow_clone: true
16+
test_script:
17+
- node --version
18+
- npm --version
19+
- npm test
20+
cache:
21+
- '%APPDATA%\npm-cache'

.circleci/config.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version: 2.1
2+
orbs:
3+
node: circleci/[email protected]
4+
jobs:
5+
build-and-test:
6+
executor:
7+
name: node/default
8+
steps:
9+
- checkout
10+
- node/with-cache:
11+
steps:
12+
- run: npm install
13+
- run: npm test
14+
- run: npm build
15+
workflows:
16+
build-and-test:
17+
jobs:
18+
- build-and-test

.codeclimate.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: '2'
2+
plugins:
3+
editorconfig:
4+
enabled: true
5+
tslint:
6+
enabled: false
7+
eslint:
8+
enabled: true
9+
channel: 'eslint-6'
10+
config:
11+
config: .eslintrc-cc.json
12+
fixme:
13+
enabled: true
14+
git-legal:
15+
enabled: false
16+
exclude_patterns:
17+
- '**/.github'
18+
- '**/.circleci'
19+
- '**/.vscode'
20+
- '**/dist'
21+
- '**/temp'
22+
- '**/test'
23+
- '**/docs'
24+
- '**/node_modules/'
25+
- '**/gulpfile.ts'
26+
- '**/*.spec.ts'
27+
- '**/*.spec.tsx'

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/app/**
2+
/test/**

.eslintrc-cc.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"root": true,
3+
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
4+
"parserOptions": {
5+
"ecmaVersion": 2020,
6+
"sourceType": "module",
7+
"ecmaFeatures": {}
8+
},
9+
"env": {
10+
"node": true,
11+
"browser": true
12+
},
13+
"rules": {
14+
"no-mixed-operators": "off"
15+
},
16+
"settings": {},
17+
"globals": {}
18+
}

.eslintrc.json

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"extends": [
4+
"plugin:react-hooks/recommended",
5+
"plugin:react/recommended",
6+
"plugin:@typescript-eslint/recommended",
7+
"plugin:jest/recommended",
8+
"plugin:unicorn/recommended",
9+
"plugin:prettier/recommended",
10+
"prettier/@typescript-eslint"
11+
],
12+
"parserOptions": {
13+
"ecmaVersion": 2020,
14+
"sourceType": "module",
15+
"ecmaFeatures": {
16+
"jsx": true
17+
}
18+
},
19+
"rules": {
20+
"@typescript-eslint/explicit-function-return-type": "off",
21+
"@typescript-eslint/explicit-module-boundary-types": "off",
22+
"react-hooks/rules-of-hooks": "error",
23+
"react-hooks/exhaustive-deps": "warn",
24+
"sort-imports": [
25+
"error",
26+
{
27+
"ignoreCase": false,
28+
"ignoreDeclarationSort": true,
29+
"ignoreMemberSort": false,
30+
"memberSyntaxSortOrder": ["none", "all", "multiple", "single"]
31+
}
32+
],
33+
"no-restricted-imports": [
34+
"error",
35+
{
36+
"patterns": ["@material-ui/*/*/*", "!@material-ui/core/test-utils/*"]
37+
}
38+
]
39+
},
40+
"settings": {
41+
"react": {
42+
"version": "detect"
43+
}
44+
}
45+
}

.github/ISSUE_TEMPLATE/bug_report.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'bug'
6+
assignees: 'gregoranders'
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/custom.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Custom issue template
3+
about: Describe this issue template's purpose here.
4+
title: ''
5+
labels: ''
6+
assignees: 'gregoranders'
7+
8+
---
9+
10+
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: 'enhancement'
6+
assignees: 'gregoranders'
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/dependabot.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'npm'
4+
directory: '/'
5+
schedule:
6+
interval: 'daily'
7+
labels:
8+
- 'npm dependencies'
9+
commit-message:
10+
prefix: 'npm'
11+
assignees:
12+
- 'gregoranders'
13+
target-branch: 'development'

.github/workflows/development.yml

+54-71
Original file line numberDiff line numberDiff line change
@@ -6,83 +6,66 @@ on:
66
branches:
77
- development
88

9+
env:
10+
GITHUB_BRANCH: ${{ github.ref }}
11+
GITHUB_HEAD_REF: ${{ github.head_ref }}
12+
GITHUB_BASE_REF: ${{ github.base_ref }}
13+
GITHUB_COMMIT: ${{ github.sha }}
14+
915
jobs:
1016
build:
11-
1217
runs-on: ${{ matrix.os }}
1318

1419
strategy:
1520
matrix:
16-
os: [ubuntu-latest, macos-latest, windows-2016]
21+
os: [ubuntu-latest, macos-latest, windows-latest]
1722
node-version: [12.x]
1823

1924
steps:
20-
- uses: actions/checkout@v1
21-
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
22-
uses: actions/setup-node@v1
23-
with:
24-
node-version: ${{ matrix.node-version }}
25-
- name: nodejs project information
26-
id: projectinfo
27-
uses: gregoranders/[email protected]
28-
- name: npm install
29-
run: |
30-
npm install
31-
- name: npm run build
32-
run: |
33-
npm run build
34-
env:
35-
GITHUB_BRANCH: ${{ github.ref }}
36-
GITHUB_COMMIT: ${{ github.sha }}
37-
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }}
38-
- name: npm test
39-
run: |
40-
npm test
41-
env:
42-
GITHUB_BRANCH: ${{ github.ref }}
43-
GITHUB_COMMIT: ${{ github.sha }}
44-
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }}
45-
- name: test coverage
46-
if: matrix.os == 'ubuntu-latest'
47-
uses: coverallsapp/github-action@master
48-
with:
49-
github-token: ${{ secrets.GITHUB_TOKEN }}
50-
path-to-lcov: ./coverage/lcov.info
51-
env:
52-
CI: true
53-
GITHUB_CONTEXT: ${{ toJson(github) }}
54-
GITHUB_BRANCH: ${{ github.ref }}
55-
GITHUB_HEAD_REF: ${{ github.head_ref }}
56-
GITHUB_BASE_REF: ${{ github.base_ref }}
57-
GITHUB_COMMIT: ${{ github.sha }}
58-
- name: publish code coverage to code climate
59-
if: matrix.os == 'ubuntu-latest'
60-
uses: paambaati/[email protected]
61-
env:
62-
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE }}
63-
GITHUB_BRANCH: ${{ github.ref }}
64-
GITHUB_COMMIT: ${{ github.sha }}
65-
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }}
66-
with:
67-
coverageCommand: npm run test
68-
debug: true
69-
- name: npm run it
70-
if: matrix.os == 'ubuntu-latest'
71-
run: |
72-
ls -lha /dev/shm
73-
sudo apt-get update
74-
sudo apt-get install xvfb
75-
sudo chmod 1777 /dev/shm
76-
npm run build
77-
xvfb-run --auto-servernum -- bash -c "npm run it"
78-
env:
79-
GITHUB_BRANCH: ${{ github.ref }}
80-
GITHUB_COMMIT: ${{ github.sha }}
81-
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }}
82-
- name: npm run dist
83-
run: |
84-
npm run dist
85-
env:
86-
GITHUB_BRANCH: ${{ github.ref }}
87-
GITHUB_COMMIT: ${{ github.sha }}
88-
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }}
25+
- uses: actions/checkout@v1
26+
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
27+
uses: actions/setup-node@v1
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
- name: nodejs project information
31+
id: projectinfo
32+
uses: gregoranders/[email protected]
33+
- name: npm install
34+
run: |
35+
npm install
36+
- name: npm run build
37+
run: |
38+
npm run build
39+
- name: npm test
40+
run: |
41+
npm test
42+
- name: test coverage
43+
if: matrix.os == 'ubuntu-latest'
44+
uses: coverallsapp/github-action@master
45+
with:
46+
github-token: ${{ secrets.GITHUB_TOKEN }}
47+
path-to-lcov: ./test/coverage/lcov.info
48+
env:
49+
CI: true
50+
- name: publish code coverage to code climate
51+
if: matrix.os == 'ubuntu-latest'
52+
uses: paambaati/[email protected]
53+
env:
54+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
55+
with:
56+
coverageCommand: npm run test
57+
coverageLocations: |
58+
./test/coverage/lcov.info:lcov
59+
- name: npm run e2e
60+
if: matrix.os == 'ubuntu-latest'
61+
run: |
62+
sudo apt-get update
63+
sudo apt-get install xvfb
64+
sudo chmod 1777 /dev/shm
65+
npm run build
66+
xvfb-run --auto-servernum -- bash -c "npm run e2e"
67+
- name: npm run dist
68+
run: |
69+
npm run dist
70+
env:
71+
PACKAGE_JSON: ${{ steps.projectinfo.outputs.context }}

0 commit comments

Comments
 (0)