1.5.6 • Published 6 years ago
publishnpmpackage v1.5.6
createNpmPackage
a small demo to test how to create an react component thought npmpackage and publish!
#Demo this demo make a react component to show how to publish a npm package
- ./node_modules/.bin/rimraf lib 该命令行在每次对组件编译的时候清理输出的文件夹
- ./node_modules/.bin/babel src --out-dir lib --source-maps --extensions .jsx --copy-files 该命令编译src 下的 格式的文件并输出到相应的路径中 最后在index.js 暴露封装的组件接口 注意用exports来抛出接口
1.5.6
6 years ago
1.5.5
6 years ago
1.5.4
6 years ago
1.5.3
6 years ago
1.5.2
6 years ago
1.5.1
6 years ago
1.5.0
6 years ago
1.4.9
6 years ago
1.4.8
6 years ago
1.4.7
6 years ago
1.4.6
6 years ago
1.4.5
6 years ago
1.4.4
6 years ago
1.4.3
6 years ago
1.4.2
6 years ago
1.4.1
7 years ago
1.4.0
7 years ago
1.3.2
7 years ago
1.3.1
7 years ago
1.2.1
7 years ago
1.2.0
7 years ago
1.1.0
7 years ago