-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace lodash with just, replace webpack with rollup, transpile depe…
…ndencies (#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
- Loading branch information
Showing
18 changed files
with
2,075 additions
and
3,434 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const { BABEL_ENV, NODE_ENV } = process.env; | ||
|
||
module.exports = { | ||
presets: [ | ||
[ | ||
'@babel/env', | ||
{ | ||
targets: { | ||
browsers: ['ie >= 11'] | ||
}, | ||
exclude: ['transform-async-to-generator', 'transform-regenerator'], | ||
modules: BABEL_ENV === 'commonjs' ? 'cjs' : false, | ||
loose: true | ||
} | ||
] | ||
], | ||
plugins: [ | ||
// don't use `loose` mode here - need to copy symbols when spreading | ||
'@babel/proposal-object-rest-spread', | ||
NODE_ENV === 'test' && '@babel/transform-modules-commonjs' | ||
].filter(Boolean) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# Table of Contents | ||
|
||
* [Read Me](../README.md) | ||
* [Introduction](introduction/README.md) | ||
* [Motivation](introduction/Motivation.md) | ||
* [Tutorial](introduction/Tutorial.md) | ||
* [API Reference](api/README.md) | ||
* [createAction(s)](api/createAction.md) | ||
* [handleAction(s)](api/handleAction.md) | ||
* [combineActions](api/combineActions.md) | ||
* [External Resources](ExternalResources.md) | ||
* [Changelog](Changelog.md) | ||
* [Contributors](https://github.com/redux-utilities/redux-actions/graphs/contributors) | ||
- [Read Me](../README.md) | ||
- [Introduction](introduction/README.md) | ||
- [Motivation](introduction/Motivation.md) | ||
- [Tutorial](introduction/Tutorial.md) | ||
- [API Reference](api/README.md) | ||
- [createAction(s)](api/createAction.md) | ||
- [handleAction(s)](api/handleAction.md) | ||
- [combineActions](api/combineActions.md) | ||
- [External Resources](ExternalResources.md) | ||
- [Changelog](Changelog.md) | ||
- [Contributors](https://github.com/redux-utilities/redux-actions/graphs/contributors) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# API Reference | ||
|
||
* Methods | ||
* [createAction(s)](/docs/api/createAction.md) | ||
* [handleAction(s)](/docs/api/handleAction.md) | ||
* [combineActions](/docs/api/combineActions.md) | ||
- Methods | ||
- [createAction(s)](/docs/api/createAction.md) | ||
- [handleAction(s)](/docs/api/handleAction.md) | ||
- [combineActions](/docs/api/combineActions.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Introduction | ||
|
||
* [Motivation](/docs/introduction/Motivation.md) | ||
* [Tutorial](/docs/introduction/Tutorial.md) | ||
- [Motivation](/docs/introduction/Motivation.md) | ||
- [Tutorial](/docs/introduction/Tutorial.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import commonjs from 'rollup-plugin-commonjs'; | ||
import nodeResolve from 'rollup-plugin-node-resolve'; | ||
import babel from 'rollup-plugin-babel'; | ||
import replace from 'rollup-plugin-replace'; | ||
import { terser } from 'rollup-plugin-terser'; | ||
|
||
import pkg from './package.json'; | ||
|
||
export default [ | ||
// UMD Development | ||
{ | ||
input: 'src/index.js', | ||
output: { | ||
file: 'dist/redux-actions.js', | ||
format: 'umd', | ||
name: 'ReduxActions', | ||
indent: false | ||
}, | ||
plugins: [ | ||
nodeResolve(), | ||
commonjs(), | ||
babel(), | ||
replace({ 'process.env.NODE_ENV': JSON.stringify('development') }) | ||
] | ||
}, | ||
|
||
// UMD Production | ||
{ | ||
input: 'src/index.js', | ||
output: { | ||
file: 'dist/redux-actions.min.js', | ||
format: 'umd', | ||
name: 'ReduxActions', | ||
indent: false | ||
}, | ||
plugins: [ | ||
nodeResolve(), | ||
commonjs(), | ||
babel(), | ||
replace({ 'process.env.NODE_ENV': JSON.stringify('production') }), | ||
terser({ | ||
compress: { | ||
pure_getters: true, | ||
unsafe: true, | ||
unsafe_comps: true, | ||
warnings: false | ||
} | ||
}) | ||
] | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import camelCase from 'lodash.camelcase'; | ||
import camelCase from 'to-camel-case'; | ||
|
||
const namespacer = '/'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.