Shagen Ogandzhanian
3 years ago
3 changed files with 38 additions and 3 deletions
@ -1,6 +1,7 @@
|
||||
#COMPOSE_CORE_VERSION=1.0.1-rc2 |
||||
COMPOSE_CORE_VERSION=10.10.10 |
||||
COMPOSE_WEB_VERSION=1.0.1-rc2 |
||||
SKIKO_VERSION=0.0.0-SNAPSHOT |
||||
compose.web.buildSamples=false |
||||
compose.web.tests.integration.withFirefox |
||||
compose.web.tests.skip.benchmarks=false |
||||
|
@ -0,0 +1,32 @@
|
||||
// see https://kotlinlang.org/docs/js-project-setup.html#webpack-configuration-file
|
||||
|
||||
const path = require("path"); |
||||
const fs = require("fs"); |
||||
|
||||
|
||||
config.browserConsoleLogOptions.level = "debug"; |
||||
|
||||
const basePath = config.basePath; |
||||
const projectPath = path.resolve(basePath, "..", "..", "..", "..", ".."); |
||||
const wasmPath = path.resolve(projectPath, "build", "out", "link", "Release-wasm-wasm") |
||||
|
||||
//const debug = message => console.log(`[karma-config] ${message}`);
|
||||
const debug = message => fs.appendFileSync('/Users/shagen/tmp/log.log', message + "\r\n"); |
||||
|
||||
const a = path.resolve("."); |
||||
|
||||
const projectName = path.basename(path.dirname(basePath)).replace(/-test$/, '').replace(/^web-/,''); |
||||
|
||||
if (projectName == "web-core") { |
||||
const rootBuildDir = path.resolve(__dirname, "..", "..", ".."); |
||||
const wasmPath = path.resolve(rootBuildDir, "skiko");
|
||||
|
||||
config.proxies = {
|
||||
"/wasm/": wasmPath |
||||
} |
||||
|
||||
config.files = [
|
||||
path.resolve(wasmPath, "skiko.js"), |
||||
{pattern: path.resolve(wasmPath, "skiko.wasm"), included: false, served: true, watched: false}, |
||||
].concat(config.files); |
||||
} |
Loading…
Reference in new issue