We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3eede03 commit c06187dCopy full SHA for c06187d
src/app-resources/index.ts
@@ -9,14 +9,16 @@ import {
9
} from '@angular-devkit/schematics';
10
11
import { Schema as AppResourcesSchema } from './schema';
12
+import { noop } from '../../node_modules/rxjs';
13
14
export default function (options: AppResourcesSchema) {
15
return branchAndMerge(mergeWith(
16
apply(url('./_files'), [
17
template(<TemplateOptions>{
18
name: options.name
19
}),
- move(options.path),
20
+ // move to path, if one provided, otherwise skip
21
+ (options.path) ? move(options.path) : noop
22
])
23
))
-}
24
+}
0 commit comments