Skip to content

Commit

Permalink
Close bitshares#1478: Set version in package.json instead of git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
svk31 committed May 5, 2018
1 parent b72bc44 commit 8d7f9bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "BitShares2-light",
"version": "2.0.180418b",
"version": "2.0.180505",
"description": "Advanced wallet interface for the BitShares financial blockchain.",
"homepage": "https://github.com/bitshares/bitshares-ui",
"author": "Sigve Kvalsvik <[email protected]>",
Expand Down
5 changes: 2 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ var path = require("path");
var webpack = require("webpack");
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var Clean = require("clean-webpack-plugin");
var git = require("git-rev-sync");
require("es6-promise").polyfill();
var locales = require("./app/assets/locales");

var __VERSION__ = require("./package.json").version;
// BASE APP DIR
var root_dir = path.resolve(__dirname);

Expand Down Expand Up @@ -66,7 +65,7 @@ module.exports = function(env) {
var plugins = [
new webpack.optimize.OccurrenceOrderPlugin(),
new webpack.DefinePlugin({
APP_VERSION: JSON.stringify(git.tag()),
APP_VERSION: JSON.stringify(__VERSION__),
__ELECTRON__: !!env.electron,
__HASH_HISTORY__: !!env.hash,
__BASE_URL__: JSON.stringify(baseUrl),
Expand Down

0 comments on commit 8d7f9bf

Please sign in to comment.