演示流程
-
初始化 node 项目,规范目录结构,新建 bin/httpserver.js 编写 httpserver 功能
-
文件头部,添加 Node 命令脚本声明,运行 npm link 在任意目录运行测试
-
成功后,发布都 npm 上,在其他目录下载下来,npx 运行测试
-
成功后,将本地 link 的命令删除,然后发布到 git 远程仓库上
初始化 node 项目,规范目录结构,新建 bin/httpserver.js 编写 httpserver 功能
文件头部,添加 Node 命令脚本声明,运行 npm link 在任意目录运行测试
成功后,发布都 npm 上,在其他目录下载下来,npx 运行测试
成功后,将本地 link 的命令删除,然后发布到 git 远程仓库上
npm i rui-httpserver
3
1.0.0
ISC
4.21 kB
4