Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://alibaba.github.io/dawn/

:sunrise: Dawn is a lightweight task management and build tool for front-end and nodejs.
https://alibaba.github.io/dawn/

build build-tool construction dawn dawn-cli front-end javascript middleware nodejs pack pipeline task

Last synced: 3 months ago
JSON representation

:sunrise: Dawn is a lightweight task management and build tool for front-end and nodejs.

Lists

README

        


Dawn

Dawn

Lightweight task management and build tool.



LICENSE


npm version


CI


npm downloads

npm i @dawnjs/cli -g

[中文 README](README.md)

Dawn is a lightweight task management and build tool for front-end and nodejs. It abstracts the development process into relatively fixed phases and limited operations through `pipeline` and `middleware`, simplifying and unifying the work related to the construction and development of developers.

## Features

- Support middleware, easy to extend, and easy to reuse.
- Support pipeline, multiple subtasks collaborate to complete the build task.
- Simple and consistent command line interfaces that are easy for developers to use.
- Manage middleware and engineering templates based on central services.
- Support 'private central service', distribution rules, and easy team management.

## Install

```sh
$ npm install @dawnjs/cli -g
```

## Use

```sh
# 1. Create & Initialize
$ dn init -t front

# 2. Development & Real-time compilation
$ dn dev

# 3. Lint & Test
$ dn test

# 4. Build & pack
$ dn build
```

## Example(.dawn.yml or .dawn folder)

```yml
# Development & Real-time compilation
dev:
- name: '@dawnjs/dn-middleware-webpack'
env: development
entry: ./src/*.js
template: ./assets/*.html
serverOpts:
port: 8001

# Build & pack
buid:
- name: '@dawnjs/dn-middleware-webpack'
env: production
entry: ./src/*.js
template: ./assets/*.html
```

## Documents

- Getting Started: [getting-started.md](https://alibaba.github.io/dawn/docs/#!/zh/guide/getting-started)
- Pipeline: [pipeline.md](https://alibaba.github.io/dawn/docs/#!/zh/guide/pipeline)
- Middleware: [middleware.md](https://alibaba.github.io/dawn/docs/#!/zh/guide/middleware)
- More docs: [https://alibaba.github.io/dawn/docs/](https://alibaba.github.io/dawn/docs/)

## Others

- [Contributing](CONTRIBUTING.md)
- [Changelog](CHANGELOG.md)
- [MIT](https://tldrlegal.com/license/mit-license)