开发者社区> 镜像站> NPM> poe
poe
CLI for poe
Last updated 4 years ago by mndvns .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install poe 
SYNC missed versions from official npm registry.

poe-cli

An command line interface for managing poe web applications.

Installation

npm i -g poe

Commands

Three commands are available: create, config, and start

Examples

Issuing the create command will prompt you for any necessary fields before continuing.

poe create api
# project:
# username:
# description:
# etc

Alternatively, you may pass the fields as arguments.

poe create ui --project my-app --username mndvns --description 'This my app'

Frequently used fields may be saved via config...

poe config --username mndvns

...which are used and read before every command, but may be overwritten by passed arguments.

Creating apps

The create command instantiates a webapp of different types with minimal configuration. The idea is to have an app up and running (even deployed) in a matter of seconds.

Right now the available app templates are

  • static, a static site run by poe-static
  • ui, a client-facing webapp that runs poe-ui
  • api, a server running on mazurka

Usage

Via poe create --help

Usage: poe create [options] [type]

Options:

  -h, --help     output usage information
  -V, --version  output the version number
  --verbose      verbose loggin to stdout
  --fields       output the required fields
  --unsafe       do not ask before overwriting files
  --quick        do not ask for confirmation
  --no-color     do not apply colors to logs

Types:

  static   a static app
  ui       a dynamic client app
  api      a web api

Configuring

The config command lets you customize application fields that never/rarely change. The file is stored in ~/.config/poe if you choose to edit it yourself, but the config command makes it trival.

Usage

Via poe config --help

Usage: poe config [options]

Options:

  -h, --help             output usage information
  -V, --version          output the version number
  --username <username>  your github username
  --email <email>        your github email
  --fullname <fullname>  your fullname

Starting

The start command (also the default command if a valid command is not provided) pipes the arguments to make. In other words, running poe start or simply poe is the same as running make in your app.

Since the arguments are fed directly to make, there are no options for this command.

Todo

  • tests
  • combine app templates (api + ui)
  • add private templates

License

MIT

Current Tags

  • 1.6.4                                ...           latest (4 years ago)

27 Versions

  • 1.6.4                                ...           4 years ago
  • 1.6.3                                ...           4 years ago
  • 1.6.2                                ...           4 years ago
  • 1.6.1                                ...           4 years ago
  • 1.6.0                                ...           4 years ago
  • 1.5.0                                ...           4 years ago
  • 1.4.2                                ...           5 years ago
  • 1.4.0                                ...           5 years ago
  • 1.2.0                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.15                                ...           5 years ago
  • 1.0.14                                ...           5 years ago
  • 1.0.13                                ...           5 years ago
  • 1.0.12                                ...           5 years ago
  • 1.0.11                                ...           5 years ago
  • 1.0.10                                ...           5 years ago
  • 1.0.9                                ...           5 years ago
  • 1.0.8                                ...           5 years ago
  • 1.0.6                                ...           5 years ago
  • 1.0.5                                ...           5 years ago
  • 1.0.4                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 0.1.2                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (3)
Dependents (0)
None