# fis-deploy-default

> fis default deploy plugin

Latest version **0.1.4** (published 2022-01-10) · BSD license · 0 weekly downloads

## Install

```sh
npm install fis-deploy-default
pnpm add fis-deploy-default
yarn add fis-deploy-default
bun add fis-deploy-default
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2022-01-10 |
| First published | 2014-10-15 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 11.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | FIS |
| Maintainers | 2betop, fis-dev |
| Keywords | fis, deploy, plugin |

## Links

- npm: https://www.npmjs.com/package/fis-deploy-default
- Repository: https://github.com/fex-team/fis-deploy-default
- Homepage: https://github.com/fex-team/fis-deploy-default#readme
- Issues: https://github.com/fex-team/fis-deploy-default/issues
- npm.io page: https://npm.io/package/fis-deploy-default

## Dependencies (2)

- [colors](https://npm.io/package/colors.md) 1.4.0
- [prompt](https://npm.io/package/prompt.md) 1.0.0

## Recent versions

- 0.1.4 (latest) — 2022-01-10
- 0.1.3 — 2016-12-19
- 0.1.2 — 2016-12-17
- 0.1.1 — 2016-12-15
- 0.1.0 — 2016-12-15
- 0.0.6 — 2015-05-06
- 0.0.5 — 2015-03-19
- 0.0.4 — 2015-03-19
- 0.0.3 — 2015-03-19
- 0.0.2 — 2014-12-16
- 0.0.1 — 2014-10-29
- 0.0.0 — 2014-10-15

## README

# fis-deploy-default

## 说明

FIS默认的部署插件，提供本地部署以及远程upload部署能力，无需手动安装就可以在FIS中直接使用

## 使用方法

兼容原有的deploy配置方法

```javascript
fis.config.set('deploy', {
    local : {
        to : './output'
    }
});
```

也可以使用统一的deploy插件配置方法

```javascript
fis.config.set('settings.deploy.default', {
    static : [
        {
            from : '/js',
            to: './output/static'
        },
        {
            from : '/css',
            to: './output/static'
        }
    ],
    remote : {
        //如果配置了receiver，fis会把文件逐个post到接收端上
        receiver : 'http://www.example.com:8080/receiver.php',
        //从产出的结果的static目录下找文件
        from : '/',
        //保存到远端机器的/home/fis/www/static目录下
        //这个参数会跟随post请求一起发送
        to : '/home/fis/www',
        //通配或正则过滤文件，表示只上传所有的js文件
        include : '**.js',
        //widget目录下的那些文件就不要发布了
        exclude : /\/widget\//i,
        //支持对文件进行字符串替换
        replace : {
            from : 'http://www.online.com',
            to : 'http://www.offline.com'
        }
    }
});
```

---
_Source: https://npm.io/package/fis-deploy-default · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
