1.0.3 • Published 4 years ago

money-sign v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

VueNpmFrame

一个从零搭建的Vue3纯净框架,用于Npm包 A Vue3 pure frame build up from nothing and use for npm package

以package.json内的name是"money-sign"为例,首先在根目录下输入 yarn link。然后切换到用户项目根目录下输入yarn link "money-sign",然后启动项目。 take the name like "money-sign" in the package.json file as an example, first enter yarn link in the root directory. Then switch to the root directory of the user project, enter yarn link "money-sign" and start the project.

如果项目出现警告Vue warn: Invalid VNode type: Symbol("Text") (symbol) ,则需要在用户项目webpack中配置: if warning like Vue warn: Invalid VNode type: Symbol("Text") (symbol) appears in the project, it needs to be configured in the user project webpack:

resolve: {
    symlinks: false, //在yarn link 入其他模块的时候统一使用同一个vue引用,避免vue3的一个报错
    alias: {
        'vue$': 'vue/dist/vue.esm-bundler.js',
        vue: path.resolve(__dirname, `../node_modules/vue`) // 定义vue路径
    },
},

取消链接:yarn unlink cancel link: yarn unlink

发布:npm publish publish: npm publish

迭代: npm version patch,minor,major,然后 npm publish patch: 修复bug、微小改动,改变版本号第三位 minor: 上线新功能,并对当前版本已有功能模块不影响,改变版本号第二位 major: 上线多个新功能模块,并对当前版本已有功能有影响,改变版本号第一位 iteration: npm version patch,minor,major, then npm publish patch: fix bugs, make little changes, and change the third digit of the version number. major: new functions will be launched, and the existing function modules of the current version will not be affected. The second digit of the version number will be changed. major: several new function modules will be launched, which will affect the existing functions of current version. The first digit of the version number will be changed.

安装:npm i money-sign install: npm i money-sign

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago