Cli-microsoft365: New command: Add PowerApps Component Framework project reference to solution project

Created on 28 Apr 2019  路  10Comments  路  Source: pnp/cli-microsoft365

Adds a reference from the project in the current directory to the project at 'path'

pa solution reference add -p|--path <path>

  • path: The path to the referenced project

Equivalent to the PowerApps CLI command.

new feature work in progress

Most helpful comment

I'll start working on this one, it's addictive 馃槑

All 10 comments

Updated the description slightly. Other than that, ready to go! 馃憤

I'll start working on this one, it's addictive 馃槑

I need to read in an XML file, find if a node exists and eventually maybe add a new node to the file.
Is there already functionality that does something similar or can I import an npm package to do this? I started implementing using jsdom

Any guidance you can share?

I don't think we have anything in that regard already. jsdom is pulling in quite a few dependencies. Isn't there a simpler package that does just XML processing without taking into account all the quirks of HTML?

I have no idea, suggestions are welcome. Otherwise I鈥檒l try and find an alternative.

@VelinGeorgiev, haven't you looked into it in the past?

I'll try to achieve the same result using xmldom instead of jsdom, it has no dependencies. If you had good or (and more important) bad experiences with this package, please let me know :)

I don't. Let's give it a try 馃憤

I haven't used any XML lib with JavaScript so far. I was thinking about xpath api in JavaScript if available. Looking at that article seems might be possible https://developer.mozilla.org/en-US/docs/Web/JavaScript/Introduction_to_using_XPath_in_JavaScript.

The problem isn't much with traversing through the Document object, it's with getting such an object from a file/string representation. In the browser we would use new DOMParser().parseFromString(content, 'txt/xml'), the problem is that this doesn't exist in node.js. Also, all methods on Document (like getElementById, getElementByTagName, evaluate, etc) aren't implemented...

Btw, xmldom implements a subset of those elements and that allowed me to implement it. Still need to build test cases.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VelinGeorgiev picture VelinGeorgiev  路  3Comments

phillipharding picture phillipharding  路  3Comments

plamber picture plamber  路  3Comments

garrytrinder picture garrytrinder  路  3Comments

joshua-probst picture joshua-probst  路  3Comments