Skip to content

Commit 683cd8e

Browse files
committed
fix: use lodash instead of modular builds, set up poly-package
BREAKING CHANGE: this is now a poly package with ES modules, so bundlers like webpack may need to be reconfigured to transpile this package.
2 parents b83aa7a + 83bcb67 commit 683cd8e

Some content is hidden

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

56 files changed

+1576
-208
lines changed

.babelrc

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
{
2+
"plugins": [
3+
"syntax-dynamic-import",
4+
"transform-class-properties",
5+
"transform-export-extensions",
6+
"transform-object-rest-spread",
7+
"lodash"
8+
],
29
"presets": [
310
"stage-1", "flow"
411
],
@@ -10,6 +17,17 @@
1017
],
1118
"plugins": [
1219
"transform-runtime",
20+
"lodash"
21+
]
22+
},
23+
"coverage": {
24+
"presets": [
25+
["env", {"targets": {"node": "current"}}],
26+
"flow"
27+
],
28+
"plugins": [
29+
"transform-runtime",
30+
"lodash",
1331
"istanbul"
1432
]
1533
},
@@ -19,7 +37,8 @@
1937
"stage-1", "flow"
2038
],
2139
"plugins": [
22-
"transform-runtime"
40+
"transform-runtime",
41+
"lodash"
2342
]
2443
},
2544
}

.flowconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
[ignore]
22
<PROJECT_ROOT>/lib/.*
3-
<PROJECT_ROOT>/module/.*
3+
<PROJECT_ROOT>/es/.*
4+
<PROJECT_ROOT>/node_modules/fbjs/.*
5+
<PROJECT_ROOT>/node_modules/.*/fbjs/.*
46

57
[include]
68
./src

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ coverage
22
.nyc_output
33
node_modules
44
lib
5-
<<<<<<< HEAD
6-
7-
=======
85
module
6+
es
97
.eslintcache
10-
>>>>>>> bb3ada4e8867cc3ed4d5995dc8f48afa090f65d0

.npmignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
coverage
22
.nyc_output
3+
src
4+
lib
35
test
46
scripts
57
node_modules
68
.babelrc
79
.eslintrc
810
.travis.yml
9-
<<<<<<< HEAD
10-
11-
=======
1211
.eslintcache
1312
.idea
1413
solano.yml
1514
renovate.json
1615
commitlint.config.js
1716
flow-typed
18-
>>>>>>> bb3ada4e8867cc3ed4d5995dc8f48afa090f65d0

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ This package and [`mindfront-redux-utils-immutable`](https://github.com/jcoreio/
1515

1616
There is a downside to this approach: debugging is more difficult, because it's harder to trace where a subreducer is getting called from (or why it's not getting called). This package tries to mitigate that problem as much as it can by saving stack traces of where reducers were created and combined.
1717

18+
## Legacy build note
19+
20+
If you are building for legacy browsers with webpack or similar bundlers, make sure to add a rule
21+
to transpile this package with babel.
22+
1823
## createReducer([initialState: any,] actionHandlers: {[actionType: string]: Reducer}): Reducer
1924
```js
2025
import {createReducer} from 'mindfront-redux-utils';

flow-typed/npm/@commitlint/cli_vx.x.x.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: 6b3e411701babc2e6f6520580da2616a
2-
// flow-typed version: <<STUB>>/@commitlint/cli_v^5.2.5/flow_v0.61.0
1+
// flow-typed signature: 6683e317b86cbc6e4f7ba2ed155c1f4e
2+
// flow-typed version: <<STUB>>/@commitlint/cli_v^6.0.2/flow_v0.74.0
33

44
/**
55
* This is an autogenerated libdef stub for:
@@ -38,6 +38,10 @@ declare module '@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.conf
3838
declare module.exports: any;
3939
}
4040

41+
declare module '@commitlint/cli/fixtures/issue-prefixes/commitlint.config' {
42+
declare module.exports: any;
43+
}
44+
4145
declare module '@commitlint/cli/fixtures/outer-scope/commitlint.config' {
4246
declare module.exports: any;
4347
}
@@ -95,6 +99,9 @@ declare module '@commitlint/cli/fixtures/inner-scope/commitlint.config.js' {
9599
declare module '@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.config.js' {
96100
declare module.exports: $Exports<'@commitlint/cli/fixtures/inner-scope/inner-scope/commitlint.config'>;
97101
}
102+
declare module '@commitlint/cli/fixtures/issue-prefixes/commitlint.config.js' {
103+
declare module.exports: $Exports<'@commitlint/cli/fixtures/issue-prefixes/commitlint.config'>;
104+
}
98105
declare module '@commitlint/cli/fixtures/outer-scope/commitlint.config.js' {
99106
declare module.exports: $Exports<'@commitlint/cli/fixtures/outer-scope/commitlint.config'>;
100107
}

flow-typed/npm/@commitlint/config-conventional_vx.x.x.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: 211481ade58a5d1b48d157e08d068cc3
2-
// flow-typed version: <<STUB>>/@commitlint/config-conventional_v^5.2.3/flow_v0.61.0
1+
// flow-typed signature: 12857df53d6bf6d09eb4234e7d8f816c
2+
// flow-typed version: <<STUB>>/@commitlint/config-conventional_v^6.0.2/flow_v0.74.0
33

44
/**
55
* This is an autogenerated libdef stub for:
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// flow-typed signature: 50c82f33e50286a7bcd0e13a4a351f58
2+
// flow-typed version: <<STUB>>/@jedwards1211/commitlint-config_v^1.0.0/flow_v0.74.0
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* '@jedwards1211/commitlint-config'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
declare module '@jedwards1211/commitlint-config' {
17+
declare module.exports: any;
18+
}
19+
20+
/**
21+
* We include stubs for each file inside this npm package in case you need to
22+
* require those files directly. Feel free to delete any files that aren't
23+
* needed.
24+
*/
25+
declare module '@jedwards1211/commitlint-config/commitlint.config' {
26+
declare module.exports: any;
27+
}
28+
29+
// Filename aliases
30+
declare module '@jedwards1211/commitlint-config/commitlint.config.js' {
31+
declare module.exports: $Exports<'@jedwards1211/commitlint-config/commitlint.config'>;
32+
}

flow-typed/npm/@jedwards1211/eslint-config-flow_vx.x.x.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: 7be3f328e60a5bb311c142ba0bf1e16d
2-
// flow-typed version: <<STUB>>/@jedwards1211/eslint-config-flow_v^1.0.0/flow_v0.61.0
1+
// flow-typed signature: 3b5c1df4985b263aa39bc46f637e4be0
2+
// flow-typed version: <<STUB>>/@jedwards1211/eslint-config-flow_v^1.0.0/flow_v0.74.0
33

44
/**
55
* This is an autogenerated libdef stub for:

flow-typed/npm/@jedwards1211/eslint-config_vx.x.x.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: 6be0a15102c7305fbc30e7744c9e0e60
2-
// flow-typed version: <<STUB>>/@jedwards1211/eslint-config_v^1.0.0/flow_v0.61.0
1+
// flow-typed signature: b707a1312ba7106f46b25d0fa419b18e
2+
// flow-typed version: <<STUB>>/@jedwards1211/eslint-config_v^2.0.0/flow_v0.74.0
33

44
/**
55
* This is an autogenerated libdef stub for:

0 commit comments

Comments
 (0)