Skip to content

Commit

Permalink
fix: use lodash instead of lodash modular packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed Jun 19, 2018
1 parent c1111d7 commit 570c718
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 18 deletions.
35 changes: 25 additions & 10 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
{
"presets": ["es2015", "stage-1", "flow", "react"],
"plugins": ["transform-runtime", "flow-react-proptypes"],
"env": {
"test": {
"plugins": ["istanbul"]
presets: [
'es2015',
'stage-1',
'flow',
'react',
],
plugins: [
'transform-runtime',
'flow-react-proptypes',
'lodash',
],
env: {
test: {
plugins: [
'istanbul',
'lodash',
],
},
"production": {
"plugins": ["transform-react-constant-elements"]
}
}
}
production: {
plugins: [
'transform-react-constant-elements',
'lodash',
],
},
},
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"babel-eslint": "^8.2.1",
"babel-plugin-flow-react-proptypes": "^13.0.2",
"babel-plugin-istanbul": "^4.1.5",
"babel-plugin-lodash": "^3.3.4",
"babel-plugin-transform-react-constant-elements": "^6.9.1",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-preset-es2015": "^6.22.0",
Expand All @@ -89,7 +90,6 @@
"eslint-plugin-flowtype": "^2.41.0",
"eslint-plugin-react": "^7.5.1",
"eslint-watch": "^3.1.3",
"flow-bin": "^0.63.1",
"flow-bin": "^0.70.0",
"flow-copy-source": "^1.2.1",
"flow-watch": "^1.1.0",
Expand All @@ -114,7 +114,7 @@
},
"dependencies": {
"inline-style-prefixer": "^4.0.0",
"lodash.range": "^3.2.0",
"lodash": "^4.17.10",
"prop-types": "^15.6.0"
}
}
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import * as React from 'react'
import Prefixer from 'inline-style-prefixer'
import range from 'lodash.range'
import { range } from "lodash"

type TransitionState = 'in' | 'out' | 'entering' | 'leaving'

Expand Down
39 changes: 34 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@
dependencies:
"@babel/types" "7.0.0-beta.44"

"@babel/helper-module-imports@^7.0.0-beta.49":
version "7.0.0-beta.51"
resolved "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.0.0-beta.51.tgz#ce00428045fbb7d5ebc0ea7bf835789f15366ab2"
dependencies:
"@babel/types" "7.0.0-beta.51"
lodash "^4.17.5"

"@babel/[email protected]":
version "7.0.0-beta.44"
resolved "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.44.tgz#c0b351735e0fbcb3822c8ad8db4e583b05ebd9dc"
Expand Down Expand Up @@ -78,6 +85,14 @@
lodash "^4.2.0"
to-fast-properties "^2.0.0"

"@babel/[email protected]", "@babel/types@^7.0.0-beta.49":
version "7.0.0-beta.51"
resolved "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.51.tgz#d802b7b543b5836c778aa691797abf00f3d97ea9"
dependencies:
esutils "^2.0.2"
lodash "^4.17.5"
to-fast-properties "^2.0.0"

"@commitlint/cli@^6.0.2":
version "6.1.3"
resolved "https://registry.npmjs.org/@commitlint/cli/-/cli-6.1.3.tgz#4606e138b05b43034dc84af15da18e2139058537"
Expand Down Expand Up @@ -1221,6 +1236,16 @@ babel-plugin-istanbul@^4.1.5:
istanbul-lib-instrument "^1.10.1"
test-exclude "^4.2.1"

babel-plugin-lodash@^3.3.4:
version "3.3.4"
resolved "https://registry.npmjs.org/babel-plugin-lodash/-/babel-plugin-lodash-3.3.4.tgz#4f6844358a1340baed182adbeffa8df9967bc196"
dependencies:
"@babel/helper-module-imports" "^7.0.0-beta.49"
"@babel/types" "^7.0.0-beta.49"
glob "^7.1.1"
lodash "^4.17.10"
require-package-name "^2.0.1"

babel-plugin-macros@^2.2.0:
version "2.2.0"
resolved "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-2.2.0.tgz#31fc16748d6480697a517f692dc4421cb7bff0cc"
Expand Down Expand Up @@ -4412,7 +4437,7 @@ glob-to-regexp@^0.3.0:
version "0.3.0"
resolved "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab"

[email protected], glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.0.6, glob@^7.1.2:
[email protected], glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.0.6, glob@^7.1.1, glob@^7.1.2:
version "7.1.2"
resolved "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15"
dependencies:
Expand Down Expand Up @@ -5833,10 +5858,6 @@ [email protected], lodash.pick@^4.4.0:
version "4.4.0"
resolved "https://registry.npmjs.org/lodash.pick/-/lodash.pick-4.4.0.tgz#52f05610fff9ded422611441ed1fc123a03001b3"

lodash.range@^3.2.0:
version "3.2.0"
resolved "https://registry.npmjs.org/lodash.range/-/lodash.range-3.2.0.tgz#f461e588f66683f7eadeade513e38a69a565a15d"

[email protected]:
version "4.1.1"
resolved "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz#39d714a35357147837aefd64b5dcbb16becd8f8d"
Expand Down Expand Up @@ -5890,6 +5911,10 @@ lodash@^4.13.1, lodash@^4.14.0, lodash@^4.15.0, lodash@^4.17.0, lodash@^4.17.3,
version "4.17.5"
resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511"

lodash@^4.17.10:
version "4.17.10"
resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7"

log-driver@^1.2.5:
version "1.2.7"
resolved "https://registry.npmjs.org/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8"
Expand Down Expand Up @@ -8094,6 +8119,10 @@ require-main-filename@^1.0.1:
version "1.0.1"
resolved "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1"

require-package-name@^2.0.1:
version "2.0.1"
resolved "https://registry.npmjs.org/require-package-name/-/require-package-name-2.0.1.tgz#c11e97276b65b8e2923f75dabf5fb2ef0c3841b9"

require-uncached@^1.0.3:
version "1.0.3"
resolved "https://registry.npmjs.org/require-uncached/-/require-uncached-1.0.3.tgz#4e0d56d6c9662fd31e43011c4b95aa49955421d3"
Expand Down

0 comments on commit 570c718

Please sign in to comment.