update templates to support winjs and testing outside of uwp env

This commit is contained in:
jared gholston
2017-09-11 15:30:27 -07:00
committed by Joshua Granick
parent 5a513c0ab5
commit 89fee086e9
3 changed files with 65 additions and 54 deletions

View File

@@ -4,6 +4,14 @@
(function () {
"use strict";
if(typeof Windows !== "undefined") {
initUWP();
} else {
lime.embed ("::APP_FILE::", "content", ::WIN_WIDTH::, ::WIN_HEIGHT::);
}
function initUWP() {
var app = WinJS.Application;
var activation = Windows.ApplicationModel.Activation;
var isFirstActivation = true;
@@ -59,5 +67,7 @@
};
app.start();
}
})();

View File

@@ -32,8 +32,8 @@
StartPage="index.html">
<uap:VisualElements
DisplayName="HelloJS"
Description="HelloJS"
DisplayName="::APP_TITLE::"
Description="::APP_TITLE::"
BackgroundColor="transparent"
Square150x150Logo="images\Square150x150Logo.png"
Square44x44Logo="images\Square44x44Logo.png">

View File

@@ -61,6 +61,7 @@
<SubType>Designer</SubType>
</AppxManifest>
<Content Include="index.html" />
<Content Include="*.js" />
<Content Include="images\**\*.*" />
<Content Include="js\**\*.*" />
<Content Include="fonts\**\*.*" />