github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/public/libs/vue-1.0.24/src/index.js (about)

     1  import Vue from './instance/vue'
     2  import installGlobalAPI from './global-api'
     3  import { inBrowser, devtools } from './util/index'
     4  import config from './config'
     5  
     6  installGlobalAPI(Vue)
     7  
     8  Vue.version = '1.0.24'
     9  
    10  export default Vue
    11  
    12  // devtools global hook
    13  /* istanbul ignore next */
    14  setTimeout(() => {
    15    if (config.devtools) {
    16      if (devtools) {
    17        devtools.emit('init', Vue)
    18      } else if (
    19        process.env.NODE_ENV !== 'production' &&
    20        inBrowser && /Chrome\/\d+/.test(window.navigator.userAgent)
    21      ) {
    22        console.log(
    23          'Download the Vue Devtools for a better development experience:\n' +
    24          'https://github.com/vuejs/vue-devtools'
    25        )
    26      }
    27    }
    28  }, 0)