From bc9e6ac924d43b2477e41e738000558e9ebf2bb8 Mon Sep 17 00:00:00 2001 From: UsulPro Date: Tue, 25 Oct 2016 11:40:50 +0700 Subject: [PATCH] display version in build.js --- src/server/build.js | 3 +++ src/server/index.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server/build.js b/src/server/build.js index e4b6205d3e0d..e52de8deb763 100644 --- a/src/server/build.js +++ b/src/server/build.js @@ -4,6 +4,7 @@ import webpack from 'webpack'; import program from 'commander'; import path from 'path'; import fs from 'fs'; +import chalk from 'chalk'; import shelljs from 'shelljs'; import packageJson from '../../package.json'; import getBaseConfig from './config/webpack.config.prod'; @@ -26,6 +27,8 @@ program .option('--enable-db', 'DEPRECATED!') .parse(process.argv); +logger.info(chalk.bold(`${packageJson.name} v${packageJson.version}\n`)); + if (program.enableDb || program.dbPath) { logger.error([ 'Error: the experimental local database addon is no longer bundled with', diff --git a/src/server/index.js b/src/server/index.js index 580ba95016b4..14e5f9dd4fec 100755 --- a/src/server/index.js +++ b/src/server/index.js @@ -27,7 +27,7 @@ program .option('--enable-db', 'DEPRECATED!') .parse(process.argv); -logger.info(chalk.bold(`${packageJson.name} v${packageJson.version}`)); +logger.info(chalk.bold(`${packageJson.name} v${packageJson.version}\n`)); if (program.enableDb || program.dbPath) { logger.error([