mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
add date and hash in build
This commit is contained in:
@@ -51,6 +51,7 @@
|
|||||||
"source-map-support": "^0.5.10",
|
"source-map-support": "^0.5.10",
|
||||||
"ts-jest": "^23.10.5",
|
"ts-jest": "^23.10.5",
|
||||||
"typescript": "^3.2.2",
|
"typescript": "^3.2.2",
|
||||||
|
"git-rev-sync": "^1.12.0",
|
||||||
"uglify-es": "^3.3.9"
|
"uglify-es": "^3.3.9"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
import { version } from "./package.json";
|
import { version } from "./package.json";
|
||||||
|
import git from "git-rev-sync";
|
||||||
|
|
||||||
// rollup.config.js
|
// rollup.config.js
|
||||||
export default {
|
export default {
|
||||||
@@ -8,6 +9,6 @@ export default {
|
|||||||
format: "iife",
|
format: "iife",
|
||||||
name: "odoo",
|
name: "odoo",
|
||||||
extend: true,
|
extend: true,
|
||||||
outro: `exports.core.version = '${version}';`
|
outro: `exports.core._version = '${version}';\nexports.core._date = '${new Date().toISOString()}';\nexports.core._hash = '${git.short()}';`
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user