Browse Source

feat: 本地开发持续构建

master
suanmei 5 years ago
committed by 拾邑
parent
commit
a4ae0c3b43
  1. 31
      packages/core/package-lock.json
  2. 6
      packages/core/package.json
  3. 10
      packages/core/src/index.tsx
  4. 2
      rollup.config.js

31
packages/core/package-lock.json

@ -26,6 +26,15 @@
"integrity": "sha512-D34BqZU4cIlMCY93rZHbrq9pjTAQJ3U8S8rfBqjwHxkGPThWFjzZDQpgMJY0QViLxth6ZKYiwFBo14RdN44U/w==", "integrity": "sha512-D34BqZU4cIlMCY93rZHbrq9pjTAQJ3U8S8rfBqjwHxkGPThWFjzZDQpgMJY0QViLxth6ZKYiwFBo14RdN44U/w==",
"dev": true "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": { "fsevents": {
"version": "2.1.3", "version": "2.1.3",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz",
@ -48,6 +57,18 @@
"js-tokens": "^3.0.0 || ^4.0.0" "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": { "object-assign": {
"version": "4.1.1", "version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
@ -90,6 +111,16 @@
"requires": { "requires": {
"fsevents": "~2.1.2" "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"
}
} }
} }
} }

6
packages/core/package.json

@ -29,7 +29,8 @@
"scripts": { "scripts": {
"prepublishOnly": "node scripts/prepublishOnly.js", "prepublishOnly": "node scripts/prepublishOnly.js",
"declare-type": "tsc --emitDeclarationOnly", "declare-type": "tsc --emitDeclarationOnly",
"build": "rollup -c & npm run declare-type" "build": "rollup -c & npm run declare-type",
"watch": "watch 'rollup -c' ./src"
}, },
"bugs": { "bugs": {
"url": "https://github.com/suanmei/iMove/issues" "url": "https://github.com/suanmei/iMove/issues"
@ -37,7 +38,8 @@
"devDependencies": { "devDependencies": {
"@types/react": "^16.9.34", "@types/react": "^16.9.34",
"react": "^16.13.1", "react": "^16.13.1",
"rollup": "^2.6.1" "rollup": "^2.6.1",
"watch": "^1.0.2"
}, },
"peerDependencies": { "peerDependencies": {
"react": "^16.13.1" "react": "^16.13.1"

10
packages/core/src/index.tsx

@ -1,7 +1,15 @@
import * as React from 'react'; import * as React from 'react';
const Core = (): JSX.Element => { const Core = (): JSX.Element => {
return <div>2</div>; return (
<div>
2
<span role="img" aria-label="ok">
👌
</span>
2
</div>
);
}; };
export default Core; export default Core;

2
rollup.config.js

@ -24,6 +24,6 @@ export default {
}), }),
svgr(), svgr(),
strip({ debugger: true }), strip({ debugger: true }),
sizeSnapshot(), sizeSnapshot({ printInfo: false }),
], ],
}; };

Loading…
Cancel
Save