Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
Merge branch 'beta'
Browse files Browse the repository at this point in the history
  • Loading branch information
rmevans9 committed Mar 2, 2019
2 parents 42fd1bf + eea3b7b commit c773bd1
Show file tree
Hide file tree
Showing 50 changed files with 4,469 additions and 3,191 deletions.
5 changes: 4 additions & 1 deletion .babelrc
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"
]
}
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,6 @@ workflows:
branches:
only:
- master
- next
- beta
- alpha
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ npm-debug.log
coverage
.nyc_output
dist
.rpt2_cache
.prettierrc
compiled
yarn-error.log
.idea
8 changes: 8 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**/.vscode
**/android
**/build
**/compiled
**/dist
**/ios
**/package.json
**/release
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 100,
"semi": false,
"trailingComma": "es5"
}
140 changes: 97 additions & 43 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
{
"name": "reactotron-redux",
"version": "2.1.3",
"version": "3.0.0-beta.3",
"description": "A Reactotron plugin for Redux.",
"author": "Infinite Red",
"license": "MIT",
"bugs": {
"url": "https://github.com/infinitered/reactotron-redux/issues"
},
"homepage": "https://github.com/infinitered/reactotron-redux",
"repository": "https://github.com/infinitered/reactotron-redux",
"files": [
"dist",
"LICENSE",
Expand All @@ -11,58 +18,105 @@
"main": "dist/index.js",
"types": "./reactotron-redux.d.ts",
"scripts": {
"test": "ava",
"watch": "ava --watch",
"format": "prettier --write {**,.}/*.js && standard --fix",
"coverage": "nyc ava",
"build": "rollup -c ",
"lint": "standard",
"test": "jest",
"test:watch": "jest --watch --notify",
"format": "prettier --write {**,.}/*.ts",
"build": "npm-run-all clean tsc compile",
"build:dev": "npm-run-all clean tsc compile:dev",
"clean": "trash dist",
"lint": "eslint src --ext .ts,.tsx",
"compile": "NODE_ENV=production rollup -c",
"compile:dev": "NODE_ENV=development rollup -c",
"tsc": "tsc",
"ci:test": "yarn test",
"ci:publish": "yarn semantic-release",
"semantic-release": "semantic-release"
},
"author": "Infinite Red",
"bugs": {
"url": "https://github.com/infinitered/reactotron/issues"
"peerDependencies": {
"reactotron-core-client": "^2.2.1",
"redux": "^4.0.1"
},
"devDependencies": {
"@semantic-release/git": "^7.0.8",
"ava": "^0.20.0",
"babel-core": "^6.25.0",
"babel-eslint": "^8.2.1",
"babel-preset-es2015": "^6.24.1",
"babel-preset-es2015-rollup": "^3.0.0",
"babel-preset-stage-1": "^6.24.1",
"mockery": "^2.1.0",
"nyc": "^11.0.3",
"prettier": "^1.10.2",
"rollup": "^0.43.0",
"rollup-plugin-babel": "^2.6.1",
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.3.1",
"@babel/preset-typescript": "^7.1.0",
"@semantic-release/git": "^7.1.0-beta.3",
"@types/jest": "^24.0.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"@typescript-eslint/parser": "^1.3.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^24.1.0",
"eslint": "^5.13.0",
"eslint-config-prettier": "^4.0.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-node": "^8.0.1",
"eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0",
"jest": "^24.1.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.16.4",
"reactotron-core-client": "^2.2.1",
"redux": "^4.0.1",
"rollup": "^1.1.2",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-babel-minify": "^7.0.0",
"rollup-plugin-filesize": "^6.0.1",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-resolve": "^0.0.1-predev.1",
"semantic-release": "^16.0.0-beta.18",
"standard": "^10.0.3"
"trash-cli": "^1.4.0",
"ts-jest": "^23.10.5",
"typescript": "^3.3.3"
},
"homepage": "https://github.com/infinitered/reactotron-redux",
"license": "MIT",
"ava": {
"require": [
"babel-core/register"
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:@typescript-eslint/recommended",
"standard",
"prettier"
],
"babel": {
"babelrc": false,
"presets": [
"es2015",
"stage-1"
]
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint"
],
"globals": {
"__DEV__": false,
"jasmine": false,
"beforeAll": false,
"afterAll": false,
"beforeEach": false,
"afterEach": false,
"test": false,
"expect": false,
"describe": false,
"jest": false,
"it": false
},
"rules": {
"no-unused-vars": 0,
"no-undef": 0,
"space-before-function-paren": 0,
"@typescript-eslint/indent": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-object-literal-type-assertion": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/member-delimiter-style": 0
}
},
"standard": {
"parser": "babel-eslint"
},
"repository": "https://github.com/infinitered/reactotron-redux",
"dependencies": {
"ramda": "^0.24.1",
"ramdasauce": "^2.0.0",
"reactotron-core-client": "^2.1.4",
"redux": "^3.7.1"
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"testMatch": [
"**/*.test.[tj]s"
]
}
}
47 changes: 47 additions & 0 deletions reactotron-redux.d.ts
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;
}
}
28 changes: 18 additions & 10 deletions rollup.config.js
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"],
}
Loading

0 comments on commit c773bd1

Please sign in to comment.