README
new-template (OperationClassification node-cjs)
Creates a new operation with files with content
Returns the final operation base path (or undefined if something went wrong)
NB: relative paths must be relative to OPERATION ROOT, not src root! They must also lead to files in src, this thing is still buggy otherwise!
TODO: Remove the buggyness
Input | ||
---|---|---|
name | string | |
Output |
Creates a new operation with files with content
Returns the final operation base path (or undefined if something went wrong)
NB: relative paths must be relative to OPERATION ROOT, not src root! They must also lead to files in src, this thing is still buggy otherwise!
TODO: Remove the buggyness
Returns either the basePath
of the created template, or undefined if something went wrong
Input | ||
---|---|---|
type | string | |
Output |
Returns either the basePath
of the created template, or undefined if something went wrong
Show CLI information (4)
newOperation also works as CLI
example: newOperation [operation-name] [type]
in the folder where you want to create it. Optionally you can specify the type of operation as the second argument of the CLI
Arguments (all optional):
- name: string
- type: OperationClassification
- description: string
- destinationPath: string
Input | ||
---|---|---|
- | ||
Output |
newTemplate can be used as CLI:
Arguments:
- type (required): a folder from
new-template/assets/templates
- destinationPath (optional): path where the template should be copied to (uses
cwd
by default)
Input | ||
---|---|---|
- | ||
Output |
newOperation also works as CLI
example: newOperation [operation-name] [type]
in the folder where you want to create it. Optionally you can specify the type of operation as the second argument of the CLI
Arguments (all optional):
- name: string
- type: OperationClassification
- description: string
- destinationPath: string
newTemplate can be used as CLI:
Arguments:
- type (required): a folder from
new-template/assets/templates
- destinationPath (optional): path where the template should be copied to (uses
cwd
by default)
Show test information(2)
Input | ||
---|---|---|
- | ||
Output |
Show internal (6)
returns folder name
finds the first foldername that is available in this folder but also there is nowhere an operation already with this name
there is also getAvailableFolderPath for non-operation folders
Input | ||
---|---|---|
rootFolderPath | string | |
Output |
Input | ||
---|---|---|
- | ||
Output |
This cli creates the correct tsconfig.json, package.json, .gitignore, folder setup, so you can get started immedeately.
Returns either the operationBasePath
of the created operation, or undefined if something went wrong
Input | ||
---|---|---|
name (optional) | string | |
Output |
returns folder name
finds the first foldername that is available in this folder but also there is nowhere an operation already with this name
there is also getAvailableFolderPath for non-operation folders
This cli creates the correct tsconfig.json, package.json, .gitignore, folder setup, so you can get started immedeately.
Returns either the operationBasePath
of the created operation, or undefined if something went wrong
README
new-template (OperationClassification node-cjs)
Creates a new operation with files with content
Returns the final operation base path (or undefined if something went wrong)
NB: relative paths must be relative to OPERATION ROOT, not src root! They must also lead to files in src, this thing is still buggy otherwise!
TODO: Remove the buggyness
Input | ||
---|---|---|
name | string | |
Output |
Creates a new operation with files with content
Returns the final operation base path (or undefined if something went wrong)
NB: relative paths must be relative to OPERATION ROOT, not src root! They must also lead to files in src, this thing is still buggy otherwise!
TODO: Remove the buggyness
Returns either the basePath
of the created template, or undefined if something went wrong
Input | ||
---|---|---|
type | string | |
Output |
Returns either the basePath
of the created template, or undefined if something went wrong
Show CLI information (4)
newOperation also works as CLI
example: newOperation [operation-name] [type]
in the folder where you want to create it. Optionally you can specify the type of operation as the second argument of the CLI
Arguments (all optional):
- name: string
- type: OperationClassification
- description: string
- destinationPath: string
Input | ||
---|---|---|
- | ||
Output |
newTemplate can be used as CLI:
Arguments:
- type (required): a folder from
new-template/assets/templates
- destinationPath (optional): path where the template should be copied to (uses
cwd
by default)
Input | ||
---|---|---|
- | ||
Output |
newOperation also works as CLI
example: newOperation [operation-name] [type]
in the folder where you want to create it. Optionally you can specify the type of operation as the second argument of the CLI
Arguments (all optional):
- name: string
- type: OperationClassification
- description: string
- destinationPath: string
newTemplate can be used as CLI:
Arguments:
- type (required): a folder from
new-template/assets/templates
- destinationPath (optional): path where the template should be copied to (uses
cwd
by default)
Show test information(2)
Input | ||
---|---|---|
- | ||
Output |
Show internal (6)
returns folder name
finds the first foldername that is available in this folder but also there is nowhere an operation already with this name
there is also getAvailableFolderPath for non-operation folders
Input | ||
---|---|---|
rootFolderPath | string | |
Output |
Input | ||
---|---|---|
- | ||
Output |
This cli creates the correct tsconfig.json, package.json, .gitignore, folder setup, so you can get started immedeately.
Returns either the operationBasePath
of the created operation, or undefined if something went wrong
Input | ||
---|---|---|
name (optional) | string | |
Output |
returns folder name
finds the first foldername that is available in this folder but also there is nowhere an operation already with this name
there is also getAvailableFolderPath for non-operation folders
This cli creates the correct tsconfig.json, package.json, .gitignore, folder setup, so you can get started immedeately.
Returns either the operationBasePath
of the created operation, or undefined if something went wrong