dawn

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

MIT License

Downloads
903
Stars
1.1K
Committers
21

README

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

$ npm install @dawnjs/cli -g

Use

# 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

# 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

Others