You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A template file may be of any type and extension, and supports [Handlebars](https://handlebarsjs.com) as a parsing engine for the file names and contents, so you may customize both with variables from your configuration.
30
30
31
31
You may load more than one template list by simple adding more `--template` arguments.
32
32
33
-
##### `--output`
33
+
##### `--output path`
34
34
The output directory to put the new files in. They will attempt to maintain their regular structure as they are found, if possible.
35
35
36
36
Your new scaffold will be placed under a directory with the scaffold name from the argumemts.
37
37
38
38
You may also pass a function to transform the output path for each file individually.
39
39
This function takes 2 arguments: filename, and base glob path
40
40
41
-
##### `--locals`
42
-
You may set local variables to be pushed into the template and replaced.
43
-
The format for the value of this argument is:
44
-
45
-
```
46
-
property=value[,property=value[,...]]
41
+
##### `--locals key=value[,key=value[,...]]`
42
+
Pass a KV map to the template for parsing.
43
+
44
+
### Use in Node.js
45
+
You can also build the scaffold yourself.
46
+
Simply pass a config object to the constructor, and invoke `run()` when you are ready to start.
47
+
The config takes the same arguments as the command line:
0 commit comments