jcube-cli

0.4.5 • Public • Published

jcube-cli

npm node

Jcube-cli is a simple set of scaffolding that supports Vue、React、ordinary projects.

Table of Contents

Install

Prerequisites: Node.js (>=4.x, 6.x preferred) and Git.

    npm install -g jcube-cli

Usage

    jcube init <dependence-type> [project-name] [options]

Example:

    jcube init react my-project

Project structure:

    |-jcube_app_pc    //product line
        |-develop    //development
            |-my-project    //project
            ...
        |-release    //production
            |-my-project    //project
            ...

workflow:

  • npm run dev: start programming.
  • npm run build: building project.
  • npm run release: release production code, they will be pushed to the corresponding release directory.

Command reference

All commands can be searched by jcube --help

jcube init dependence-type [project-name] [options]

Generated project with dependence.

dependence-type:

  • react
  • vue: coming soon
  • normal: coming soon

Available options:

  • -v: create a directory of version

jcube queryCDN [url]

check the last-modified of static resource to determine whether that's right.

jcube queryCDN: every time run npm run releasecould be generated a file that needs to be updated, distinguish the results in two colors.

  • green: static resource has been updated.
  • red: nothing new has been updated.

jcube queryCDN [url]: run this command to check single resource.

Readme

Keywords

Package Sidebar

Install

npm i jcube-cli

Weekly Downloads

12

Version

0.4.5

License

MIT

Last publish

Collaborators

  • lemonleon