From 1206afe6bec0038e5ef77bbd091bcc57700589f8 Mon Sep 17 00:00:00 2001 From: Vincent Schippefilt Date: Mon, 3 Jun 2019 14:38:03 +0200 Subject: [PATCH] [FIX] base: compile correctly on windows Fix package.json and tsconfig.json to build correctly on windows: the extention scr/* doesn't expand on windows, so I removed it. Added a precompilation step on npm run extras:watch --- package.json | 3 ++- tsconfig.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 099c2d42..1079972a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Odoo Web Library (OWL)", "main": "src/index.ts", "scripts": { - "build:js": "tsc --target esnext --module es6 --outDir dist/owl src/*", + "build:js": "tsc --target esnext --module es6 --outDir dist/owl", "build:bundle": "rollup -c", "build": "npm run build:js && npm run build:bundle", "minify": "uglifyjs dist/owl.js -o dist/owl.min.js --compress --mangle", @@ -12,6 +12,7 @@ "test:watch": "jest --watch", "extras:serve": "python3 extras/server.py || python extras/server.py", "extras": "npm run build && npm run extras:serve", + "preextras:watch": "npm run build", "extras:watch": "npm-run-all --parallel extras:serve \"build:* -- --watch\"" }, "repository": { diff --git a/tsconfig.json b/tsconfig.json index 140a9259..89e11ad9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -16,5 +16,5 @@ "strictPropertyInitialization": true, "strictNullChecks": true }, - "include": ["demo/static/**/*.ts", "src/*.ts", "tests/*.ts"] + "include": ["src/*.ts"] }