National Poetry Month

    jm-cli

    1.2.3 • Public • Published

    jm-cli

    A CLI tool for jumore FE team.

    Install:

    from npm

    $ npm i -g jm-cli

    from github(latest)

    $ git clone https://github.com/ICELI/jm-cli.git
    cd jm-cli
    $ npm link

    Usage

    Init an angularjs project that build with webpack

    $ jm init ng ng-demo 
    cd ng-demo

    Vue2 project

    $ jm init vue vue-demo
    cd vue-demo

    install package

    $ jm install 
    # or 
    $ jm i

    dev build

    $ jm dev

    production build

    $ jm build

    production server

    $ jm server
    # or 
    $ jm s
    # open browser http://localhost:8081 

    release ng-seed or vue-seed

    $ jm seed
    # same as 
    $ jm d && jm l && jm a && jm site

    gen jsdoc

    $ jm jsdoc
    # or 
    $ jm d
    # need to configure file 

    gen CHANGELOG.md

    $ jm changelog 
    # or 
    $ jm l
    # CHANGELOG.md - default file name 
     
    $ jm log log.md 
    # log.md - program.args[0] as file name 

    gen AUTHORS.md

    $ jm author 
    # or 
    $ jm a
    # AUTHORS.md - default file name 
     
    $ jm author author.md 
    # author.md - program.args[0] as file name 

    author.md

    Authors
     
    #### Ordered by first contribution.
     
    - xxxxx <xxxxx@qq.com>
    - xxxx <xxxx@gmail.com>
     
    #### Generated by jm-cli.js.
     

    gen gh-pages

    $ jm site
    # push dist/ to github pages 

    gen new page for angular project

    $ jm ng:page pageName
    # or 
    $ jm ng:page path/pageName
     
      Usage: jm <command> [options]
     
     
      Commands:
     
        init          initialize project, you can choose the framework with AngularJS or Vue2
        install|i     Install Package
        dev           dev build
        build         production build
        server|s      production service
        seed          publish seed
        jsdoc|d       generator jsdoc
        changelog|l   generator CHANGELOG.md
        author|a      generator AUTHORS.md
        site          push gh-pages
        ng:page       generator new page
     
      Options:
     
        -h, --help              output usage information
        -V, --version           output the version number
        -c, --configure <path>  config file path
     

    License

    (The MIT License)

    Copyright (c) 2016-present iceli <woticeli@gmail.com>

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    Keywords

    Install

    npm i jm-cli

    DownloadsWeekly Downloads

    14

    Version

    1.2.3

    License

    MIT

    Last publish

    Collaborators

    • iceli