1.5.6 • Published 7 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
7 years ago
1.5.5
7 years ago
1.5.4
7 years ago
1.5.3
7 years ago
1.5.2
7 years ago
1.5.1
7 years ago
1.5.0
7 years ago
1.4.9
7 years ago
1.4.8
7 years ago
1.4.7
7 years ago
1.4.6
7 years ago
1.4.5
7 years ago
1.4.4
7 years ago
1.4.3
7 years ago
1.4.2
7 years ago
1.4.1
8 years ago
1.4.0
8 years ago
1.3.2
8 years ago
1.3.1
8 years ago
1.2.1
8 years ago
1.2.0
8 years ago
1.1.0
8 years ago