Skip to content
This repository was archived by the owner on Apr 1, 2021. It is now read-only.

Commit eb59e81

Browse files
committed
update version
1 parent 9bd4c25 commit eb59e81

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"moment": true,
1616
"axios": true,
1717
"Vue": true,
18-
"CONFIG": true
18+
"CONFIG": true,
19+
"__VERSION": true
1920
}
2021
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"private": true,
3+
"version": "0.3.0",
34
"scripts": {
45
"dev": "npm run development",
56
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",

resources/js/coreui/store/state.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// root state object.
22
// each Vuex instance is just a single state tree.
3-
export default { version: '1.0.0' }
3+
export default { version: __VERSION }

webpack.mix.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
const path = require('path')
2-
const mix = require('laravel-mix')
1+
const path = require('path')
2+
const mix = require('laravel-mix')
3+
const webpack = require('webpack')
4+
const { version } = require('./package.json')
35

46
/*
57
|--------------------------------------------------------------------------
@@ -21,6 +23,7 @@ mix.webpackConfig({
2123
'static': path.resolve(__dirname, 'resources/static/'),
2224
},
2325
},
26+
plugins: [new webpack.DefinePlugin({ __VERSION: JSON.stringify(version) })],
2427
})
2528

2629
mix.extend('vueOptions', (webpackConfig, vueOptions, ...args) => {

0 commit comments

Comments
 (0)