Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @rucken/cli with all npm packages installed. Try it out:

var cli = require("@rucken/cli")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@rucken/cli v3.0.1

Console tools for create and build Angular5+ application based on rucken

@rucken/cli

Console tools for create and build Angular6+ application based on rucken template

oclif Greenkeeper badge Version Build Status Appveyor CI Codecov Downloads/week License Gitter Join the chat at telegram

What is Rucken?

- **Core** - Base entities and services for create applications on `Angular6+`, include work with users, groups and permissions. - **Web** - Base ui grids and inputs and etc. for manage users, groups and permissions.

Install

```sh-session $ npm install -g @rucken/cli ``` # Commands * [`rucken entity [FOLDER]`](#rucken-entity-folder) * [`rucken new [FOLDER]`](#rucken-new-folder)

rucken entity [FOLDER]

generate model, service, grid, lookup input, modal for edit row in grid, modal for select items from grid with items

USAGE
  $ rucken entity [FOLDER]

OPTIONS
  -a, --app=app            application name in angular.json
  -c, --core=core          core library name in angular.json
  -e, --email=email        email
  -f, --fields=fields      [default: [name]] entity fields
  -h, --help               show CLI help
  -n, --name=name          (required) entity singular name on ke-bab case
  -u, --username=username  username
  -w, --web=web            web library name in angular.json

See code: src\commands\entity.ts

rucken new [FOLDER]

generate empty application based on rucken template

USAGE
  $ rucken new [FOLDER]

OPTIONS
  -e, --email=email        email
  -h, --help               show CLI help
  -n, --name=name          (required) application name on ke-bab case
  -u, --username=username  username

See code: src\commands\new.ts

Commands

* [`rucken config [FOLDER]`](#rucken-config-folder) * [`rucken help [COMMAND]`](#rucken-help-command) * [`rucken make-ts-list [FOLDER]`](#rucken-make-ts-list-folder) * [`rucken prepare [FOLDER]`](#rucken-prepare-folder) * [`rucken translate [FOLDER]`](#rucken-translate-folder) * [`rucken version-updater [FOLDER]`](#rucken-version-updater-folder)

rucken config [FOLDER]

change angular.json properties and tsconfig.json properties for switch between dev - for speedup mono serve mode and prod - build optimization and standalone build all lib and application

USAGE
  $ rucken config [FOLDER]

OPTIONS
  -h, --help             show CLI help
  -m, --mode=(dev|prod)  [default: prod]

See code: src\commands\config.ts

rucken help [COMMAND]

display help for rucken

USAGE
  $ rucken help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

rucken make-ts-list [FOLDER]

make index.ts with list of ts files recursive from source folder

USAGE
  $ rucken make-ts-list [FOLDER]

OPTIONS
  -e, --excludes=excludes            [default: ["*server*","*node_modules*", "*public_api.ts*","*test.ts*"]] exclude
                                     directories/files masks

  -h, --help                         show CLI help

  -i, --indexFileName=indexFileName  [default: index.ts] output file

See code: src\commands\make-ts-list.ts

rucken prepare [FOLDER]

translate + make-ts-list + version-update + config

USAGE
  $ rucken prepare [FOLDER]

OPTIONS
  -h, --help             show CLI help
  -m, --mode=(dev|prod)  [default: prod]

See code: src\commands\prepare.ts

rucken translate [FOLDER]

extract translate from source and make ts class from it

USAGE
  $ rucken translate [FOLDER]

OPTIONS
  -c, --clean                      remove obsolete strings when merging
  -e, --excludes=excludes          [default: ["node_modules"]] exclude directories/files masks
  -f, --format=(po|json)           [default: po] file prefix and build mode
  -h, --help                       show CLI help
  -p, --prefix=prefix              name of class prefix
  -t, --templateName=templateName  [default: template] name of template

See code: src\commands\translate.ts

rucken version-updater [FOLDER]

libraries dependencies and package.json versions updater from root package.json

USAGE
  $ rucken version-updater [FOLDER]

OPTIONS
  -h, --help       show CLI help
  -r, --root=root  [default: .] root project with package.json for get inforamtion about dependencies and it versions

See code: src\commands\version-updater.ts

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free