zce-cli
A CLI tool for my personal productivity, inspired by vue-cli & yeoman & etc.
Last updated 2 months ago by zce .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install zce-cli -g
SYNC missed versions from official npm registry.

zce-cli

A CLI tool for my personal productivity, inspired by vue-cli & yeoman & etc.

Build Status Coverage Status NPM Downloads NPM Version
License Code Style Dependencies Status DevDependencies Status


Installation

# install it globally
$ yarn global add zce-cli

# or npm
$ npm install -g zce-cli

Usage

Generator

Simple scaffolding for generate project. How to work.

init

# generate a new project from a template
$ zce init <template-name> [my-project] [-o|--offline] [-f|--force] [-s|--save]
Options
  • -f, --force: overwrite target directory if it exists
  • -o, --offline: offline mode, use cached template
  • -s, --save: save the answers for the next
  • -h, --help: output usage information
Example
Use github repo template
$ zce init nm my-module

The above command pulls the template from zce-templates/nm, then ask some questions, and generate the project at ./my-module.

Use local template

Instead of a GitHub repo, you can also use a template on your local file system, e.g.

$ zce init ~/local/foo my-foo

The above command use the template from ~/local/foo, then ask some questions, and generates the project at ./my-foo.

list

# list available official templates
$ zce list [-s|--short]
Options
  • -s, --short: short list display
  • -h, --help: output usage information

Official Templates

Current available templates list:

  • [x] template - Templates template
  • [x] nm - Node module boilerplate
  • [ ] webapp - :construction: Modern web app
  • [ ] react - :construction: Modern web app by React.js
  • [ ] vue - :construction: Modern web app by Vue.js
  • [ ] jekyll - :construction: Static site by Jekyll
  • [ ] electron - :construction: Electron app
  • [ ] x-pages - :construction: Static site by x-pages

Maybe more: https://github.com/zce-templates

You can also run zce ls to see all available official templates in real time.

Create Your Template

To create and distribute your own template, refer to Create new template.

Maybe fork an official template or use zce-templates/template is a better decision.

Server (WIP)

Simple static site develop workflow.

:construction:

Maybe more...

API Usage

You can use it in your CLI program.

const { generator, server } = require('zce-cli')

// ...

// generate a new project from a template
await generator.init(template, project, { force, offline, save })

// ...

// list available official templates
generator.list(username, { short })

// ...

TODOS

Generator

  • [x] list command
  • [x] init command
  • [x] unit test
  • [ ] e2e test
  • [ ] Official Templates
  • [ ] Lodash template debug

Server

  • [ ] Planning

Contributing

  1. Fork it on GitHub!
  2. Clone the fork to your own machine.
  3. Checkout your feature branch: git checkout -b my-awesome-feature
  4. Commit your changes to your own branch: git commit -am 'Add some feature'
  5. Push your work back up to your fork: git push -u origin my-awesome-feature
  6. Submit a Pull Request so that we can review your changes.

NOTE: Be sure to merge the latest from "upstream" before making a pull request!

License

MIT © 汪磊

Current Tags

  • 0.2.5                                ...           latest (2 months ago)
  • 0.3.0-alpha.10                                ...           next (2 months ago)
  • 0.3.0-nightly.20190506                                ...           nightly (a year ago)

48 Versions

  • 0.3.0-alpha.10                                ...           2 months ago
  • 0.2.5                                ...           2 months ago
  • 0.2.4                                ...           2 months ago
  • 0.3.0-alpha.9                                ...           2 months ago
  • 0.3.0-alpha.8                                ...           2 months ago
  • 0.3.0-alpha.7                                ...           2 months ago
  • 0.3.0-alpha.6                                ...           2 months ago
  • 0.3.0-alpha.5                                ...           2 months ago
  • 0.3.0-alpha.4                                ...           3 months ago
  • 0.3.0-alpha.3                                ...           3 months ago
  • 0.3.0-alpha.1                                ...           3 months ago
  • 0.2.3                                ...           3 months ago
  • 0.3.0-nightly.20200705                                ...           3 months ago
  • 0.3.0-nightly.20200704                                ...           3 months ago
  • 0.2.2                                ...           3 months ago
  • 0.2.1                                ...           9 months ago
  • 0.2.0                                ...           a year ago
  • 0.3.0-nightly.20190506                                ...           a year ago
  • 0.2.0-alpha.13                                ...           a year ago
  • 0.3.0-nightly.20190505                                ...           a year ago
  • 0.3.0-nightly.20190504                                ...           a year ago
  • 0.2.0-alpha.12                                ...           a year ago
  • 0.3.0-nightly.20190503                                ...           a year ago
  • 0.3.0-nightly.20190502                                ...           a year ago
  • 0.3.0-nightly.20190501                                ...           a year ago
  • 0.2.0-alpha.11                                ...           2 years ago
  • 0.2.0-alpha.10                                ...           2 years ago
  • 0.2.0-alpha.9                                ...           2 years ago
  • 0.2.0-alpha.8                                ...           2 years ago
  • 0.2.0-alpha.7                                ...           2 years ago
  • 0.2.0-alpha.6                                ...           2 years ago
  • 0.2.0-alpha.5                                ...           2 years ago
  • 0.2.0-alpha.4                                ...           2 years ago
  • 0.2.0-alpha.3                                ...           2 years ago
  • 0.2.0-alpha.2                                ...           2 years ago
  • 0.2.0-alpha.1                                ...           2 years ago
  • 0.1.0-alpha.11                                ...           2 years ago
  • 0.1.0-alpha.10                                ...           2 years ago
  • 0.1.0-alpha.9                                ...           3 years ago
  • 0.1.0-alpha.8                                ...           3 years ago
  • 0.1.0-alpha.7                                ...           3 years ago
  • 0.1.0-alpha.6                                ...           3 years ago
  • 0.1.0-alpha.5                                ...           3 years ago
  • 0.1.0-alpha.4                                ...           3 years ago
  • 0.1.0-alpha.3                                ...           3 years ago
  • 0.1.0-alpha.2                                ...           3 years ago
  • 0.1.0-alpha.1                                ...           3 years ago
  • 0.0.0                                ...           3 years ago
Maintainers (2)
Downloads
Today 0
This Week 19
This Month 102
Last Day 0
Last Week 46
Last Month 119
Dependencies (17)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |