forked from pnp/cli-microsoft365
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the 'pa pcf init' command solving pnp#952
- Loading branch information
1 parent
117e320
commit 742b8fc
Showing
28 changed files
with
1,495 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# pa pcf init | ||
|
||
Creates new PowerApps component framework project | ||
|
||
## Usage | ||
|
||
```sh | ||
pa pcf init [options] | ||
``` | ||
|
||
## Options | ||
|
||
Option|Description | ||
------|----------- | ||
`--help`|output usage information | ||
`--namespace <namespace>`|The namespace for the component. | ||
`--name <name>`|The name for the component. | ||
`--template <template>`|Choose a template for the component. `Field|Dataset`. | ||
`-o, --output [output]`|Output type. `json|text`. Default `text` | ||
`--verbose`|Runs command with verbose logging | ||
`--debug`|Runs command with debug logging | ||
|
||
## Remarks | ||
|
||
Name cannot contain reserved Javascript words. Only characters within the ranges [A-Z], [a-z] or [0-9] are allowed. The first character may not be a number. | ||
|
||
Namespace cannot contain reserved Javascript words. Only characters within the ranges [A-Z], [a-z], [0-9], or '.' are allowed. The first and last character may not be the '.' character. Consecutive '.' characters are not allowed. Numbers are not allowed as the first character or immediately after a period. | ||
|
||
Template currently only supports Field or Dataset. | ||
|
||
## Examples | ||
|
||
Initialize the PowerApps Component Framework for a Field component | ||
|
||
```sh | ||
pa pcf init --namespace yourNamespace --name yourCustomFieldComponent --template Field | ||
``` | ||
|
||
Initialize the PowerApps Component Framework for a Dataset component | ||
|
||
```sh | ||
pa pcf init --namespace yourNamespace --name yourCustomFieldComponent --template Dataset | ||
``` | ||
|
||
## More information | ||
|
||
- Create and build a custom component: [https://docs.microsoft.com/en-us/powerapps/developer/component-framework/create-custom-controls-using-pcf](https://docs.microsoft.com/en-us/powerapps/developer/component-framework/create-custom-controls-using-pcf) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const prefix: string = 'pa'; | ||
|
||
export default { | ||
PCF_INIT: `${prefix} pcf init` | ||
}; |
Oops, something went wrong.