Skip to content

Commit

Permalink
feat: browserlist to target defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
orlando committed May 7, 2019
1 parent 4c88ee1 commit e3b15e4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 17 deletions.
5 changes: 4 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"presets": [
["@babel/preset-env", { "useBuiltIns": "entry", "corejs": "3" }],
[
"@babel/preset-env",
{ "useBuiltIns": "entry", "corejs": "3", "debug": true }
],
["react-app", { "absoluteRuntime": false }]
]
}
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**/__mocks__/**
**/__fixtures__/**
**/__tests__/**
27 changes: 13 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,8 @@
"dist",
"README.md"
],
"dependencies": {
"@material-ui/core": "3.9.2",
"@material-ui/icons": "3.0.2",
"core-js": "3",
"lodash": "4.17.11",
"moment": "2.24.0",
"react-popper": "1.3.3",
"styled-components": "4.2.0"
},
"scripts": {
"build": "rm -rf dist && NODE_ENV=production babel src/lib --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,__snapshots__",
"build": "rm -rf dist && NODE_ENV=production babel src/lib --out-dir dist --copy-files --ignore src/lib/**/__tests__,src/lib/**/__fixtures__",
"commit": "npx git-cz",
"eject": "react-scripts eject",
"format:all": "prettier .prettierrc --write '**/*.*(js|jsx|md|mdx)'",
Expand All @@ -34,10 +25,7 @@
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
"defaults"
],
"repository": {
"type": "git",
Expand All @@ -50,6 +38,15 @@
"react": "16.8.6",
"react-dom": "16.8.6"
},
"dependencies": {
"@material-ui/core": "3.9.2",
"@material-ui/icons": "3.0.2",
"core-js": "3",
"lodash": "4.17.11",
"moment": "2.24.0",
"react-popper": "1.3.3",
"styled-components": "4.2.0"
},
"devDependencies": {
"@babel/cli": "7.4.4",
"@babel/core": "7.4.4",
Expand All @@ -68,6 +65,8 @@
"lint-staged": "8.1.6",
"prettier": "1.17.0",
"pretty-quick": "1.10.0",
"react": "16.8.6",
"react-dom": "16.8.6",
"react-scripts": "3.0.0",
"react-testing-library": "6.1.2",
"semantic-release": "15.13.3",
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12626,7 +12626,7 @@ react-docgen@^3.0.0:
node-dir "^0.1.10"
recast "^0.16.0"

react-dom@^16.7.0:
react-dom@16.8.6, react-dom@^16.7.0:
version "16.8.6"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.8.6.tgz#71d6303f631e8b0097f56165ef608f051ff6e10f"
integrity sha512-1nL7PIq9LTL3fthPqwkvr2zY7phIPjYrT0jp4HjyEQrEROnw4dG41VVwi/wfoCneoleqrNX7iAD+pXebJZwrwA==
Expand Down Expand Up @@ -12852,7 +12852,7 @@ react-transition-group@^2.2.1:
prop-types "^15.6.2"
react-lifecycles-compat "^3.0.4"

react@^16.7.0:
react@16.8.6, react@^16.7.0:
version "16.8.6"
resolved "https://registry.yarnpkg.com/react/-/react-16.8.6.tgz#ad6c3a9614fd3a4e9ef51117f54d888da01f2bbe"
integrity sha512-pC0uMkhLaHm11ZSJULfOBqV4tIZkx87ZLvbbQYunNixAAvjnC+snJCg0XQXn9VIsttVsbZP/H/ewzgsd5fxKXw==
Expand Down

0 comments on commit e3b15e4

Please sign in to comment.