From dd53b4cfe3e5cf6a17e8b113d1f62e2bc02cf4e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Thu, 9 Jul 2020 11:41:13 +0800 Subject: [PATCH] Remove babel runtime (#191) * remove babel-runtime * update README.md --- README.md | 18 ++++++++++++------ package.json | 5 ++--- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ad52d00d..6549a5a8 100644 --- a/README.md +++ b/README.md @@ -6,21 +6,27 @@ react dialog component [![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url] -[![gemnasium deps][gemnasium-image]][gemnasium-url] +[![Dependencies][david-image]][david-url] +[![DevDependencies][david-dev-image]][david-dev-url] [![npm download][download-image]][download-url] +[![bundle size][bundlephobia-image]][bundlephobia-url] [npm-image]: http://img.shields.io/npm/v/rc-dialog.svg?style=flat-square [npm-url]: http://npmjs.org/package/rc-dialog -[travis-image]: https://img.shields.io/travis/react-component/dialog.svg?style=flat-square +[travis-image]: https://img.shields.io/travis/react-component/dialog/master?style=flat-square [travis-url]: https://travis-ci.org/react-component/dialog +[circleci-image]: https://img.shields.io/circleci/react-component/dialog/master?style=flat-square +[circleci-url]: https://circleci.com/gh/react-component/dialog [coveralls-image]: https://img.shields.io/coveralls/react-component/dialog.svg?style=flat-square [coveralls-url]: https://coveralls.io/r/react-component/dialog?branch=master -[gemnasium-image]: http://img.shields.io/gemnasium/react-component/dialog.svg?style=flat-square -[gemnasium-url]: https://gemnasium.com/react-component/dialog -[node-image]: https://img.shields.io/badge/node.js-%3E=_0.10-green.svg?style=flat-square -[node-url]: http://nodejs.org/download/ +[david-url]: https://david-dm.org/react-component/dialog +[david-image]: https://david-dm.org/react-component/dialog/status.svg?style=flat-square +[david-dev-url]: https://david-dm.org/react-component/dialog?type=dev +[david-dev-image]: https://david-dm.org/react-component/dialog/dev-status.svg?style=flat-square [download-image]: https://img.shields.io/npm/dm/rc-dialog.svg?style=flat-square [download-url]: https://npmjs.org/package/rc-dialog +[bundlephobia-url]: https://bundlephobia.com/result?p=rc-dialog +[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/rc-dialog ## Screenshot diff --git a/package.json b/package.json index d08b5e07..a980fb9e 100644 --- a/package.json +++ b/package.json @@ -46,8 +46,8 @@ "dist": "rc-tools run dist", "gh-pages": "rc-tools run gh-pages", "start": "rc-tools run server", - "compile": "rc-tools run compile --babel-runtime", - "pub": "rc-tools run pub --babel-runtime", + "compile": "rc-tools run compile", + "pub": "rc-tools run pub", "lint": "rc-tools run lint --no-js-lint", "lint:ts": "tsc", "karma": "rc-test run karma", @@ -79,7 +79,6 @@ ], "typings": "./lib/DialogWrap.d.ts", "dependencies": { - "babel-runtime": "6.x", "rc-animate": "3.x", "rc-util": "^5.0.1" }