Socket
Socket
Sign inDemoInstall

@nestjs/cli

Package Overview
Dependencies
355
Maintainers
3
Versions
215
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-rc.3 to 4.0.0-rc1

actions/generate.js

62

package.json
{
"name": "@nestjs/cli",
"version": "2.0.0-rc.3",
"license": "MIT",
"version": "4.0.0-rc1",
"description": "Nest CLI",
"publishConfig": {

@@ -9,15 +9,6 @@ "access": "public"

"bin": {
"nest": "index.js"
"nest": "bin/nest.js"
},
"scripts": {
"build": "npm run -s build:src && npm run -s build:assets",
"build:src": "tsc",
"build:assets": "node scripts/copy.script.js src/commands/generate/templates bin/commands/generate/templates",
"clean": "node scripts/clean.script.js bin/* && node scripts/clean.script.js coverage/*",
"clean:build": "npm run -s clean && npm run -s build",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"test": "npm run -s test:src && npm run -s test:scripts",
"test:watch": "nodemon --watch src -e ts --exec \"npm run -s test:src\"",
"test:src": "nyc mocha src/**/*.spec.ts --require ts-node/register --reporter spec",
"test:scripts": "mocha scripts/**/*.spec.ts --require ts-node/register --reporter spec"
"start": "node bin/nest.js"
},

@@ -29,46 +20,17 @@ "repository": {

"author": "ThomRick",
"license": "MIT",
"bugs": {
"url": "https://github.com/nestjs/nest-cli/issues"
},
"homepage": "https://github.com/nestjs/nest-cli#readme",
"dependencies": {
"@angular-devkit/core": "^0.4.8",
"@angular-devkit/schematics-cli": "^0.4.8",
"@nestjs/schematics": "^4.0.0-rc3",
"caporal": "^0.6.0",
"nodemon": "^1.12.1",
"chalk": "^2.3.2",
"inquirer": "^5.2.0",
"os-name": "^2.0.1"
},
"devDependencies": {
"@types/chai": "^3.5.2",
"@types/mocha": "^2.2.41",
"@types/node": "^7.0.48",
"@types/os-name": "^2.0.0",
"@types/sinon": "^2.3.2",
"chai": "^4.0.0",
"coveralls": "^2.13.1",
"mocha": "^3.4.2",
"nyc": "^10.3.2",
"sinon": "^2.3.6",
"ts-node": "^3.3.0",
"typescript": "^2.4.1"
},
"nyc": {
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules/",
"src/**/*.spec.ts",
"src/**/test.utils.ts"
],
"extension": [
".ts"
],
"require": [
"ts-node/register"
],
"reporter": [
"text-summary",
"html"
],
"sourceMap": true,
"instrument": true
}
"devDependencies": {}
}

@@ -1,6 +0,6 @@

Tool to manage Nest projects: Modern, powerful web application framework for [Node.js](http://nodejs.org).
Tool to manage NestJS projects: Modern, powerful web application framework for [Node.js](http://nodejs.org).
[![Nest Logo](http://kamilmysliwiec.com/public/nest-logo.png)](http://kamilmysliwiec.com/)
# Nest CLI
# NestJS CLI

@@ -14,10 +14,13 @@ [![Join the chat at https://gitter.im/nestjs/nest-cli](https://badges.gitter.im/nestjs/nest-cli.svg)](https://gitter.im/nestjs/nest-cli?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

## Description
NestJS is a powerful web framework for [Node.js](http://nodejs.org), which helps you effortlessly build efficient, scalable applications. It uses modern JavaScript, is built with [TypeScript](http://www.typescriptlang.org) and combines best concepts of both OOP (Object Oriented Progamming) and FP (Functional Programming).
It is not just another framework. You do not have to wait for a large community, because NestJS is built with awesome, popular well-known libraries - [Express](https://github.com/expressjs/express) and [socket.io](https://github.com/socketio/socket.io)! It means, that you could quickly start using framework without worrying about a third party plugins.
The CLI tool helps to create, manage application architecture entities, build and run your project.
Nest is a powerful web framework for [Node.js](http://nodejs.org), which helps you effortlessly build efficient, scalable applications. It uses modern JavaScript, is built with [TypeScript](http://www.typescriptlang.org) and combines best concepts of both OOP (Object Oriented Progamming) and FP (Functional Programming).
## Installation
### NPM :
It is not just another framework. You do not have to wait for a large community, because Nest is built with awesome, popular well-known libraries - [Express](https://github.com/expressjs/express) and [socket.io](https://github.com/socketio/socket.io)! It means, that you could quickly start using framework without worrying about a third party plugins.
```
$ npm install -g @nestjs/cli
```
The CLI tool helps to create, manage application architecture entities, build and run your project.
## Installation
### Git :

@@ -31,70 +34,3 @@ ```

### npm :
```npm install -g @nestjs/cli```
## nestconfig.json
The nestconfig.json is here to manage the CLI execution like asset generation.
```json
{
"language": "ts | es (default: ts)",
"entryFile": "src/main.ts"
}
```
## Commands
### new
Usage :
`$ nest new <name> [destination] --<repository>`
Examples :
* `$ nest new my-app`
* `$ nest new my-app myapp/`
* `$ nest new my-app --repository https://github.com/ThomRick/nest-typescript-starter`
* `$ nest new my-app --r https://github.com/ThomRick/nest-typescript-starter`
* `$ nest new my-app myapp --r https://github.com/ThomRick/nest-typescript-starter`
Creates a new Nest application by cloning `https://github.com/nestjs/nest-typescript-starter` Git repository.
It add default nestconfig.json file if it does not exist.
### generate (or `g`)
Usage :
`$ nest generate <type> <name>`
Examples :
* `$ nest g module cats`
It creates the asset name folder and put the asset contents from template.
Managed assets :
* module
* controller
* component / service
* middleware
* pipe
* gateway
### serve (or `s`)
Usage :
* `$ nest serve`
It runs a live reload development server.
### build (not implemented)
### info
Usage:
* `$ nest info`
It prints the current OS and installed nest information
### update
Usage :
* `$ nest update`
It updates :
* @nestjs dependencies
* devDependencies
## Road Map
https://trello.com/nestcli
## Usage
See the [NestJS documentation](https://docs.nestjs.com/)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc