Skip to content

Commit 3f04fde

Browse files
committed
2.0 GA
2 parents b7a928d + 544de16 commit 3f04fde

Some content is hidden

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

81 files changed

+20931
-5716
lines changed

.babelrc

-16
This file was deleted.

.eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
dist/
22
node_modules/
3+
pkg/
4+
coverage/
5+
playground/

.eslintrc.js

+10-27
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,20 @@ module.exports = {
22
env: {
33
browser: true,
44
node: true,
5-
es6: true,
65
jest: true,
6+
es6: true,
7+
'cypress/globals': true,
78
},
8-
settings: {
9-
react: {
10-
version: 'detect',
11-
flowVersion: '0.90.0',
12-
},
13-
},
9+
plugins: ['cypress'],
1410
extends: [
15-
'eslint:recommended',
16-
'plugin:react/recommended',
17-
'plugin:flowtype/recommended',
18-
'plugin:jsx-a11y/recommended',
19-
'prettier',
11+
'@djthoms/eslint-config',
12+
'@djthoms/eslint-config/react',
13+
'@djthoms/eslint-config/typescript',
14+
'plugin:cypress/recommended',
2015
],
21-
parser: 'babel-eslint',
22-
parserOptions: {
23-
ecmaFeatures: {
24-
jsx: true,
25-
},
26-
ecmaVersion: 2018,
27-
sourceType: 'module',
28-
},
29-
plugins: ['react', 'flowtype', 'prettier'],
3016
rules: {
31-
indent: ['error', 4],
32-
'linebreak-style': ['error', 'unix'],
33-
quotes: ['error', 'single'],
34-
semi: ['error', 'always'],
35-
'react/prop-types': 1,
36-
'no-console': 'warn'
17+
'@typescript-eslint/explicit-function-return-type': 0,
18+
'@typescript-eslint/ban-ts-ignore': 'warn',
19+
'@typescript-eslint/no-this-alias': 'warn',
3720
},
3821
};

.flowconfig

-16
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Create a report to help us improve
44
title: ''
55
labels: ''
66
assignees: ''
7-
87
---
98

109
**Describe the bug**
@@ -14,6 +13,7 @@ A clear and concise description of what the bug is.
1413

1514
**To Reproduce**
1615
Steps to reproduce the behavior:
16+
1717
1. Go to '...'
1818
2. Click on '....'
1919
3. Scroll down to '....'
@@ -26,15 +26,17 @@ A clear and concise description of what you expected to happen.
2626
If applicable, add screenshots to help explain your problem.
2727

2828
**Desktop (please complete the following information):**
29-
- OS: [e.g. iOS]
30-
- Browser [e.g. chrome, safari]
31-
- Version [e.g. 22]
29+
30+
- OS: [e.g. iOS]
31+
- Browser [e.g. chrome, safari]
32+
- Version [e.g. 22]
3233

3334
**Smartphone (please complete the following information):**
34-
- Device: [e.g. iPhone6]
35-
- OS: [e.g. iOS8.1]
36-
- Browser [e.g. stock browser, safari]
37-
- Version [e.g. 22]
35+
36+
- Device: [e.g. iPhone6]
37+
- OS: [e.g. iOS8.1]
38+
- Browser [e.g. stock browser, safari]
39+
- Version [e.g. 22]
3840

3941
**Additional context**
4042
Add any other context about the problem here.

.github/workflows/nodejs.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
name: Node CI
2-
32
on: [push, pull_request]
4-
53
jobs:
64
build:
7-
8-
runs-on: ubuntu-latest
9-
5+
runs-on: ubuntu-18.04
106
strategy:
117
matrix:
12-
node-version: [8.x, 10.x, 12.x]
13-
8+
node-version: [10.x, 12.x, 14.x]
149
steps:
1510
- uses: actions/checkout@v1
1611
- name: Use Node.js ${{ matrix.node-version }}
@@ -20,7 +15,14 @@ jobs:
2015
- name: npm install, build, and test
2116
run: |
2217
npm ci
23-
npm test
18+
npm t
2419
npm run build --if-present
2520
env:
2621
CI: true
22+
# - name: e2e tests
23+
# uses: cypress-io/github-action@v1
24+
# with:
25+
# start: npm run start:ci
26+
# browser: chrome
27+
# headless: true
28+
# wait-on: 'http://localhost:5000'

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
node_modules/
22
coverage/
33
dist/
4-
docs/build/
4+
pkg/
55

66
# Logs
77
logs
@@ -72,3 +72,6 @@ yarn-error.log
7272
.pnp.js
7373
# Yarn Integrity file
7474
.yarn-integrity
75+
76+
# Cypress
77+
cypress/videos/

.npmignore

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ docs/
22
src/
33
node_modules/
44
coverage/
5-
flow-typed/
65
*.gif
7-
.travis.yml
86
.eslintrc.js
97
.eslintignore
108
.gitignore
119
.prettierrc
12-
site/
10+
.circleci/
11+
.github/
12+
playground/

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/factory/utils/propUtils.ts

.prettierrc

-5
This file was deleted.

.travis.yml

-24
This file was deleted.

.vscode/extensions.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"editorconfig.editorconfig",
4+
"dbaeumer.vscode-eslint",
5+
"esbenp.prettier-vscode",
6+
"christian-kohler.npm-intellisense"
7+
]
8+
}

.vscode/launch.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "node",
6+
"request": "launch",
7+
"name": "Jest All",
8+
"program": "${workspaceFolder}/node_modules/.bin/jest",
9+
"args": ["--runInBand"],
10+
"console": "integratedTerminal",
11+
"internalConsoleOptions": "neverOpen",
12+
"disableOptimisticBPs": true,
13+
"windows": {
14+
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
15+
}
16+
},
17+
{
18+
"type": "node",
19+
"request": "launch",
20+
"name": "Jest Current File",
21+
"program": "${workspaceFolder}/node_modules/.bin/jest",
22+
"args": ["${relativeFile}", "--config", "jest.config.js", "--collectCoverage=false"],
23+
"console": "integratedTerminal",
24+
"internalConsoleOptions": "neverOpen",
25+
"disableOptimisticBPs": true,
26+
"windows": {
27+
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
28+
}
29+
}
30+
]
31+
}

.vscode/settings.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"typescript.updateImportsOnFileMove.enabled": "always",
3+
"eslint.validate": [
4+
"javascript",
5+
"javascriptreact",
6+
"typescript",
7+
"typescriptreact"
8+
]
9+
}

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Dennis Thompson
3+
Copyright (c) 2020 Dennis Thompson
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)