mirror of
https://github.com/morten-olsen/react-native-debug-console.git
synced 2026-02-08 00:36:26 +01:00
native sepeartion and bundle step
This commit is contained in:
6
packages/lib/.npmignore
Normal file
6
packages/lib/.npmignore
Normal file
@@ -0,0 +1,6 @@
|
||||
/babel.config.js
|
||||
/node_modules
|
||||
/__mocks__
|
||||
/test
|
||||
/src
|
||||
/jest.config.js
|
||||
@@ -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": {
|
||||
|
||||
17
packages/lib/src/native.js
Normal file
17
packages/lib/src/native.js
Normal 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,
|
||||
};
|
||||
Reference in New Issue
Block a user