Skip to content

Commit

Permalink
Add game and website versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbogue committed Sep 2, 2019
1 parent 8800cf1 commit 19dc9fb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Stardew",
"description": "A Vue.js project",
"version": "0.1.0",
"version": "1.0.0",
"author": "Max Bogue <max@maxbogue.com>",
"private": true,
"scripts": {
Expand Down
6 changes: 4 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
</ul>
<div :class="$style.footer">
<a href="https://www.stardewvalley.net/" target="_blank" rel="noopener"
>Stardew Valley</a
>Stardew Valley v1.3.36</a
>
&copy;
<a
Expand All @@ -131,7 +131,7 @@
rel="noopener"
>ConcernedApe</a
>
| Code on
| Code v{{ VERSION }} on
<a
href="https://github.com/maxbogue/stardew"
target="_blank"
Expand All @@ -146,6 +146,7 @@
</template>

<script>
/* globals VERSION */
import { sortBy } from 'lodash/fp';
import { createCrop, growsInSeason } from './crop';
Expand Down Expand Up @@ -187,6 +188,7 @@ export default {
},
},
data: () => ({
VERSION: VERSION,
baseCrops,
seasonName: 'spring',
fertilizer: 'none',
Expand Down
8 changes: 7 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const path = require('path');
const { VueLoaderPlugin } = require('vue-loader');
const { DefinePlugin } = require('webpack');

const sassLoader = {
loader: 'sass-loader',
Expand Down Expand Up @@ -62,7 +63,12 @@ module.exports = {
},
],
},
plugins: [new VueLoaderPlugin()],
plugins: [
new VueLoaderPlugin(),
new DefinePlugin({
VERSION: JSON.stringify(require('./package.json').version),
}),
],
resolve: {
extensions: ['.ts', '.js', '.vue', '.json'],
alias: {
Expand Down

0 comments on commit 19dc9fb

Please sign in to comment.