Name: node-uwp-wrapper
Owner: ms-iot
Description: null
Created: 2015-05-12 22:36:31.0
Updated: 2018-01-28 02:24:25.0
Pushed: 2017-02-17 23:36:26.0
Homepage: null
Size: 271
Language: C++
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This project is a Universal Windows Platform (UWP) application that wraps Node.js and enables deployment to Windows 10 devices from Visual Studio. The application is packaged into the Node.js Tools for UWP Apps installer. These tools provide the ability to create Node.js applications and easily deploy and debug them on Windows IoT Core devices. During deployment, the NTVS IoT extension will create a UWP package that contains:
To get started, take a look at the “Hello World” sample here.
ild chakra uwp-dll nosign [x86|x64|arm]
ild Headless\nodeuwp.sln /p:configuration=[release|debug] /p:platform=[x86|x64|arm]
Use the following instructions to test node.dll in the UWP wrapper. Node.js tests can be run using the Test\run.ps1 PowerShell script. The script takes input from a nodeuwp.testinfo file (with a list of tests to run), launches the app for each test, and logs results to a file. For more information, take a look at the comments at the beginning of the script.
ild Headed\nodeuwpui.sln /p:configuration=[release|debug] /p:platform=[x86|x64|arm]
If you get an error that the SDK used is different than what you have, open the solution and change the SDK to a version installed already.
n.ps1 -app [Path to appx] -test [path to test dir] -appl [appx launcher path]
Example:
n.ps1 -app C:\repos\node-uwp-wrapper\Headed\AppPackages\nodeuwpui\nodeuwpui_1.0.0.0_x64_Test -test C:\repos\node\test -appl C:\Tools\AppLauncher.exe
-06-18 15:17:18Z TestLog: Test count = [3]
-06-18 15:17:18Z TestLog: 1 - Start Test: test\parallel\test-assert.js
OK
Code: 0
-06-18 15:17:21Z TestLog: End Test
-06-18 15:17:22Z TestLog: 2 - Start Test: test\parallel\test-buffer.js
r: Cannot find module 'C:\Users\username\AppData\Local\Packages\nodeuwpui_gqmz2j608xdxe\LocalState\test\parallel\test-buffer.js'
t Module._resolveFilename (module.js:341:5)
t Module._load (module.js:290:3)
t Module.runMain (module.js:453:3)
t startup (node.js:148:11)
t Anonymous function (node.js:519:3)
-06-18 15:17:25Z TestLog: End Test
-06-18 15:17:25Z TestLog: **TEST SUMMARY**
-06-18 15:17:25Z TestLog: Tests run = [2/3]. Tests passed = [1/2]
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.