Noiseless Praying Mantis

    @vant/cli
    TypeScript icon, indicating that this package has built-in type declarations

    4.0.3 • Public • Published

    Vant CLI

    Vant CLI is a tool for building vue component library. You can quickly build a full-featured Vue component library with vant-cli.

    🇨🇳 查看中文版介绍


    Features

    • Provides rich commands covering the complete process from development to deploy
    • Based on conventional directory structure. Generate elegant document website and component examples automatically.
    • ESlint Stylelint built-in.
    • Support Tree Shaking/Theme Customization/Import on Demand

    Quickstart

    To create a Vant CLI project, run:

    yarn create vant-cli-app

    Install Manually

    # via npm
    npm i @vant/cli -D
    
    # via yarn
    yarn add @vant/cli -D
    
    # via pnpm
    pnpm add @vant/cli -D

    Please add the followed config to package.json file.

    {
      "scripts": {
        "dev": "vant-cli dev",
        "test": "vant-cli test",
        "lint": "vant-cli lint",
        "build": "vant-cli build",
        "prepare": "husky install",
        "release": "vant-cli release",
        "build-site": "vant-cli build-site"
      },
      "lint-staged": {
        "*.md": "prettier --write",
        "*.{ts,tsx,js,vue,less,scss}": "prettier --write",
        "*.{ts,tsx,js,vue}": "eslint --fix",
        "*.{vue,css,less,scss}": "stylelint --fix"
      },
      "eslintConfig": {
        "root": true,
        "extends": ["@vant"]
      },
      "stylelint": {
        "extends": ["@vant/stylelint-config"]
      },
      "prettier": {
        "singleQuote": true
      },
      "browserslist": ["Chrome >= 51", "iOS >= 10"]
    }

    More Details

    Keywords

    Install

    npm i @vant/cli

    DownloadsWeekly Downloads

    226

    Version

    4.0.3

    License

    MIT

    Unpacked Size

    146 kB

    Total Files

    115

    Last publish

    Collaborators

    • chenjiahan
    • cookfront
    • pangxie1991
    • rex-zsd
    • nemo-shen