diff --git a/@here/generator-harp.gl/package.json b/@here/generator-harp.gl/package.json index b0ef592c65..cf5411bb4f 100644 --- a/@here/generator-harp.gl/package.json +++ b/@here/generator-harp.gl/package.json @@ -23,13 +23,14 @@ ], "dependencies": { "mkdirp": "^1.0.4", - "yeoman-generator": "^4.10.1" + "yeoman-generator": "^5.2.0" }, "devDependencies": { "chai": "^4.2.0", "fs.extra": "^1.3.2", "mocha": "^8.2.1", - "yeoman-test": "^2.6.0" + "yeoman-environment": "^3.4.1", + "yeoman-test": "^6.1.0" }, "publishConfig": { "access": "public" diff --git a/@here/generator-harp.gl/test/test.js b/@here/generator-harp.gl/test/test.js index c5c3eef86e..9e9fb356eb 100644 --- a/@here/generator-harp.gl/test/test.js +++ b/@here/generator-harp.gl/test/test.js @@ -2,12 +2,8 @@ const fs = require("fs"); const fsExtra = require("fs.extra"); const path = require("path"); const yeomanTestHelpers = require("yeoman-test"); -const { - assert -} = require("chai"); -const { - spawnSync -} = require('child_process'); +const { assert } = require("chai"); +const { spawnSync } = require("child_process"); /* @@ -17,13 +13,13 @@ const { */ describe("harp.gl:app", function () { - this.timeout(300000); - let helperDirectory; + let runContext; before(async function () { - helperDirectory = await yeomanTestHelpers.run(path.join(__dirname, '../generators/app')) + runContext = await yeomanTestHelpers + .run(path.join(__dirname, "../generators/app")) .inTmpDir(function (dir) { if (process.env.USE_NPMRC) { const targetPath = path.join(dir, ".npmrc"); @@ -31,29 +27,30 @@ describe("harp.gl:app", function () { } }) .withPrompts({ - 'access_token': 'test_token' + language: "typescript", + apikey: "test_token" }); - assert.isString(helperDirectory); + assert.isNotNull(runContext); }); it("webpack", async function () { const installStatus = spawnSync("npm", ["install"], { - cwd: helperDirectory + cwd: runContext.cwd }); assert.strictEqual(installStatus.status, 0, installStatus.output); const buildStatus = spawnSync("npm", ["run", "build"], { - cwd: helperDirectory + cwd: runContext.cwd }); assert.strictEqual(buildStatus.status, 0, buildStatus.output); }); after(function () { if (process.env.KEEP_TEMP_DIR) { - console.log("Keeping", helperDirectory); + console.log("Keeping", runContext.cwd); } else { - fsExtra.rmrfSync(helperDirectory); + fsExtra.rmrfSync(runContext.cwd); } }); }); diff --git a/@here/harp-datasource-protocol/lib/TechniqueParams.ts b/@here/harp-datasource-protocol/lib/TechniqueParams.ts index b692dc3952..5c94cd6c28 100644 --- a/@here/harp-datasource-protocol/lib/TechniqueParams.ts +++ b/@here/harp-datasource-protocol/lib/TechniqueParams.ts @@ -480,7 +480,7 @@ export interface PointTechniqueParams extends BaseTechniqueParams { /** * Size of point in pixels. */ - size?: number; + size?: DynamicProperty; /** * Whether to enable picking on these points. */ diff --git a/@here/harp-datasource-protocol/package.json b/@here/harp-datasource-protocol/package.json index 2b5dc43be1..5932fb963d 100644 --- a/@here/harp-datasource-protocol/package.json +++ b/@here/harp-datasource-protocol/package.json @@ -33,17 +33,17 @@ "@here/harp-test-utils": "^0.25.0", "@types/chai": "^4.2.14", "@types/mocha": "^8.2.0", - "@types/three": "^0.127.0", + "@types/three": "^0.129.0", "chai": "^4.0.2", "cross-env": "^7.0.2", "mocha": "^8.2.1", "source-map-support": "^0.5.19", - "three": "^0.127.0", + "three": "^0.129.0", "ts-json-schema-generator": "^0.68.1", "typescript": "^4.1.2" }, "peerDependencies": { - "three": "^0.127.0" + "three": "^0.129.0" }, "publishConfig": { "access": "public" diff --git a/@here/harp-debug-datasource/package.json b/@here/harp-debug-datasource/package.json index 5f76261091..e85e12e08b 100644 --- a/@here/harp-debug-datasource/package.json +++ b/@here/harp-debug-datasource/package.json @@ -31,7 +31,7 @@ "@types/chai": "^4.2.14", "@types/mocha": "^8.2.0", "@types/node": "^14.0.5", - "@types/three": "^0.127.0", + "@types/three": "^0.129.0", "chai": "^4.0.2", "cross-env": "^7.0.2", "mocha": "^8.2.1", @@ -39,7 +39,7 @@ "typescript": "^4.1.2" }, "peerDependencies": { - "three": "^0.127.0" + "three": "^0.129.0" }, "publishConfig": { "access": "public" diff --git a/@here/harp-examples/index.html b/@here/harp-examples/index.html index 3fa7bf94e7..bbfbc2829d 100644 --- a/@here/harp-examples/index.html +++ b/@here/harp-examples/index.html @@ -6,7 +6,7 @@ -