Skip to content

Commit

Permalink
Added the 'pa solution reference add' command solving pnp#954
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickRe authored and waldekmastykarz committed Oct 13, 2019
1 parent 629d783 commit cb35fb5
Show file tree
Hide file tree
Showing 13 changed files with 953 additions and 17 deletions.
37 changes: 37 additions & 0 deletions docs/manual/docs/cmd/pa/solution/solution-reference-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# pa solution reference add

Adds a project reference to the solution in the current directory

## Usage

```sh
pa solution reference add [options]
```

## Options

Option|Description
------|-----------
`--help`|output usage information
`-p, --path <path>`|The path to the referenced project
`-o, --output [output]`|Output type. `json|text`. Default `text`
`--verbose`|Runs command with verbose logging
`--debug`|Runs command with debug logging

## Remarks

This commands expects a CDS solution project in the current directory, and references a PowerApps component framework project.

The CDS solution project and the PowerApps component framework project cannot have the same name.

## Examples

Adds a reference inside the CDS Solution project in the current directory to the PowerApps component framework project at `./projects/ExampleProject`

```sh
pa solution reference add --path ./projects/ExampleProject
```

## 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)
1 change: 1 addition & 0 deletions docs/manual/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ nav:
- pcf init: 'cmd/pa/pcf/pcf-init.md'
- solution:
- solution init: 'cmd/pa/solution/solution-init.md'
- solution reference add: 'cmd/pa/solution/solution-reference-add.md'
- Microsoft Planner (planner):
- task:
- task list: 'cmd/planner/task/task-list.md'
Expand Down
6 changes: 6 additions & 0 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
"adal-node": "^0.1.28",
"applicationinsights": "^1.4.0",
"easy-table": "^1.1.1",
"node-forge": "0.8.5",
"omelette": "^0.4.12",
"request-promise-native": "^1.0.7",
"semver": "^6.1.1",
Expand All @@ -112,23 +113,24 @@
"update-notifier": "^3.0.0",
"uuid": "^3.3.2",
"vorpal": "https://github.com/pnp/vorpal/raw/master/vorpal-1.11.6.tgz",
"node-forge": "0.8.5"
"xmldom": "^0.1.27"
},
"devDependencies": {
"@types/easy-table": "0.0.32",
"@types/mocha": "^5.2.7",
"@types/node": "^10.14.8",
"@types/node-forge": "0.8.4",
"@types/request": "^2.48.1",
"@types/request-promise-native": "^1.0.16",
"@types/semver": "^6.0.0",
"@types/sinon": "^5.0.5",
"@types/update-notifier": "^2.5.0",
"@types/xmldom": "^0.1.29",
"coveralls": "^3.0.4",
"mocha": "^6.1.4",
"nyc": "^13.3.0",
"rimraf": "^2.6.3",
"sinon": "^7.3.2",
"@types/node-forge": "0.8.4"
"sinon": "^7.3.2"
},
"nyc": {
"exclude": [
Expand Down
Loading

0 comments on commit cb35fb5

Please sign in to comment.