vant
v0.12.3 youzan vue component
dev
npm run build:file && webpack-dev-server --inline --config build/webpack.config.dev.js --content-base ./
dist
npm run bootstrap && node build/bin/build-lib.js
lint
eslint ./packages --ext .js,.vue
test
karma start test/unit/karma.conf.js --single-run
deploy
npm run deploy:docs && npm run deploy:cdn && gh-pages -d docs/dist --remote youzan && rimraf docs/dist
release
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