Add build from CLI config
This commit is contained in:
Родитель
d493e106ba
Коммит
cbd605f6a4
2
main.js
2
main.js
|
@ -3,6 +3,6 @@
|
|||
if (module.parent) {
|
||||
module.exports = {};
|
||||
} else {
|
||||
var hwaCli = require("./bin/cli.js");
|
||||
var hwaCli = require("./bin/src/cli.js");
|
||||
hwaCli.main(process.argv, process.argc);
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "0.0.10",
|
||||
"version": "0.0.11",
|
||||
"name": "hwa-cli",
|
||||
"title": "HWA Deployment Command-Line interface",
|
||||
"description": "Command-Line interface for deploying HWAs locally and remotely via HWA-Server.",
|
||||
|
|
|
@ -34,6 +34,9 @@
|
|||
<TypeScriptCompile Include="..\..\src\crxConverter.ts">
|
||||
<Link>src\crxConverter.ts</Link>
|
||||
</TypeScriptCompile>
|
||||
<TypeScriptCompile Include="..\..\src\phantom-image.ts">
|
||||
<Link>src\phantom-image.ts</Link>
|
||||
</TypeScriptCompile>
|
||||
<TypeScriptCompile Include="..\..\src\webConverter.ts">
|
||||
<Link>src\webConverter.ts</Link>
|
||||
</TypeScriptCompile>
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
import cp = require("child_process");
|
||||
/// <reference path="../projects/typings/node.d.ts" />
|
||||
/// <reference path="../projects/typings/adapter.d.ts" />
|
||||
import cp = require("child_process");
|
||||
import fs = require("fs");
|
||||
import net = require("net");
|
||||
import os = require("os");
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
import cp = require("child_process");
|
||||
/// <reference path="../projects/typings/node.d.ts" />
|
||||
/// <reference path="../projects/typings/adapter.d.ts" />
|
||||
import cp = require("child_process");
|
||||
import fs = require("fs");
|
||||
import net = require("net");
|
||||
import os = require("os");
|
||||
|
|
|
@ -139,7 +139,7 @@ export function convert(src: string, dest: string) {
|
|||
rl.close();
|
||||
console.log();
|
||||
console.log("Converting manifest to AppxManifest");
|
||||
var xmlManifest = webConverter.w3CToAppxManifest(w3cManifest, fs.readFileSync(p.join(__dirname, "../templates/w3c-AppxManifest-template.xml"), "utf8"),
|
||||
var xmlManifest = webConverter.w3CToAppxManifest(w3cManifest, fs.readFileSync(p.join(__dirname, "../../templates/w3c-AppxManifest-template.xml"), "utf8"),
|
||||
{
|
||||
identityName: identityName,
|
||||
publisherDisplayName: publisherDisplayName,
|
||||
|
@ -197,7 +197,7 @@ export function extractCrx(src: string, dest: string) {
|
|||
|
||||
function resizeImage(absSrcPath: string, targetWidth: number, targetHeight: number, newFilename: string) {
|
||||
var outputPath = p.join(p.dirname(absSrcPath), newFilename);
|
||||
cp.execFileSync(phantomjs.path, [p.join(__dirname, "/phantom-image.js"), absSrcPath, "" + targetWidth, "" + targetHeight, outputPath]/*, { stdio: [process.stdin, process.stdout, process.stderr] }*/);
|
||||
cp.execFileSync(phantomjs.path, [p.join(__dirname, "phantom-image.js"), absSrcPath, "" + targetWidth, "" + targetHeight, outputPath]/*, { stdio: [process.stdin, process.stdout, process.stderr] }*/);
|
||||
}
|
||||
|
||||
function sanitizeJSONString(str: string) {
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"module": "umd",
|
||||
"target": "ES5",
|
||||
"outDir": "bin/"
|
||||
},
|
||||
"files": [
|
||||
"src/adapter.ts",
|
||||
"src/cli.ts",
|
||||
"src/cloudAppx.ts",
|
||||
"src/crxConverter.ts",
|
||||
"src/phantom-image.ts",
|
||||
"src/webConverter.ts",
|
||||
"tests/adapterTests.ts"
|
||||
]
|
||||
}
|
Загрузка…
Ссылка в новой задаче