| declare function jumpVsTip(): void; | ||
| export { jumpVsTip }; |
+20
| import React, { useEffect } from 'react'; | ||
| import { notification } from 'antd'; | ||
| var NotificationJumpVs = function NotificationJumpVs(props) { | ||
| useEffect(function () { | ||
| var args = { | ||
| message: '如何点击页面跳转到vscode?', | ||
| description: '按着option,鼠标移动到对应的UI点击即可跳转到对应的vscode位置', | ||
| duration: 0 | ||
| }; | ||
| notification.open(args); | ||
| }, []); | ||
| return /*#__PURE__*/React.createElement("div", null); | ||
| }; | ||
| function JumpVsTip() { | ||
| return /*#__PURE__*/React.createElement(NotificationJumpVs, null); | ||
| } | ||
| export { JumpVsTip }; |
Sorry, the diff of this file is not supported yet
+74
| - rollup 中文文档 | ||
| https://www.rollupjs.com/ | ||
| ``` | ||
| $: yarn init -y | ||
| $: yarn add rollup rollup-plugin-babel @babel/core @babel/preset-env @babel/preset-react @emotion/babel-preset-css-prop -D | ||
| ``` | ||
| ``` | ||
| $: yarn add styled-components 有问题 | ||
| $: yarn add @emotion/core | ||
| ``` | ||
| yarn run rollup --config 简写 yarn run rollup -c | ||
| # 如何调试我们本地的包(先进的yalc) | ||
| ### 安装 | ||
| ```javascript | ||
| // NPM: | ||
| npm i yalc -g | ||
| // Yarn: | ||
| yarn global add yalc | ||
| ``` | ||
| ### 发布 | ||
| - 在自己开发的库项目根目录下发布依赖 | ||
| `yalc publish` | ||
| ### 引入 | ||
| - 执行后,业务工程的 node_modules 中就会有这个包。眼尖的小伙伴会发现,这个 npm 包不同于其它包,它带有一个转折箭头符号(也就是说这是一个软链接)。 | ||
| 在需要引入库的测试项目中 | ||
| yalc add [name] | ||
| ### 更新 | ||
| - 在我们开发的库内 yarn build && yalc publish | ||
| - 在我们的项目内: 停止项目 | ||
| - 在我们的项目内: yalc update | ||
| - 在我们的项目内: 删除npm项目的node_modules下的.cache | ||
| - 在我们的项目内: yarn start | ||
| - 在我们的项目内: 成功,页面更新。 | ||
| # 发布我们的包 | ||
| - 查看npm配置的地址: npm config get registry | ||
| - 设置镜像源地址 | ||
| ``` | ||
| $: npm config set registry https://registry.npmjs.org | ||
| ``` | ||
| - 发布: yarn publish | ||
| - 发布成功地址: https://www.npmjs.com/package/jump-vs | ||
| - 如何将npm的库及时更新到npmmirror源? | ||
| https://npmmirror.com/ | ||
| 如果你的库没有及时同步到 npmmirror 使用如下命令及时同步 | ||
| cnpm sync isenser-tool | ||
| - 同步taobo镜像 | ||
| https://npmmirror.com/sync/vite | ||
| - https://styled-components.com/ |
+1
-1
| { | ||
| "name": "jump-vs", | ||
| "version": "0.0.1", | ||
| "version": "0.0.2", | ||
| "main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
+2
-2
@@ -10,3 +10,3 @@ import babel from 'rollup-plugin-babel' | ||
| export default { | ||
| input: './src/index.ts', | ||
| input: './src/index.js', | ||
| output: { | ||
@@ -29,3 +29,3 @@ file: './lib/index.js', | ||
| // external 代表的是从外部引入的包 | ||
| external: ['react'] | ||
| external: ['react','antd'] | ||
| } |
+1
-2
| { | ||
| "compilerOptions": { | ||
| /* Visit https://aka.ms/tsconfig to read more about this file */ | ||
| /* Projects */ | ||
@@ -101,4 +100,4 @@ // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ | ||
| // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ | ||
| "skipLibCheck": true /* Skip type checking all .d.ts files. */ | ||
| "skipLibCheck": true, /* Skip type checking all .d.ts files. */ | ||
| } | ||
| } |
-48
| - rollup 中文文档 | ||
| https://www.rollupjs.com/ | ||
| ``` | ||
| $: yarn init -y | ||
| $: yarn add rollup rollup-plugin-babel @babel/core @babel/preset-env @babel/preset-react @emotion/babel-preset-css-prop -D | ||
| ``` | ||
| ``` | ||
| $: yarn add styled-components 有问题 | ||
| $: yarn add @emotion/core | ||
| ``` | ||
| yarn run rollup --config 简写 yarn run rollup -c | ||
| # 如何调试我们本地的包 | ||
| 在react-ui-card的根目录下 执行 yarn link | ||
|  | ||
| 如在要在b项目内调试我们的包,那么就在b项目的根目录下执行 yarn link react-ui-card | ||
|  | ||
| 查看npm配置的地址: npm config get registry | ||
| ``` | ||
| $: npm config set registry https://registry.npmjs.org | ||
| ``` | ||
| 发布: yarn publish | ||
| https://npmmirror.com/ | ||
| 如果你的库没有及时同步到 npmmirror 使用如下命令及时同步 | ||
| cnpm sync isenser-tool | ||
| // 同步taobo镜像 | ||
| https://npmmirror.com/sync/vite | ||
| https://styled-components.com/ |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
417617
14.18%12
33.33%7336
0.26%1
-50%74
Infinity%