mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[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:
committed by
Géry Debongnie
parent
5842ed51b0
commit
1206afe6be
+2
-1
@@ -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
@@ -16,5 +16,5 @@
|
||||
"strictPropertyInitialization": true,
|
||||
"strictNullChecks": true
|
||||
},
|
||||
"include": ["demo/static/**/*.ts", "src/*.ts", "tests/*.ts"]
|
||||
"include": ["src/*.ts"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user