node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

dawn

Banner

Dawn

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.

npm NPM Version Build Status Coverage Status npm

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 dawn -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: webpack
    entry: ./src/*.js
    template: ./assets/*.html
    watch: true
  - name: server
    port: 8001
    
# Build & pack
buid:
  - name: webpack
    entry: ./src/*.js
    template: ./assets/*.html

Documents

Others