Mercurial > code > home > repos > homeauto
changeset 1484:e188fd8351c0
build cleanup and reformats
Ignore-this: dcb2bb4a86eee1a298c644e0f81a7d0d
darcs-hash:336acbaea2737a508bc9cfcfaaac3c3671835504
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Mon, 06 Jan 2020 23:47:30 -0800 |
parents | 52924efe4472 |
children | 62be73d368df |
files | service/wifi/src/graph_access.ts service/wifi/tasks.py service/wifi/tsconfig.json |
diffstat | 3 files changed, 11 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/service/wifi/src/graph_access.ts Mon Jan 06 23:47:05 2020 -0800 +++ b/service/wifi/src/graph_access.ts Mon Jan 06 23:47:30 2020 -0800 @@ -31,6 +31,7 @@ } let seen = false; for (let other of keep) { + // why are we getting multiple matches for the same literal? seems like a bug if (other.equals(q.object)) { seen = true; }
--- a/service/wifi/tasks.py Mon Jan 06 23:47:05 2020 -0800 +++ b/service/wifi/tasks.py Mon Jan 06 23:47:30 2020 -0800 @@ -4,7 +4,12 @@ PORT = 9070 TAG = f'bang6:5000/{JOB}_x86:latest' + @task +def build(ctx): + ctx.run(f'npm run build', pty=True) + +@task(pre=[build]) def build_image(ctx): ctx.run(f'docker build --network=host -t {TAG} .') @@ -32,12 +37,3 @@ # then pick the pnp one on statusbar. #yarn run webpack-cli --config webpack.config.js --mode production - - -@task -def build(ctx): - ctx.run(f'npm run webpack-build', pty=True) - -@task -def serve_demo(ctx): - ctx.run('npm run webpack-dev-server')
--- a/service/wifi/tsconfig.json Mon Jan 06 23:47:05 2020 -0800 +++ b/service/wifi/tsconfig.json Mon Jan 06 23:47:30 2020 -0800 @@ -11,9 +11,9 @@ "alwaysStrict": true, "types": ["jest"], - + "module": "ES6", - "target": "ES6", + "target": "ES6", "moduleResolution": "node", "sourceMap": true, "declaration": true, @@ -23,14 +23,13 @@ // "allowSyntheticDefaultImports": true, // "rootDir": ".", // "outDir": "./build", - "baseUrl": ".", + "baseUrl": "." // "emitDecoratorMetadata": true, - // "lib": [ "dom" ], + // "lib": [ "dom" ], // "diagnostics": true, // "traceResolution": true - }, - "include": ["src/**/*.ts"], + "include": ["src/**/*.ts"] // "exclude": ["src/**/*.test.ts"] }