[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
This commit is contained in:
Vincent Schippefilt
2019-06-03 14:38:03 +02:00
committed by Géry Debongnie
parent 5842ed51b0
commit 1206afe6be
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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": {
+1 -1
View File
@@ -16,5 +16,5 @@
"strictPropertyInitialization": true,
"strictNullChecks": true
},
"include": ["demo/static/**/*.ts", "src/*.ts", "tests/*.ts"]
"include": ["src/*.ts"]
}