Skip to content

Commit

Permalink
add version
Browse files Browse the repository at this point in the history
  • Loading branch information
InventivetalentDev committed Mar 18, 2019
1 parent 8ff752b commit bef516f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/renderBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default class Render {

console.log(" ");
console.log('%c ', 'font-size: 100px; background: url(https://minerender.org/img/minerender.svg) no-repeat;');
console.log("MineRender/" + (renderObj.renderType || renderObj.constructor.name));
console.log("MineRender/" + (renderObj.renderType || renderObj.constructor.name) + "/" + VERSION);
console.log((PRODUCTION ? "PRODUCTION" : "DEVELOPMENT") + " build");
console.log("Built @ " + BUILD_DATE);
console.log(" ");
Expand Down
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const path = require('path');
const webpack = require('webpack');
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
const packg = require("./package.json");

const banner = "MineRender\n" +
const banner = "MineRender " + packg.version + "\n" +
"(c) 2018, Haylee Schäfer (inventivetalent) / MIT License\n" +
"https://minerender.org\n" +
"Build #" + (process.env.TRAVIS_BUILD_NUMBER || Date.now()) + " / " + new Date().toString()
Expand All @@ -23,6 +24,7 @@ let baseConfigFull = {
new webpack.DefinePlugin({
PRODUCTION: JSON.stringify(false),
BUILD_DATE: JSON.stringify(new Date()),
VERSION: JSON.stringify(packg.version),
BUILD_TIMESTAMP: JSON.stringify(Date.now()),
BUILD_NUMBER: JSON.stringify(process.env.TRAVIS_BUILD_NUMBER)
}),
Expand All @@ -47,6 +49,7 @@ let baseConfigMin = {
new webpack.DefinePlugin({
PRODUCTION: JSON.stringify(true),
BUILD_DATE: JSON.stringify(new Date()),
VERSION: JSON.stringify(packg.version),
BUILD_TIMESTAMP: JSON.stringify(Date.now()),
BUILD_NUMBER: JSON.stringify(process.env.TRAVIS_BUILD_NUMBER)
}),
Expand Down

0 comments on commit bef516f

Please sign in to comment.