mirror of
https://github.com/vatesfr/xen-orchestra.git
synced 2026-09-10 22:14:48 -05:00
feat(xo-server): show buid commit
This commit is contained in:
committed by
Pierre Donias
parent
c922b62217
commit
9373909581
@@ -28,6 +28,7 @@
|
||||
- [REST API] Expose `/rest/v0/pools/<pool-id>/dashboard` (PR [#8768](https://github.com/vatesfr/xen-orchestra/pull/8768))
|
||||
- [ACL] Confirmation message when deleting an ACL rule (PR [#8774](https://github.com/vatesfr/xen-orchestra/pull/8774))
|
||||
- [REST API] Ability to create a VM with `name_description`, `memory` and `autoPoweron` (PR [#8798](https://github.com/vatesfr/xen-orchestra/pull/8798))
|
||||
- [xo-server] Display build commit at start-up and with `xo-server --help`
|
||||
|
||||
### Bug fixes
|
||||
|
||||
@@ -68,7 +69,7 @@
|
||||
- @xen-orchestra/web minor
|
||||
- @xen-orchestra/web-core minor
|
||||
- @xen-orchestra/xapi patch
|
||||
- xo-server patch
|
||||
- xo-server minor
|
||||
- xo-web minor
|
||||
|
||||
<!--packages-end-->
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
const { execFileSync } = require('node:child_process')
|
||||
|
||||
module.exports = require('../../@xen-orchestra/babel-config')(require('./package.json'), {
|
||||
'@babel/preset-env': {
|
||||
modules: false,
|
||||
},
|
||||
'babel-plugin-transform-define': {
|
||||
__GIT_COMMIT__: execFileSync('git', ['rev-parse', '--short', 'HEAD']).toString().trim(),
|
||||
},
|
||||
})
|
||||
|
||||
@@ -156,6 +156,7 @@
|
||||
"@babel/plugin-proposal-pipeline-operator": "^7.0.0",
|
||||
"@babel/plugin-proposal-throw-expressions": "^7.0.0",
|
||||
"@babel/preset-env": "^7.11.0",
|
||||
"babel-plugin-transform-define": "^2.1.4",
|
||||
"babel-plugin-transform-dev": "^2.0.1",
|
||||
"cross-env": "^7.0.2",
|
||||
"index-modules": "^0.4.3"
|
||||
|
||||
@@ -781,7 +781,7 @@ const setUpConsoleProxy = (webServer, xo, useForwardedHeaders) => {
|
||||
|
||||
const USAGE = `Usage: ${APP_NAME} [--safe-mode]
|
||||
|
||||
${APP_NAME} v${APP_VERSION}`
|
||||
${APP_NAME} v${APP_VERSION} (https://github.com/vatesfr/xen-orchestra/commit/${__GIT_COMMIT__})`
|
||||
|
||||
// ===================================================================
|
||||
|
||||
@@ -793,6 +793,8 @@ export default async function main(args) {
|
||||
return USAGE
|
||||
}
|
||||
|
||||
log.info(`Starting ${APP_NAME} v${APP_VERSION} (https://github.com/vatesfr/xen-orchestra/commit/${__GIT_COMMIT__})`)
|
||||
|
||||
const config = await loadConfiguration()
|
||||
|
||||
{
|
||||
|
||||
@@ -5,6 +5,10 @@ module.exports = {
|
||||
{
|
||||
files: ['src/**/*'],
|
||||
|
||||
globals: {
|
||||
__GIT_COMMIT__: 'readonly',
|
||||
},
|
||||
|
||||
parser: '@babel/eslint-parser',
|
||||
|
||||
parserOptions: {
|
||||
|
||||
13
yarn.lock
13
yarn.lock
@@ -6580,6 +6580,14 @@ babel-plugin-syntax-jsx@^6.0.0:
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946"
|
||||
integrity sha512-qrPaCSo9c8RHNRHIotaufGbuOBN8rtdC4QrrFFc43vyWCCz7Kl7GL1PGaXtMGQZUXrkCjNEgxDfmAuAabr/rlw==
|
||||
|
||||
babel-plugin-transform-define@^2.1.4:
|
||||
version "2.1.4"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-define/-/babel-plugin-transform-define-2.1.4.tgz#8f7088211176a55a72788d584ceea9f691a021c1"
|
||||
integrity sha512-NN9xFmyNvr4swPZkRWy+RZZoV0yHhPk/WoxpuIvcVkTyYf0xy/JTQeZVbVGX8hyJ0/NKKuxnt4BZz9No7BziVA==
|
||||
dependencies:
|
||||
lodash "^4.17.11"
|
||||
traverse "0.6.6"
|
||||
|
||||
babel-plugin-transform-dev@^2.0.1:
|
||||
version "2.0.1"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-dev/-/babel-plugin-transform-dev-2.0.1.tgz#fec5bbfb6b9576cd8413df5bd0ae7aca32b0a2d4"
|
||||
@@ -19917,6 +19925,11 @@ tr46@~0.0.3:
|
||||
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
|
||||
integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==
|
||||
|
||||
traverse@0.6.6:
|
||||
version "0.6.6"
|
||||
resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.6.6.tgz#cbdf560fd7b9af632502fed40f918c157ea97137"
|
||||
integrity sha512-kdf4JKs8lbARxWdp7RKdNzoJBhGUcIalSYibuGyHJbmk40pOysQ0+QPvlkCOICOivDWU2IJo2rkrxyTK2AH4fw==
|
||||
|
||||
"traverse@>=0.3.0 <0.4":
|
||||
version "0.3.9"
|
||||
resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.3.9.tgz#717b8f220cc0bb7b44e40514c22b2e8bbc70d8b9"
|
||||
|
||||
Reference in New Issue
Block a user