Socket
Book a DemoInstallSign in
Socket

fis3-deploy-zl-zip

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fis3-deploy-zl-zip

zip compress for fis3 deploy

2.0.7
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

fis3-deploy-zl-zip

==================

用来在 fis3 deploy 阶段用 zip 的方式打包资源。

在原有 fis3-deploy-zip 插件的基础上新增 startWithPath 和 ignore 参数,用于配置 zip 打包的起始目录。

  • startWithPath 从开始的路径进行打包, 参数必须是以 / 开头,以 / 结尾
  • ignore 忽略文件列表,多个文件以 , 分隔

新增对 _ (下划线) 开头的文件进行过滤

如:

/src/page/web1/... 

// 如果想将 /src/page/web1/ 下所有的文件直接打成 zip 包。
fis.match('**', {
  deploy: [
    fis.plugin('zl-zip',{
		startWithPath: '/src/page/web1/' 
	}),
    fis.plugin('local-deliver', {
      to: './output'
    })
  ]
})

安装插件

全局安装

npm install -g fis3-deploy-zl-zip

或者本地安装到项目所在目录。

npm install fis3-deploy-zl-zip

配置

fis.match('**', {
  deploy: [
    fis.plugin('zl-zip'),

    fis.plugin('local-deliver', {
      to: './output'
    })
  ]
})

// 或者
fis.match('*.tpl', {
  deploy: [
    fis.plugin('zl-zip', {
      filename: 'templates.zip'
    }),

    fis.plugin('local-deliver', {
      to: './output'
    })
  ]
})

配置说明

  • filename 默认为 all.zip 用来配置打包的文件名
  • keep 默认为 false 是否保留零碎文件。
  • modified: 默认为 false 是否只打包上次修改过的文件。默认是所有文件都打包。
  • startWithPath: 默认为 `` 起始打包的目录位置。

NPM 发布

npm config set registry http://registry.npmjs.org
npm login
    Username: 输入你在npmjs.org上注册的用户名
    Password:
    Email:(this IS public):
npm publish .

Keywords

fis3

FAQs

Package last updated on 28 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.