标签: nx-devkit

How to delete a file in NX generator

According to https://nx.dev/recipes/generators/creating-files

Generators provide an API for managing files within your workspace. You can use generators to do things such as create, update, move, and delete files.

it's possible to delete files in an NX generator.

I have the following code that generates a node application but I want to delete some of the generated files.

import { readProjectConfiguration, Tree } from '@nrwl/devkit';
import { applicationGenerator } from '@nrwl/node'

export interface Schema {
  name: string
}

export default …
Run Code Online (Sandbox Code Playgroud)

javascript nrwl nrwl-nx nx-devkit

1
推荐指数
1
解决办法
1140
查看次数

标签 统计

javascript ×1

nrwl ×1

nrwl-nx ×1

nx-devkit ×1