Socket
Socket
Sign inDemoInstall

@beeman/angular-serve-nodemon

Package Overview
Dependencies
198
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @beeman/angular-serve-nodemon

Angular Build Architect for running a script using nodemon


Version published
Maintainers
1
Install size
10.3 MB
Created

Readme

Source

Angular Build Architect for nodemon

Run a script using nodemon in an Angular CLI workspace.

Installation

npm i @beeman/angular-serve-nodemon

Usage

In order to use this 'builder', add a new project of type 'application' to the Angular CLI config.

In this example our project is called api and located in src/api. Adjust where needed.

Add an entry to projects in angular.json

{
  "projects": {
    "api": {
      "root": "src/api",
      "projectType": "application",
      "architect": {
        "serve": {
          "builder": "@beeman/angular-serve-nodemon:run",
          "options": {
            "script": "src/api/src/index.ts",
            "tsConfig": "src/api/tsconfig.server.json"
          }
        }
      }
    }
  }
}

Implement project files

src/api/src/index.ts
console.log('Hello World')
src/api/tsconfig.server.json
{
  "extends": "../../tsconfig.json",
  "compilerOptions": {
    "module": "commonjs"
  },
  "include": [
    "**/*.ts"
  ]
}

Run the new project

ng serve api

Should output:

[nodemon] 1.18.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `ts-node --project src/api/tsconfig.server.json src/api/src/index.ts`
hello world
[nodemon] clean exit - waiting for changes before restart

MIT License

FAQs

Last updated on 13 Jul 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc