vant

v0.10.9
有赞vue wap组件库
youzan vue component

dev

npm run build:file && webpack-dev-server --inline --config build/webpack.config.dev.js --content-base ./

dist

node build/bin/build-lib.js

lint

felint lint src/**/*.js packages/**/*.{js,vue} build/**/*.js

test

karma start test/unit/karma.conf.js --single-run

clean

rimraf lib && rimraf packages/*/lib

deploy

npm run deploy:docs && npm run deploy:cdn && gh-pages -d docs/dist --remote youzan && rimraf docs/dist

release

npm run bootstrap && sh build/release.sh

bootstrap

yarn || npm i && cd ./packages/vant-css/ && yarn || npm i && cd ../../

build:file

node build/bin/build-entry.js

build:vant

cross-env NODE_ENV=production webpack --progress --hide-modules --color --config build/webpack.build.js && cross-env NODE_ENV=production webpack -p --progress --hide-modules --color --config build/webpack.build.js

deploy:cdn

superman cdn /zanui/vant docs/dist/*.js docs/dist/*.css && superman cdn /zanui/vant/async_en-US docs/dist/async_en-US/*.js && superman cdn /zanui/vant/async_zh-CN docs/dist/async_zh-CN/*.js

test:watch

karma start test/unit/karma.conf.js

deploy:docs

rimraf docs/dist && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.config.prod.js

test:single

node ./test/unit/selector.js

test:coverage

open test/unit/coverage/lcov-report/index.html

build:vant-css

gulp build --gulpfile packages/vant-css/gulpfile.js --color

build:changelog

sh build/bin/build-changelog.sh

build:components

node build/bin/build-components.js --color

build:style-entry

cross-env VUE_ENV=server node build/bin/build-style-entry.js

Metadata

  • MIT
  • Whatever
  • youzanfe
  • released 11/15/2017

Downloads