Skip to content

Commit

Permalink
fix build script (update index.js before build)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Nov 23, 2015
1 parent 689def5 commit a5c75f9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ var banner =
' * Released under the MIT License.\n' +
' */'

// update main file
var main = fs
.readFileSync('src/index.js', 'utf-8')
.replace(/Vue\.version = '[\d\.]+'/, "Vue.version = '" + version + "'")
fs.writeFileSync('src/index.js', main)

// CommonJS build.
// this is used as the "main" field in package.json
// and used by bundlers like Webpack and Browserify.
Expand Down
2 changes: 1 addition & 1 deletion dist/vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -9274,7 +9274,7 @@
partial: partial
};

Vue.version = '1.0.8';
Vue.version = '1.0.9';

/**
* Vue and every constructor that extends Vue has an
Expand Down
2 changes: 1 addition & 1 deletion dist/vue.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import elementDirectives from './directives/element/index'
import filters from './filters/index'
import { inBrowser } from './util/index'

Vue.version = '1.0.8'
Vue.version = '1.0.9'

/**
* Vue and every constructor that extends Vue has an
Expand Down

0 comments on commit a5c75f9

Please sign in to comment.