vant
v0.10.2 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/vue docs/dist/*.js docs/dist/*.css && superman cdn /zanui/vue/async_en-US docs/dist/async_en-US/*.js && superman cdn /zanui/vue/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 && mkdir lib/vant-css && cp -R packages/vant-css/lib/ lib/vant-css
build:changelog
sh build/bin/build-changelog.sh
build:components
node build/bin/build-components.js --color
build:style-entry
VUE_ENV=server node build/bin/build-style-entry.js