Sfoglia il codice sorgente

fix build script (update index.js before build)

Evan You 10 anni fa
parent
commit
a5c75f9861
4 ha cambiato i file con 8 aggiunte e 2 eliminazioni
  1. 6 0
      build/build.js
  2. 1 1
      dist/vue.js
  3. 0 0
      dist/vue.min.js
  4. 1 1
      src/index.js

+ 6 - 0
build/build.js

@@ -13,6 +13,12 @@ var banner =
   ' * Released under the MIT License.\n' +
   ' * 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.
 // CommonJS build.
 // this is used as the "main" field in package.json
 // this is used as the "main" field in package.json
 // and used by bundlers like Webpack and Browserify.
 // and used by bundlers like Webpack and Browserify.

+ 1 - 1
dist/vue.js

@@ -9274,7 +9274,7 @@
     partial: partial
     partial: partial
   };
   };
 
 
-  Vue.version = '1.0.8';
+  Vue.version = '1.0.9';
 
 
   /**
   /**
    * Vue and every constructor that extends Vue has an
    * Vue and every constructor that extends Vue has an

File diff suppressed because it is too large
+ 0 - 0
dist/vue.min.js


+ 1 - 1
src/index.js

@@ -4,7 +4,7 @@ import elementDirectives from './directives/element/index'
 import filters from './filters/index'
 import filters from './filters/index'
 import { inBrowser } from './util/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
  * Vue and every constructor that extends Vue has an

Some files were not shown because too many files changed in this diff