single-fis-publish

1.0.1 • Public • Published

single-fis-publish

单独上线使用的包,无法直接使用,需要结合BCLOUD,这个包只针对编译后的output文件夹生成相应的打包文件和md5文件

使用方法

'use strict'
const tbpublish = require('single-fis-publish')

publish(workBase) //发布的路径是你的工作目录,它会自动寻找工作目录下面的output文件夹的内容,所以在发布之前请确认已经编译且存放到output中

output文件夹应该拥有如下文件夹结构

./output ---${modName}//模板和路由文件夹
          |
          |--tb//静态文件夹,文件夹名固定为tb

cli

cli会默认当前目录为项目根目录,使用方法如下:

$ npm install -g git+http://gitlab.baidu.com/xietianxin/single-fis-publish.git
$ cd workBase
$ tbpublish publish

或者

$ cd workBase
$ npm install git+http://gitlab.baidu.com/xietianxin/single-fis-publish.git
$ npx publish

tips

  • 如果想本地运行,mac环境请先安装md5sum,本程序shell脚本中不会自动安装md5sum
  • 如果有疑问,可先运行一遍测试用例,此包主要目的是拆分开编译和上线,所以从测试用例中的编译会调用另外一个编译包,生成output文件夹,并不是项目自带output文件夹

Readme

Keywords

Package Sidebar

Install

npm i single-fis-publish

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • xtx1130