0.2.8 • Published 3 years ago

airt v0.2.8

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

airt

Fast start typescript node.js project

Use cluster auto fork code at file save;

Install

yarn add airt -D

add package.json

{
  "scripts": {
    "dev": "airt src -w",
    "build": "airt src"
  }
}

Use

Run Dev Server:

yarn dev

Build release

yarn build

static dir

airt copy static/ to dir;

Set out dir and static dir

out=build static=public yarn dev

keepDependencies

airt 默认会排除依赖的编译, 若有确定需要编译的依赖对象, 如 link 的本地资源,请配置 package.keepDependencies 属性,如

package.json:

{
  "keepDependencies": {
    "clino": 1,
    "clino-client": 1
  }
}

此时 airt 会编译 clino 库到 dist 中

copyFiles

airt 默认会拷贝以下文件到 dist 中

.env
package-lock.json
pnpm-lock.yaml
yarn.lock

若需要增加其他文件,可以配置 package.json 的 copyFiles 属性:

package.json:

{
  "copyFiles": [".env.local", ".env.test"]
}
0.2.7

3 years ago

0.2.8

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.1.8

3 years ago

0.1.4

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.2

3 years ago

0.1.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago