Skip to content

Commit ef5f9d8

Browse files
heygradytimche
authored andcommitted
replace lodash with just, replace webpack with rollup, transpile dependencies (#332)
* replace lodash with just, replace webpack with rollup, bundle dependencies, fixes #331 * removing some packages, bumping some packages * bump reduce-reducers * revert just-camel-case; use to-camel-case; upgrade xo * use babel for commonjs and esm builds
1 parent 51de389 commit ef5f9d8

18 files changed

+2075
-3434
lines changed

.babelrc

Lines changed: 0 additions & 20 deletions
This file was deleted.

.babelrc.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const { BABEL_ENV, NODE_ENV } = process.env;
2+
3+
module.exports = {
4+
presets: [
5+
[
6+
'@babel/env',
7+
{
8+
targets: {
9+
browsers: ['ie >= 11']
10+
},
11+
exclude: ['transform-async-to-generator', 'transform-regenerator'],
12+
modules: BABEL_ENV === 'commonjs' ? 'cjs' : false,
13+
loose: true
14+
}
15+
]
16+
],
17+
plugins: [
18+
// don't use `loose` mode here - need to copy symbols when spreading
19+
'@babel/proposal-object-rest-spread',
20+
NODE_ENV === 'test' && '@babel/transform-modules-commonjs'
21+
].filter(Boolean)
22+
};

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
1010
### Table of Contents
1111

12-
* [Getting Started](#getting-started)
13-
* [Installation](#installation)
14-
* [Usage](#usage)
15-
* [Documentation](#documentation)
12+
- [Getting Started](#getting-started)
13+
- [Installation](#installation)
14+
- [Usage](#usage)
15+
- [Documentation](#documentation)
1616

1717
# Getting Started
1818

@@ -63,8 +63,8 @@ export default reducer;
6363

6464
## Documentation
6565

66-
* [Introduction](https://redux-actions.js.org/docs/introduction/index.html)
67-
* [API](https://redux-actions.js.org/docs/api/index.html)
68-
* [External Resources](https://redux-actions.js.org/docs/ExternalResources.html)
69-
* [Changelog](https://redux-actions.js.org/docs/Changelog.html)
70-
* [Contributors](https://redux-actions.js.org/docs/Contributors.html)
66+
- [Introduction](https://redux-actions.js.org/docs/introduction/index.html)
67+
- [API](https://redux-actions.js.org/docs/api/index.html)
68+
- [External Resources](https://redux-actions.js.org/docs/ExternalResources.html)
69+
- [Changelog](https://redux-actions.js.org/docs/Changelog.html)
70+
- [Contributors](https://redux-actions.js.org/docs/Contributors.html)

docs/ExternalResources.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
Use redux-actions in combination with [FSA](https://github.com/redux-utilities/flux-standard-action)-compliant libraries.
44

5-
* [redux-promise](https://github.com/redux-utilities/redux-promise) - Promise middleware
6-
* [redux-rx](https://github.com/acdlite/redux-rx) - Includes observable middleware.
5+
- [redux-promise](https://github.com/redux-utilities/redux-promise) - Promise middleware
6+
- [redux-rx](https://github.com/acdlite/redux-rx) - Includes observable middleware.

docs/README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Table of Contents
22

3-
* [Read Me](../README.md)
4-
* [Introduction](introduction/README.md)
5-
* [Motivation](introduction/Motivation.md)
6-
* [Tutorial](introduction/Tutorial.md)
7-
* [API Reference](api/README.md)
8-
* [createAction(s)](api/createAction.md)
9-
* [handleAction(s)](api/handleAction.md)
10-
* [combineActions](api/combineActions.md)
11-
* [External Resources](ExternalResources.md)
12-
* [Changelog](Changelog.md)
13-
* [Contributors](https://github.com/redux-utilities/redux-actions/graphs/contributors)
3+
- [Read Me](../README.md)
4+
- [Introduction](introduction/README.md)
5+
- [Motivation](introduction/Motivation.md)
6+
- [Tutorial](introduction/Tutorial.md)
7+
- [API Reference](api/README.md)
8+
- [createAction(s)](api/createAction.md)
9+
- [handleAction(s)](api/handleAction.md)
10+
- [combineActions](api/combineActions.md)
11+
- [External Resources](ExternalResources.md)
12+
- [Changelog](Changelog.md)
13+
- [Contributors](https://github.com/redux-utilities/redux-actions/graphs/contributors)

docs/api/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# API Reference
22

3-
* Methods
4-
* [createAction(s)](/docs/api/createAction.md)
5-
* [handleAction(s)](/docs/api/handleAction.md)
6-
* [combineActions](/docs/api/combineActions.md)
3+
- Methods
4+
- [createAction(s)](/docs/api/createAction.md)
5+
- [handleAction(s)](/docs/api/handleAction.md)
6+
- [combineActions](/docs/api/combineActions.md)

docs/api/combineActions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# API Reference for combineActions
22

3-
* [Methods](#methods)
4-
* [combineActions](#combineactions)
5-
* [`combineActions(...types)`](#combineactionstypes)
3+
- [Methods](#methods)
4+
- [combineActions](#combineactions)
5+
- [`combineActions(...types)`](#combineactionstypes)
66

77
## Methods
88

docs/api/createAction.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# API Reference for createAction(s)
22

3-
* [Methods](#methods)
4-
* [createAction](#createaction)
5-
* [`createAction(type)`](#createactiontype)
6-
* [`createAction(type, payloadCreator)`](#createactiontype-payloadcreator)
7-
* [`createAction(type, payloadCreator, metaCreator)`](#createactiontype-payloadcreator-metacreator)
8-
* [createActions](#createactions)
9-
* [`createActions(actionMap)`](#createactionsactionmap)
10-
* [`createActions(actionMap, ...identityActions)`](#createactionsactionmap-identityactions)
3+
- [Methods](#methods)
4+
- [createAction](#createaction)
5+
- [`createAction(type)`](#createactiontype)
6+
- [`createAction(type, payloadCreator)`](#createactiontype-payloadcreator)
7+
- [`createAction(type, payloadCreator, metaCreator)`](#createactiontype-payloadcreator-metacreator)
8+
- [createActions](#createactions)
9+
- [`createActions(actionMap)`](#createactionsactionmap)
10+
- [`createActions(actionMap, ...identityActions)`](#createactionsactionmap-identityactions)
1111

1212
## Methods
1313

@@ -150,10 +150,10 @@ import { createActions } from 'redux-actions';
150150
151151
`actionMap` is an object which can optionally have a recursive data structure, with action types as keys, and whose values **must** be either
152152
153-
* a function, which is the payload creator for that action
154-
* an array with `payload` and `meta` functions in that order, as in [`createAction`](#createaction)
155-
* `meta` is **required** in this case \(otherwise use the function form above\)
156-
* an `actionMap`
153+
- a function, which is the payload creator for that action
154+
- an array with `payload` and `meta` functions in that order, as in [`createAction`](#createaction)
155+
- `meta` is **required** in this case \(otherwise use the function form above\)
156+
- an `actionMap`
157157
158158
###### EXAMPLE
159159

docs/api/handleAction.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# API Reference for handleAction(s)
22

3-
* [Methods](#methods)
4-
* [handleAction](#handleaction)
5-
* [`handleAction(type, reducer, defaultState)`](#handleactiontype-reducer-defaultstate)
6-
* [`handleAction(type, reducerMap, defaultState)`](#handleactiontype-reducermap-defaultstate)
7-
* [handleActions](#handleactions)
8-
* [`handleActions(reducerMap, defaultState)`](#handleactionsreducermap-defaultstate)
3+
- [Methods](#methods)
4+
- [handleAction](#handleaction)
5+
- [`handleAction(type, reducer, defaultState)`](#handleactiontype-reducer-defaultstate)
6+
- [`handleAction(type, reducerMap, defaultState)`](#handleactiontype-reducermap-defaultstate)
7+
- [handleActions](#handleactions)
8+
- [`handleActions(reducerMap, defaultState)`](#handleactionsreducermap-defaultstate)
99

1010
## Methods
1111

docs/introduction/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Introduction
22

3-
* [Motivation](/docs/introduction/Motivation.md)
4-
* [Tutorial](/docs/introduction/Tutorial.md)
3+
- [Motivation](/docs/introduction/Motivation.md)
4+
- [Tutorial](/docs/introduction/Tutorial.md)

0 commit comments

Comments
 (0)