Skip to content

vueComponent/tools

 
 

Repository files navigation

vc-tools

offline tools for vue component

NPM version gemnasium deps node version npm download

Usage

$ vc-tools run lint: run lint by https://github.com/vuejs/eslint-plugin-vue-libs
$ vc-tools run pub: compile and npm publish
$ vc-tools run watch --out-dir=/xx: watch and compile to /xx, default to lib
$ vc-tools run build: build examples
$ vc-tools run gh-pages: push example to gh-pages
$ vc-tools run start: start dev server

package.json demo

{
  "config": {
    // show access log in console
    "accesslog": true,
    // dev server port
    "port": 9528,
    // webpack entry for build dist umd 
    "entry": {
      "my-project": [
        "./src/index.ts"
      ]
    },
    "parallel": ["es", "js", "css"],
    // webpack output for build dist umd
    "output": {}, 
    // webpack css loader options
    "css": {
      "loaderOptions": {
        "less": {
          "options": {
            "javascriptEnabled": true
          }
        },
        "css": {
          "options": {
            "sourceMap": true
          }
        }
      }
    }
  }
}

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.4%
  • Other 0.6%