Giter Club home page Giter Club logo

cli's Introduction

lt CLI

A CLI for lenne.Tech libraries and frameworks.

CLI in action:

Gluegun Menu Demo

License CircleCI Dependency Status devDependency Status

Installation

$ npm install -g @lenne.tech/cli

Usage

Menu mode
$ lt
or command line mode
$ lt <command> (<subcommand>) (<parameter>)

Help / List of commands

$ lt help
or
$ lt

Examples

// Start
$ lt

// Create new server
$ lt server create <ServerName>
or
$ lt server c <ServerName>

// Create new module for server (in server project root dir)
$ lt server module <ModuleName>
or
$ lt server m <ModuleName>

// Update and install npm packages (in project dir)
$ lt npm update
or
$ lt npm up
or
$ lt npm u

// Checkout git branch and update packages (in project dir)
$ lt git get <branch-name or part-of-branch-name>
or
$ lt git g <branch-name or part-of-branch-name>

...

Development

# Clone project
git clone [email protected]:lenneTech/cli.git
cd cli

# Link the project for global usage
npm link

# Make changes
...

# Test changes
lt ...

# Build new version
npm build

Thanks

Many thanks to the developers of Glugun and all the developers whose packages are used here.

License

MIT - see LICENSE

cli's People

Contributors

dependabot[bot] avatar fsteinhanseslt avatar kaihaase avatar pascal-klesse avatar pascalklesse avatar vincnt28 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cli's Issues

"lt git get" does not always work

Branch name: feature/AKA-16-

Working:
lt git get AKA-16 = works

Not Working:
lt git get => 16 => not working
lt git get => AKA-16 => not working
lt git get 16 => not working => error:
Bildschirmfoto 2019-08-29 um 16 02 09

some dependencies are missing

The current package.json inside app is missing some dependencies to launch the app properly.

With the following setup it works:

"dependencies": {
"@angular/animations": "14.2.12",
"@angular/cdk": "14.2.7",
"@angular/common": "14.2.12",
"@angular/compiler": "14.2.12",
"@angular/core": "14.2.12",
"@angular/forms": "14.2.12",
"@angular/localize": "14.2.12",
"@angular/platform-browser": "14.2.12",
"@angular/platform-browser-dynamic": "14.2.12",
"@angular/platform-server": "14.2.12",
"@angular/router": "14.2.12",
"@apollo/client": "3.7.8",
"@lenne.tech/ng-base": "14.36.0",
"@ng-bootstrap/ng-bootstrap": "13.1.1",
"@nguniversal/express-engine": "14.2.3",
"@popperjs/core": "2.11.6",
"apollo-angular": "4.2.1",
"bootstrap": "5.2.3",
"bootstrap-icons": "1.10.3",
"compression": "1.7.4",
"compressorjs": "1.2.1",
"express": "4.18.2",
"graphql": "16.6.0",
"graphql-ws": "5.11.3",
"js-sha256": "0.9.0",
"localstorage-polyfill": "1.0.1",
"ngx-image-cropper": "6.3.2",
"rxjs": "7.5.7",
"tslib": "2.4.1",
"zone.js": "0.11.8" 
},

"devDependencies": {
"@angular-devkit/build-angular": "14.2.10",
"@angular-eslint/builder": "14.4.0",
"@angular-eslint/eslint-plugin": "14.4.0",
"@angular-eslint/eslint-plugin-template": "14.4.0",
"@angular-eslint/schematics": "14.4.0",
"@angular-eslint/template-parser": "14.4.0",
"@angular/cli": "14.2.10",
"@angular/compiler-cli": "14.2.12",
"@nguniversal/builders": "14.2.3",
"@types/compression": "1.7.2",
"@types/express": "4.17.17",
"@types/jasmine": "4.3.1",
"@types/node": "18.11.18",
"@typescript-eslint/eslint-plugin": "5.52.0",
"@typescript-eslint/parser": "5.52.0",
"eslint": "8.34.0",
"eslint-config-prettier": "8.6.0",
"eslint-plugin-prettier": "4.2.1",
"jasmine-core": "4.5.0",
"karma": "6.4.1",
"karma-chrome-launcher": "3.1.1",
"karma-coverage": "2.2.0",
"karma-jasmine": "5.1.0",
"karma-jasmine-html-reporter": "2.0.0",
"typescript": "4.8.4"
},

Packages i updated:
"@lenne.tech/ng-base": "14.36.0",
--> in dependencies

"@types/node": "18.11.18",
--> in devDependencies

Packaged i added:
"@angular/localize": "14.2.12",
"@ng-bootstrap/ng-bootstrap": "13.1.1",
"@popperjs/core": "2.11.6",
"compressorjs": "1.2.1",
"js-sha256": "0.9.0",
"ngx-image-cropper": "6.3.2",
--> to dependencies

Wrong dependencies imported

'InternalServerErrorException' is getting imported in the new generated server .service.ts-file but is never used.
'Document' doesnt gets imported in the new generated server .service.ts-file but is used in line 41 (@InjectModel)

Typo when creating new Nestserver Module

When i create a new server module via cli i get an example-method. There is a typo: it is called "exampleMethode" --> the first part is in english, the second part is in german.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.