This repository has been archived by the owner on Dec 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
4,469 additions
and
3,191 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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"presets": [ "es2015", "stage-1" ] | ||
"presets": [ | ||
"@babel/preset-env", | ||
"@babel/preset-typescript" | ||
] | ||
} |
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 |
---|---|---|
|
@@ -99,4 +99,6 @@ workflows: | |
branches: | ||
only: | ||
- master | ||
- next | ||
- beta | ||
- alpha |
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 |
---|---|---|
|
@@ -3,6 +3,5 @@ npm-debug.log | |
coverage | ||
.nyc_output | ||
dist | ||
.rpt2_cache | ||
.prettierrc | ||
compiled | ||
yarn-error.log | ||
.idea |
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,8 @@ | ||
**/.vscode | ||
**/android | ||
**/build | ||
**/compiled | ||
**/dist | ||
**/ios | ||
**/package.json | ||
**/release |
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,5 @@ | ||
{ | ||
"printWidth": 100, | ||
"semi": false, | ||
"trailingComma": "es5" | ||
} |
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,47 @@ | ||
declare module 'reactotron-redux' { | ||
import { AnyAction } from 'redux'; | ||
import { ReactotronPlugin, Reactotron } from 'reactotron-react-native'; | ||
|
||
interface PluginConfig { | ||
/** | ||
* If you have some actions you'd rather just not see (for example, | ||
* redux-saga triggers a little bit of noise), you can suppress them by | ||
* using this property and passing the action types you want to suppress. | ||
*/ | ||
except?: string[]; | ||
/** | ||
* isActionImportant is a function which receives an action and returns a | ||
* boolean. true will cause the action to show up in the Reactotron app | ||
* with a highlight. | ||
*/ | ||
isActionImportant?: (action: AnyAction) => boolean; | ||
/** | ||
* onBackup fires when we're about to transfer a copy of your Redux global | ||
* state tree and send it to the server. It accepts an object called state | ||
* and returns an object called state. | ||
* | ||
* You can use this to prevent big, sensitive, or transient data from going | ||
* to Reactotron. | ||
*/ | ||
onBackup?: (state: any) => any; | ||
/** | ||
* onRestore is the opposite of onBackup. It will fire when the Reactotron | ||
* app sends a new copy of state to the app. | ||
*/ | ||
onRestore?: (state: any) => any; | ||
} | ||
|
||
export function reactotronRedux(pluginConfig?: PluginConfig): (tron: Reactotron) => ReactotronPlugin; | ||
} | ||
|
||
// Module Augmentation for plugin | ||
declare module 'reactotron-react-native' { | ||
import { StoreCreator } from 'redux'; | ||
|
||
export interface Reactotron { | ||
/** | ||
* Wraps Redux's createStore for sane configuration | ||
*/ | ||
createStore: StoreCreator; | ||
} | ||
} |
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,15 +1,23 @@ | ||
import babel from 'rollup-plugin-babel' | ||
import resolve from "rollup-plugin-node-resolve" | ||
import babel from "rollup-plugin-babel" | ||
import filesize from "rollup-plugin-filesize" | ||
import minify from "rollup-plugin-babel-minify" | ||
|
||
export default { | ||
entry: 'src/index.js', | ||
format: 'cjs', | ||
input: "src/index.ts", | ||
output: { | ||
file: "dist/index.js", | ||
format: "cjs", | ||
}, | ||
plugins: [ | ||
babel({ | ||
babelrc: false, | ||
runtimeHelpers: true, | ||
presets: ['es2015-rollup', 'stage-1'] | ||
}) | ||
resolve({ extensions: [".ts"] }), | ||
babel({ extensions: [".ts"], runtimeHelpers: true }), | ||
process.env.NODE_ENV === "production" | ||
? minify({ | ||
comments: false, | ||
}) | ||
: null, | ||
filesize(), | ||
], | ||
dest: 'dist/index.js', | ||
external: ['ramda', 'redux', 'ramdasauce'] | ||
external: ["redux"], | ||
} |
Oops, something went wrong.