# lanbuild

> lan build

Latest version **1.0.8** (published 2018-09-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install lanbuild
pnpm add lanbuild
yarn add lanbuild
bun add lanbuild
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2018-09-12 |
| First published | 2018-08-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 30.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | npm_yx |
| Maintainers | npm_yx |
| Keywords | lan, build, diwork |

## Links

- npm: https://www.npmjs.com/package/lanbuild
- Repository: https://www.npmjs.com/package/lanbuild
- npm.io page: https://npm.io/package/lanbuild

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.8 (latest) — 2018-09-12
- 1.0.8-beta.0 (beta) — 2019-03-21
- 1.0.7 — 2018-09-06
- 1.0.6 — 2018-08-29
- 1.0.5 — 2018-08-29
- 1.0.4 — 2018-08-29
- 1.0.3 — 2018-08-29
- 1.0.2 — 2018-08-28
- 1.0.1 — 2018-08-21
- 1.0.0 — 2018-08-20

## README

## PURPOSE
diwork 多语

## STEP
1.lanbuild({1, otherArg})
    生成excel

2.lanbuild({2, otherArg})
    生成en,tw

## API
|参数|说明|类型|默认值|
|:--|:---:|:--:|---:|
|type|执行多语编译步骤，共两步|[1,2]|-|
|basepath|根目录，生成en tw代码存放的路径|String|-|
|codePath|实际放置代码的目录，请注意末尾必须有'/'|String|-|
|enDir|翻译人员翻译完成的英文excel|String|-|
|twDir|翻译人员翻译完成的繁体excel|String|-|
|i18n_|生成文件件i18n的目录|String|-|
|i18n_addTags|生成文件，i18n_addTags的目录|String|-|
|defaultDir|生成文件，最新的中文excel|String|-|
|enDirNew|生成文件，最新的英文excel，请保证翻译内容正确，最后注入en|String|-|
|twDirNew|生成文件，最新的繁体excel，请保证翻译内容正确，最后注入tw|String|-|
|addTagsReg|添加$i18n{}$i18n_end标签所使用的正则|Reg|/[\u4E00-\u9FA5]+([\u4E00-\u9FA5]|[\uFE30-\uFFA0]|[0-9]|[\?\,\。\.\、])*/g|
|outPutObj|将enDir，enDirNew，twDir, twDirNew放在一个对象中|{}|
 // "name": "@yonyou/ac-lanbuild",
以上参数必须有，缺一不可
具体的配置信息可以参照lanbuild.js
##changelog
version1.0.2:保留第八列的备注信息

version1.0.3:window下的绝对路径与linux下的不一样问题

version1.0.7:自动配置可以生成的多语有哪些，outPutObj里面设计需要产出的多余

version1.0.8:
1修改exportExcel产出的excel的第一列的内容的bug问题
2第一次本地没有翻译好的英文和繁体的excel时候

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