vue-entry
An entry boot for Vue2 projects. auto generate entry Object for webpack config entry option.
Last updated 5 months ago by askliujun .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install vue-entry 
SYNC missed versions from official npm registry.

vue-entry Build Status npm package

An entry boot for Vue2 projects. auto generate entry Object for webpack config entry option.

使用实例

Installation

npm install vue-entry --save-dev

Example Webpack Config

var vueEntry = require('vue-entry');

module.exports = {
   entry: vueEntry({
   src: './src',
   autoImportVueComponent: true
   }),
}

Options and defaults (Optional)

{
  "src": './src', // An relative path for the source. Default: './src'. normally  include pages and components folders in it.
  "autoImportVueComponent": true, // vue component import and registered to Vue globally.
  "langs": ["zh_CN"], //  export in .i18n.js file
  "vueLibBuildIn":true, // include vue.js, vue-router.js, vue-resource.js, vue-i18n.js. if setting false, using script tag for global use manually.
  "rootFontSize":16 // designer width / 10
}

Application architecture

  1. single app in one project

    src/
    ├── components/
    ├── page1/
    │   ├── page1.i18n.js // i18n file optional 
    │   ├── pag1.vue // page file *required
    │   └──page1.state.js // state file optional 
    ├── index.html  // *required
    ├── routes.js  // optional
    ├── config.json  // optional 
    ├── service.js  // optional 
    └── ...
    └── statics/
        ├── images/
        └── ...
    
  2. multi app in one project

    src/
    ├── components/
    ├── apps/
    │   ├── app1
    │   │   ├── index.html
    │   │   ├── routes.js
    │   │   ├── config.json
    │   │   └── ...
    │   ├── app2
    │   │    ├── index.html
    │   │    ├── routes.js
    │   │    ├── config.json
    │   │    └── ...
    │   └── ...
    └── statics/
        ├── images/
        └── ...
    

extra tools for app development

  1. standalone config file

  2. standalone i18n file

  3. standalone vuex file

  4. log method($debug and $error) for vue component object

Current Tags

  • 3.0.10                                ...           latest (5 months ago)

44 Versions

  • 3.0.10                                ...           5 months ago
  • 3.0.9                                ...           5 months ago
  • 3.0.8                                ...           5 months ago
  • 2.1.5                                ...           5 months ago
  • 2.1.4                                ...           5 months ago
  • 2.1.2                                ...           5 months ago
  • 2.1.1                                ...           5 months ago
  • 3.0.7                                ...           6 months ago
  • 3.0.6                                ...           6 months ago
  • 3.0.5                                ...           6 months ago
  • 3.0.4                                ...           6 months ago
  • 3.0.3                                ...           6 months ago
  • 3.0.2                                ...           6 months ago
  • 3.0.1                                ...           6 months ago
  • 3.0.0                                ...           7 months ago
  • 2.1.0                                ...           7 months ago
  • 2.0.12                                ...           7 months ago
  • 2.0.11                                ...           7 months ago
  • 2.0.10                                ...           7 months ago
  • 2.0.9                                ...           7 months ago
  • 2.0.8                                ...           7 months ago
  • 2.0.7                                ...           7 months ago
  • 2.0.6                                ...           7 months ago
  • 2.0.5                                ...           7 months ago
  • 2.0.4                                ...           10 months ago
  • 2.0.3                                ...           a year ago
  • 2.0.2                                ...           a year ago
  • 2.0.1                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 0.0.16                                ...           a year ago
  • 0.0.15                                ...           2 years ago
  • 0.0.14                                ...           2 years ago
  • 0.0.13                                ...           2 years ago
  • 0.0.12                                ...           2 years ago
  • 0.0.11                                ...           2 years ago
  • 0.0.10                                ...           2 years ago
  • 0.0.8                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 46
Last Day 0
Last Week 1
Last Month 0
Dependencies (29)
Dev Dependencies (14)

Copyright 2014 - 2016 © taobao.org |