UNPKG

@dev-thought/nx-deploy-it

Version:

[![npm version](https://badge.fury.io/js/%40dev-thought%2Fnx-deploy-it.svg)](https://www.npmjs.com/package/@dev-thought/nx-deploy-it) [![The MIT License](https://img.shields.io/badge/license-MIT-orange.svg?color=blue&style=flat-square)](http://opensource.

21 lines (19 loc) 484 B
import { Tree } from '@angular-devkit/schematics'; import { SchematicTestRunner } from '@angular-devkit/schematics/testing'; export function createApplication( testRunner: SchematicTestRunner, projectName: string, applicationType: 'nest' | 'express' | 'angular' | 'react', tree: Tree ) { return testRunner .runExternalSchematicAsync( `@nrwl/${applicationType}`, 'application', { name: projectName }, tree ) .toPromise(); }