Neat Paraskavedekatriaphobia's Meaning

npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

@rucken/cli

3.3.4 • Public • Published

@rucken/cli

Console tools for create and build Angular7+ and NestJS application based on Rucken template

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

Install

$ npm install -g @rucken/cli

Usage

Create new project

$ rucken new app-name
$ cd app-name
$ npm install
$ npm run build
$ npm run start:dev

Create new entity and all files for work (backend and frontend)

$ rucken . -n table-name -f [name,title]

Changelogs

Version Changelog
GitHub tag @rucken/schematics - Schematics collections for cli
GitHub tag @rucken/core - Frontend on Angular7+
GitHub tag @rucken/core-nestjs - Backend on NestJS

Generators

rucken new [FOLDER]

generate empty backend on NestJS and frontend on Angular7+ application based on Rucken template

USAGE
  $ rucken new [FOLDER]

OPTIONS
  -n, --name=name          (required) application name on ke-bab case
  -e, --email=email        email
  -u, --username=username  username
  --frontend=template  [default: @rucken/schematics:angular-new] template
  --backend=template  [default: @rucken/schematics:nestjs-new] template
  -h, --help               show CLI help

See code: src\commands\new.ts

rucken entity [FOLDER]

generate backend dto, entity, service and controller for NestJS backend and generate frontend model, service, grid, lookup input, modal for edit row in grid, modal for select items from grid with items for Angular7+ application based on Rucken template

USAGE
  $ rucken entity [FOLDER]

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

See code: src\commands\entity.ts

rucken new:angular [FOLDER]

generate frontend web empty Angular7+ application based on Rucken template

USAGE
  $ rucken new:angular [FOLDER]

OPTIONS
  -n, --name=name          (required) application name on ke-bab case
  -e, --email=email        email
  -u, --username=username  username
  -t, --template=template  [default: @rucken/schematics:angular-new] template
  -h, --help               show CLI help

ALIASES
  $ rucken new:angular
  $ rucken angular-new
  $ rucken frontend:new

See code: src\commands\angular-new.ts

rucken new:nestjs [FOLDER]

generate dto, entity, service and controller for NestJS backend

USAGE
  $ rucken new:nestjs [FOLDER]

OPTIONS
  -n, --name=name          (required) application name on ke-bab case
  -e, --email=email        email
  -u, --username=username  username
  -t, --template=template  [default: @rucken/schematics:nestjs-new] template
  -h, --help               show CLI help

ALIASES
  $ rucken new:nestjs
  $ rucken nestjs-new
  $ rucken backend:new

See code: src\commands\nestjs-new.ts

rucken entity:angular [FOLDER]

generate frontend model, service, grid, lookup input, modal for edit row in grid, modal for select items from grid with items for Angular7+ application based on Rucken template

USAGE
  $ rucken entity:angular [FOLDER]

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

ALIASES
  $ rucken new:angular
  $ rucken angular-new
  $ rucken frontend:new

See code: src\commands\angular-entity.ts

rucken entity:nestjs [FOLDER]

generate dto, entity, service and controller for NestJS backend

USAGE
  $ rucken entity:nestjs [FOLDER]

OPTIONS
  -n, --name=name          (required) entity singular name on ke-bab case
  -f, --fields=fields      [default: [name]] entity fields
  -e, --email=email        email
  -u, --username=username  username
  -a, --app=app            application name in .nestcli.json
  -c, --core=core          core library name in .nestcli.json
  -t, --template=template  [default: @rucken/schematics:nestjs-new] template
  -h, --help               show CLI help

See code: src\commands\nestjs-entity.ts

Commands

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

install

npm i @rucken/cli

Downloadsweekly downloads

193

version

3.3.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability