@ant-design-vue/tools

offline tools for vue component

Usage no npm install needed!

<script type="module">
  import antDesignVueTools from 'https://cdn.skypack.dev/@ant-design-vue/tools';
</script>

README

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
          }
        }
      }
    }
  }
}