Skip to content

Commit f263d00

Browse files
committed
🔧move to CRA and improve dev tools
- update knit - add rollup for umd - add create-react-app, prettier, huskey, lint-staged, removes custom configs - run code through prettier - add deploy step to gh-pages - use NODE_PATH with CRA - add .env file - remove top level lint command since yarn does not install subdep bins properly
1 parent ebcd97e commit f263d00

37 files changed

+13918
-2402
lines changed

‎.babelrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"presets": ["@knit/socks-react"]
2+
"presets": ["react-app"]
33
}

‎.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NODE_PATH=src/modules

‎.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/node_modules
22
dist
3+
build

‎.eslintrc.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
module.exports = {
2-
extends: "@knit/socks-react",
2+
extends: [
3+
"react-app",
4+
'prettier',
5+
'prettier/flowtype',
6+
],
7+
plugins: [
8+
'prettier',
9+
],
10+
rules: {
11+
"prettier/prettier": 1
12+
}
313
};

‎.flowconfig

+3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
.*/node_modules/fbjs/.*
44
.*/node_modules/.*/test/.*
55
.*/dist/.*
6+
.*/.history/.*
67

78
[options]
9+
module.system.node.resolve_dirname=node_modules
10+
module.system.node.resolve_dirname=src/modules
811
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe
912
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue
1013
suppress_comment=\\(.\\|\n\\)*\\$FlowIgnore

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ coverage
3232

3333
# build folders
3434
dist
35+
build
3536

3637
# OS
3738
.DS_Store

‎.travis.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
---
2+
git:
3+
depth: 10
14
language: node_js
25
node_js:
3-
- "6"
6+
- "6"
47
cache: yarn
8+
notification:
9+
email: false
10+
install:
11+
- yarn
512
script:
6-
- yarn lint
13+
- yarn lint

‎modules/node_modules/@oncojs/react-sapien/index.js

-13
This file was deleted.

‎modules/node_modules/@oncojs/sapien/colorCodes.js

-33
This file was deleted.

0 commit comments

Comments
 (0)