zoukankan      html  css  js  c++  java
  • Dawn 简单使用

     1. install
    npm install dawn -g
    2. create project
    # 1. Create & Initialize
    $ dn init -t front
    
    # 2. Development & Real-time compilation
    $ dn dev
    
    # 3. Lint & Test
    $ dn test
    
    # 4. Build & pack
    $ dn build
    
    // project structure
    .
    ├── node_modules
    │   ├── dn-middleware-pkginfo -> _dn-middleware-pkginfo@1.0.3@dn-middleware-pkginfo
    │   └── _dn-middleware-pkginfo@1.0.3@dn-middleware-pkginfo
    │       ├── lib
    │       │   └── index.js
    │       ├── package.json
    │       └── README.md
    ├── package.json
    ├── README.md
    ├── server.yml
    ├── src
    │   ├── assets
    │   │   ├── banner.png
    │   │   ├── common.less
    │   │   ├── index.html
    │   │   └── index.less
    │   └── index.js
    ├── test
    │   └── unit
    │       └── demo.js
    └── tsconfig.json
     
    3. help 
    Commands:
      i, init           Initialize a dawn project
      a, add            Adding project resources 
      d, dev            Start dev server and build in real-time
      t, test           Perform static code checking and testing
      b, build          Build current project
      p, publish        Publish current project to target environment
      r, run            Run a command
      u, update         Update remote configs and dependent modules
      c, config         Configure the preferences 
         template       Display template list
         middleware     Display middleware list
    
    Options:
      -t, --template    Specify the template name for the init command
      -e, --env         Specify environment variables for all commands
      -v, --version     Display the current version of CLI
      -h, --help        Display cli help information
    
    Examples:
    
      # Create a project
      mkdir demo && cd demo
      dn init
    
      # Build a project
      dn build
    4. docs
    https://github.com/alibaba/dawn
  • 相关阅读:
    更换电脑后,maven工程无法编译,错误提示:Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6
    Python Selenium下拉列表元素定位
    Python Selenium简单的窗口切换
    python测试报告
    python调用xlrd&xlsxwirter
    selenium-python PageObject设计模式
    python词典的基本操作
    python链接mysql数据库
    python冒泡写法
    python调用各个数据库模块
  • 原文地址:https://www.cnblogs.com/rongfengliang/p/7780752.html
Copyright © 2011-2022 走看看