This commit is contained in:
Nathan Bierema 2020-08-24 01:02:17 -04:00
parent 78ded9e0ca
commit 5f64276609
12 changed files with 60 additions and 38 deletions

View File

@ -31,7 +31,7 @@
"build": "npm run build:types && npm run build:js", "build": "npm run build:types && npm run build:js",
"build:types": "tsc --emitDeclarationOnly", "build:types": "tsc --emitDeclarationOnly",
"build:js": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline", "build:js": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline",
"clean": "rimraf lib umd", "clean": "rimraf lib",
"test": "jest", "test": "jest",
"lint": "eslint . --ext .ts,.tsx", "lint": "eslint . --ext .ts,.tsx",
"lint:fix": "eslint . --ext .ts,.tsx --fix", "lint:fix": "eslint . --ext .ts,.tsx --fix",

View File

@ -1,7 +1,10 @@
{ {
"presets": ["@babel/preset-env", "@babel/preset-react"], "presets": [
"@babel/preset-env",
"@babel/preset-react",
"@babel/preset-typescript"
],
"plugins": [ "plugins": [
"@babel/plugin-proposal-class-properties", "@babel/plugin-proposal-class-properties"
"@babel/plugin-proposal-export-default-from"
] ]
} }

View File

@ -0,0 +1 @@
lib

View File

@ -0,0 +1,13 @@
module.exports = {
extends: '../../.eslintrc',
overrides: [
{
files: ['*.ts', '*.tsx'],
extends: '../../eslintrc.ts.react.base.json',
parserOptions: {
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
},
},
],
};

View File

@ -2,21 +2,6 @@
"name": "redux-devtools-dock-monitor", "name": "redux-devtools-dock-monitor",
"version": "1.1.4", "version": "1.1.4",
"description": "A resizable and movable dock for Redux DevTools monitors", "description": "A resizable and movable dock for Redux DevTools monitors",
"main": "lib/index.js",
"files": [
"lib",
"src"
],
"scripts": {
"clean": "rimraf lib",
"build": "babel src --out-dir lib",
"prepare": "npm run build",
"prepublishOnly": "npm run test && npm run clean && npm run build"
},
"repository": {
"type": "git",
"url": "https://github.com/reduxjs/redux-devtools.git"
},
"keywords": [ "keywords": [
"redux", "redux",
"devtools", "devtools",
@ -26,31 +11,43 @@
"time travel", "time travel",
"live edit" "live edit"
], ],
"author": "Dan Abramov <dan.abramov@me.com> (http://github.com/gaearon)", "homepage": "https://github.com/reduxjs/redux-devtools/tree/master/packages/redux-devtools-dock-monitor",
"license": "MIT",
"bugs": { "bugs": {
"url": "https://github.com/reduxjs/redux-devtools/issues" "url": "https://github.com/reduxjs/redux-devtools/issues"
}, },
"homepage": "https://github.com/reduxjs/redux-devtools", "license": "MIT",
"devDependencies": { "author": "Dan Abramov <dan.abramov@me.com> (http://github.com/gaearon)",
"@babel/cli": "^7.10.5", "files": [
"@babel/core": "^7.11.1", "lib",
"@babel/plugin-proposal-class-properties": "^7.10.4", "src"
"@babel/plugin-proposal-export-default-from": "^7.10.4", ],
"@babel/preset-env": "^7.11.0", "main": "lib/index.js",
"@babel/preset-react": "^7.10.4", "types": "lib/index.d.ts",
"babel-loader": "^8.1.0", "repository": {
"rimraf": "^3.0.2" "type": "git",
"url": "https://github.com/reduxjs/redux-devtools.git"
}, },
"peerDependencies": { "scripts": {
"react": "^0.14.9 || ^15.3.0 || ^16.0.0", "build": "npm run build:types && npm run build:js",
"redux-devtools": "^3.4.0" "build:types": "tsc --emitDeclarationOnly",
"build:js": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline",
"clean": "rimraf lib",
"lint": "eslint . --ext .ts,.tsx",
"lint:fix": "eslint . --ext .ts,.tsx --fix",
"type-check": "tsc --noEmit",
"type-check:watch": "npm run type-check -- --watch",
"preversion": "npm run type-check && npm run lint && npm run test",
"prepublishOnly": "npm run clean && npm run build"
}, },
"dependencies": { "dependencies": {
"babel-runtime": "^6.26.0", "@types/prop-types": "^15.7.3",
"parse-key": "^0.2.1", "parse-key": "^0.2.1",
"prop-types": "^15.7.2", "prop-types": "^15.7.2",
"react-dock": "^0.2.4", "react-dock": "^0.2.4"
"react-pure-render": "^1.0.2" },
"peerDependencies": {
"@types/react": "^16.3.18",
"react": "^16.3.0",
"redux-devtools": "^3.4.0"
} }
} }

View File

@ -1 +0,0 @@
export default from './DockMonitor';

View File

@ -0,0 +1,2 @@
import DockMonitor from './DockMonitor';
export default DockMonitor;

View File

@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.react.base.json",
"compilerOptions": {
"outDir": "lib"
},
"include": ["src"]
}