native sepeartion and bundle step

This commit is contained in:
2019-07-06 00:46:02 +02:00
parent baea9498be
commit 0c75f76c54
6 changed files with 65 additions and 6 deletions

6
packages/lib/.npmignore Normal file
View File

@@ -0,0 +1,6 @@
/babel.config.js
/node_modules
/__mocks__
/test
/src
/jest.config.js

View File

@@ -1,12 +1,15 @@
{
"name": "react-native-debug-console",
"version": "2.0.0-alpha.1",
"main": "src/index.js",
"main": "lib/index.js",
"react-native": "lib/native.js",
"repository": {
"url": "https://github.com/morten-olsen/react-native-debugger"
},
"scripts": {
"test": "jest"
"test": "jest",
"bundle": "babel --extensions '.ts,.tsx,.js' -d lib src",
"postpublish": "yarn run bundle"
},
"license": "MIT",
"dependencies": {

View File

@@ -0,0 +1,17 @@
import DevTool from './components/DevTool/index';
import DevToolModal from './components/DevTool/Modal';
import log from './log';
import network from './network';
import events from './events';
const show = () => events.publish('SHOW_DEVTOOLS');
const hide = () => events.publish('HIDE_DEVTOOLS');
export {
DevTool,
DevToolModal,
log,
network,
show,
hide,
};