Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Adding support for meanjs-version specific configuration option and d…
Browse files Browse the repository at this point in the history
…isplaying both MEAN.JS project and App project version numbers on start-up
  • Loading branch information
lirantal committed Sep 6, 2015
1 parent 58b371b commit a12746e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/lib/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ module.exports.start = function start(callback) {
if (process.env.NODE_ENV === 'secure') {
console.log(chalk.green('HTTPs:\t\t\t\ton'));
}
console.log(chalk.green('MEAN.JS version:\t\t\t' + config.meanjs.version));
console.log(chalk.green('App version:\t\t\t' + config.meanjs.version));
if (config.meanjs['meanjs-version'])
console.log(chalk.green('MEAN.JS version:\t\t\t' + config.meanjs['meanjs-version']));
console.log('--');

if (callback) callback(app, db, config);
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "meanjs",
"description": "Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js.",
"version": "0.4.1",
"meanjs-version": "0.4.1",
"private": false,
"author": "https://github.com/meanjs/mean/graphs/contributors",
"license": "MIT",
Expand Down

0 comments on commit a12746e

Please sign in to comment.