Tooling for building and running of applications written using the @wixc3/engine-core
package.
Generates a feature folder with all basic imports and declarations.
-
feature-name
should be dash-separated - optional
featuresDir
argument for specifying the path to the features directory in the project . - optional
templatesDir
argument for having customized templates/folder structure
-
featuresDirectory
- same asfeaturesDir
in CLI options -
featureTemplatesFolder
- same astemplatesDir
in CLI options -
featureFolderNameTemplate
- for overriding default feature folder name template (see Templating options)
If you wish to work with your own templates directory, using the templatesDir
option, you can use ${featureName}
in your customized templates whenever you want, including folder names.
Each file/folder name you want as a template should end with .tmpl
, other extensions/folder names are ignored and get copied as they are.
- camelCase:
${featureName.camelCase}
- dash-case:
${featureName.dashCase}
- PascalCase:
${featureName.pascalCase}
For example, given the following templates folder:
- feature
- ${featureName.dashCase}.feature.ts.tmpl =
export const ${featureName.camelCase} = ...
- ${featureName.dashCase}.feature.ts.tmpl =
- test-${featureName.dashCase}.tmpl
- ${featureName.dashCase}.spec.ts.tmpl =
describe('${featureName.pascalCase} feature', () => ...
- ${featureName.dashCase}.spec.ts.tmpl =
- README.md =
Hi ${featureName.pascalCase}!
If featureName
is cool-thing
, the parsed folder will be:
- feature
- cool-thing.feature.ts =
export const coolThing = ...
- cool-thing.feature.ts =
- test-cool-thing
- cool-thing.spec.ts =
describe('CoolThing feature', () => ...
- cool-thing.spec.ts =
- README.md =
Hi ${featureName.pascalCase}!
(NOT PARSED, file doesn't end with.tmpl
)