This commit is contained in:
Nathan Bierema 2020-09-04 19:03:02 -04:00
parent f4405ac0f0
commit 9e93791ab8
106 changed files with 184 additions and 99 deletions

View File

@ -31,6 +31,11 @@
"raw-loader": "^4.0.1", "raw-loader": "^4.0.1",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"style-loader": "^1.2.1", "style-loader": "^1.2.1",
"stylelint": "^13.6.1",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-standard": "^20.0.0",
"stylelint-config-styled-components": "^0.1.1",
"stylelint-processor-styled-components": "^1.10.0",
"ts-jest": "^26.2.0", "ts-jest": "^26.2.0",
"ts-node": "^9.0.0", "ts-node": "^9.0.0",
"typescript": "^3.9.7", "typescript": "^3.9.7",

View File

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

View File

@ -0,0 +1 @@
lib

View File

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

View File

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

View File

@ -0,0 +1,4 @@
module.exports = {
preset: 'ts-jest',
setupFilesAfterEnv: ['<rootDir>/tests/setup.js'],
};

View File

@ -2,61 +2,38 @@
"name": "devui", "name": "devui",
"version": "1.0.0-6", "version": "1.0.0-6",
"description": "Reusable React components for building DevTools monitors and apps.", "description": "Reusable React components for building DevTools monitors and apps.",
"homepage": "https://github.com/reduxjs/redux-devtools/tree/master/packages/devui",
"bugs": {
"url": "https://github.com/reduxjs/redux-devtools/issues"
},
"license": "MIT",
"author": "Mihail Diordiev <zalmoxisus@gmail.com> (https://github.com/zalmoxisus)",
"files": [ "files": [
"lib", "lib",
"fonts" "fonts"
], ],
"main": "lib/index.js",
"types": "lib/index.d.ts",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/reduxjs/redux-devtools.git" "url": "https://github.com/reduxjs/redux-devtools.git"
}, },
"author": "Mihail Diordiev <zalmoxisus@gmail.com> (https://github.com/zalmoxisus)",
"license": "MIT",
"scripts": { "scripts": {
"start": "npm run storybook", "start": "npm run storybook",
"build": "rimraf ./lib && babel ./src --out-dir ./lib --ignore tests,stories",
"lint:css": "stylelint \"./src/**/*.js\"",
"test:update": "npm run jest -- -u",
"test": "jest --no-cache",
"storybook": "start-storybook -p 6006 -s ./fonts", "storybook": "start-storybook -p 6006 -s ./fonts",
"build-storybook": "build-storybook -s ./fonts", "build-storybook": "build-storybook -s ./fonts",
"prepare": "npm run build", "build": "npm run build:types && npm run build:js",
"prepublishOnly": "npm run test && npm run build" "build:types": "tsc --emitDeclarationOnly",
}, "build:js": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline",
"bugs": { "clean": "rimraf lib",
"url": "https://github.com/reduxjs/redux-devtools/issues" "test": "jest",
}, "lint": "eslint . --ext .ts,.tsx",
"homepage": "https://github.com/reduxjs/redux-devtools", "lint:fix": "eslint . --ext .ts,.tsx --fix",
"devDependencies": { "lint:css": "stylelint \"./src/**/*.js\"",
"@babel/cli": "^7.10.5", "type-check": "tsc --noEmit",
"@babel/core": "^7.11.1", "type-check:watch": "npm run type-check -- --watch",
"@babel/plugin-proposal-class-properties": "^7.10.4", "preversion": "npm run type-check && npm run lint && npm run test",
"@babel/plugin-proposal-decorators": "^7.10.5", "prepublishOnly": "npm run clean && npm run build"
"@babel/plugin-proposal-export-default-from": "^7.10.4",
"@babel/plugin-transform-runtime": "^7.11.0",
"@babel/preset-env": "^7.11.0",
"@babel/preset-react": "^7.10.4",
"@storybook/addon-essentials": "^6.0.21",
"@storybook/react": "^6.0.21",
"babel-loader": "^8.1.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.3",
"enzyme-to-json": "^3.5.0",
"jest": "^26.2.2",
"jsdom": "^16.4.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-is": "^16.13.1",
"react-test-renderer": "^16.13.1",
"rimraf": "^3.0.2",
"stylelint": "^13.6.1",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-standard": "^20.0.0",
"stylelint-config-styled-components": "^0.1.1",
"stylelint-processor-styled-components": "^1.10.0"
},
"peerDependencies": {
"react": "^16.3.0"
}, },
"dependencies": { "dependencies": {
"base16": "^1.0.0", "base16": "^1.0.0",
@ -64,17 +41,23 @@
"color": "^3.1.2", "color": "^3.1.2",
"prop-types": "^15.7.2", "prop-types": "^15.7.2",
"react-icons": "^3.10.0", "react-icons": "^3.10.0",
"react-is": "^16.13.1",
"react-jsonschema-form": "^1.8.1", "react-jsonschema-form": "^1.8.1",
"react-select": "^3.1.0", "react-select": "^3.1.0",
"redux-devtools-themes": "^1.0.0", "redux-devtools-themes": "^1.0.0",
"simple-element-resize-detector": "^1.3.0", "simple-element-resize-detector": "^1.3.0",
"styled-components": "^5.1.1" "styled-components": "^5.1.1"
}, },
"jest": { "devDependencies": {
"setupFilesAfterEnv": [ "@storybook/addon-essentials": "^6.0.21",
"<rootDir>/tests/setup.js" "@storybook/react": "^6.0.21",
] "enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.3",
"enzyme-to-json": "^3.5.0",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-is": "^16.13.1"
}, },
"main": "lib/index.js" "peerDependencies": {
"react": "^16.3.0"
}
} }

View File

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

View File

@ -0,0 +1 @@
export { default } from './ContextMenu';

View File

Some files were not shown because too many files have changed in this diff Show More