diff --git a/packages/core/package-lock.json b/packages/core/package-lock.json index fcd1771..1105671 100644 --- a/packages/core/package-lock.json +++ b/packages/core/package-lock.json @@ -26,6 +26,15 @@ "integrity": "sha512-D34BqZU4cIlMCY93rZHbrq9pjTAQJ3U8S8rfBqjwHxkGPThWFjzZDQpgMJY0QViLxth6ZKYiwFBo14RdN44U/w==", "dev": true }, + "exec-sh": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.2.2.tgz", + "integrity": "sha512-FIUCJz1RbuS0FKTdaAafAByGS0CPvU3R0MeHxgtl+djzCc//F8HakL8GzmVNZanasTbTAY/3DRFA0KpVqj/eAw==", + "dev": true, + "requires": { + "merge": "^1.2.0" + } + }, "fsevents": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", @@ -48,6 +57,18 @@ "js-tokens": "^3.0.0 || ^4.0.0" } }, + "merge": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/merge/-/merge-1.2.1.tgz", + "integrity": "sha512-VjFo4P5Whtj4vsLzsYBu5ayHhoHJ0UqNm7ibvShmbmoz7tGi0vXaoJbGdB+GmDMLUdg8DpQXEIeVDAe8MaABvQ==", + "dev": true + }, + "minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "dev": true + }, "object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", @@ -90,6 +111,16 @@ "requires": { "fsevents": "~2.1.2" } + }, + "watch": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/watch/-/watch-1.0.2.tgz", + "integrity": "sha1-NApxe952Vyb6CqB9ch4BR6VR3ww=", + "dev": true, + "requires": { + "exec-sh": "^0.2.0", + "minimist": "^1.2.0" + } } } } diff --git a/packages/core/package.json b/packages/core/package.json index 002cb47..be2b7cf 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -29,7 +29,8 @@ "scripts": { "prepublishOnly": "node scripts/prepublishOnly.js", "declare-type": "tsc --emitDeclarationOnly", - "build": "rollup -c & npm run declare-type" + "build": "rollup -c & npm run declare-type", + "watch": "watch 'rollup -c' ./src" }, "bugs": { "url": "https://github.com/suanmei/iMove/issues" @@ -37,7 +38,8 @@ "devDependencies": { "@types/react": "^16.9.34", "react": "^16.13.1", - "rollup": "^2.6.1" + "rollup": "^2.6.1", + "watch": "^1.0.2" }, "peerDependencies": { "react": "^16.13.1" diff --git a/packages/core/src/index.tsx b/packages/core/src/index.tsx index 498767f..b553d02 100644 --- a/packages/core/src/index.tsx +++ b/packages/core/src/index.tsx @@ -1,7 +1,15 @@ import * as React from 'react'; const Core = (): JSX.Element => { - return
2
; + return ( +
+ 2 + + 👌 + + 2 +
+ ); }; export default Core; diff --git a/rollup.config.js b/rollup.config.js index 0eadd07..6ed0efa 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -24,6 +24,6 @@ export default { }), svgr(), strip({ debugger: true }), - sizeSnapshot(), + sizeSnapshot({ printInfo: false }), ], };