mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-06-23 04:39:16 +08:00
139 lines
4.0 KiB
JSON
139 lines
4.0 KiB
JSON
{
|
|
"name": "vant",
|
|
"version": "1.1.5",
|
|
"description": "Lightweight Mobile UI Components built on Vue",
|
|
"main": "lib/index.js",
|
|
"module": "es/index.js",
|
|
"style": "lib/vant-css/index.css",
|
|
"typings": "types/index.d.ts",
|
|
"files": [
|
|
"es",
|
|
"lib",
|
|
"packages",
|
|
"types"
|
|
],
|
|
"scripts": {
|
|
"bootstrap": "yarn || npm i && cd ./packages/vant-css/ && yarn || npm i && cd ../../",
|
|
"dev": "npm run build:file && webpack-serve --config build/webpack.dev.js",
|
|
"build:file": "node build/bin/build-entry.js",
|
|
"build:components": "node build/bin/build-components.js --color",
|
|
"build:vant-css": "gulp build --gulpfile packages/vant-css/gulpfile.js --color",
|
|
"build:vant": "cross-env NODE_ENV=production webpack --color --config build/webpack.build.js && cross-env NODE_ENV=production webpack -p --color --config build/webpack.build.js",
|
|
"build:style-entry": "node build/bin/build-style-entry.js",
|
|
"build:changelog": "sh build/bin/build-changelog.sh",
|
|
"deploy": "rimraf docs/dist && cross-env NODE_ENV=production webpack --config build/webpack.doc.js && gh-pages -d docs/dist",
|
|
"dist": "npm run bootstrap && node build/bin/build-lib.js",
|
|
"lint": "./node_modules/.bin/eslint ./packages --ext .js,.vue",
|
|
"test": "jest",
|
|
"test:watch": "jest --watch",
|
|
"test:coverage": "open test/coverage/index.html",
|
|
"release": "sh build/release.sh",
|
|
"precommit": "lint-staged"
|
|
},
|
|
"lint-staged": {
|
|
"./packages/**/*.{js,vue}": [
|
|
"eslint --fix",
|
|
"git add"
|
|
]
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git@github.com:youzan/vant.git"
|
|
},
|
|
"keywords": [
|
|
"youzan",
|
|
"vue",
|
|
"component"
|
|
],
|
|
"author": "youzanfe",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"babel-runtime": "6.x",
|
|
"vue-lazyload": "^1.2.3"
|
|
},
|
|
"peerDependencies": {
|
|
"vue": ">= 2.5.0"
|
|
},
|
|
"devDependencies": {
|
|
"@vue/server-test-utils": "^1.0.0-beta.16",
|
|
"@vue/test-utils": "^1.0.0-beta.16",
|
|
"autoprefixer": "^8.5.1",
|
|
"babel-cli": "^6.26.0",
|
|
"babel-core": "^6.26.3",
|
|
"babel-jest": "^23.0.1",
|
|
"babel-loader": "^7.1.4",
|
|
"babel-plugin-transform-runtime": "^6.15.0",
|
|
"babel-preset-env": "^1.7.0",
|
|
"babel-preset-stage-0": "^6.24.1",
|
|
"codecov": "^3.0.0",
|
|
"cross-env": "^5.1.6",
|
|
"css-loader": "^0.28.11",
|
|
"dependency-tree": "^6.1.0",
|
|
"eslint": "^4.19.1",
|
|
"eslint-plugin-vue": "^4.5.0",
|
|
"fast-vue-md-loader": "^1.0.3",
|
|
"gh-pages": "^1.0.0",
|
|
"html-webpack-plugin": "3.2.0",
|
|
"husky": "^0.14.3",
|
|
"jest": "^23.0.1",
|
|
"jest-serializer-vue": "^1.0.0",
|
|
"lint-staged": "^7.1.2",
|
|
"postcss": "^6.0.22",
|
|
"postcss-calc": "^6.0.0",
|
|
"postcss-easy-import": "^3.0.0",
|
|
"postcss-loader": "^2.1.5",
|
|
"precss": "2.0.0",
|
|
"progress-bar-webpack-plugin": "^1.11.0",
|
|
"rimraf": "^2.5.4",
|
|
"shelljs": "^0.8.1",
|
|
"signale": "^1.1.0",
|
|
"style-loader": "^0.21.0",
|
|
"uppercamelcase": "^3.0.0",
|
|
"url-loader": "^1.0.1",
|
|
"vant-doc": "1.0.6",
|
|
"vue": "2.5.16",
|
|
"vue-jest": "^2.6.0",
|
|
"vue-loader": "^15.2.2",
|
|
"vue-router": "^3.0.1",
|
|
"vue-server-renderer": "^2.5.16",
|
|
"vue-sfc-compiler": "^0.0.8",
|
|
"vue-template-compiler": "2.5.16",
|
|
"vue-template-es2015-compiler": "^1.6.0",
|
|
"webpack": "^4.10.0",
|
|
"webpack-cli": "^2.1.4",
|
|
"webpack-serve": "^1.0.2"
|
|
},
|
|
"jest": {
|
|
"moduleFileExtensions": [
|
|
"js",
|
|
"vue"
|
|
],
|
|
"transform": {
|
|
"^.+\\.js$": "<rootDir>/node_modules/babel-jest",
|
|
".*\\.(vue)$": "<rootDir>/node_modules/vue-jest"
|
|
},
|
|
"moduleNameMapper": {
|
|
"^packages/(.*)$": "<rootDir>/packages/$1"
|
|
},
|
|
"snapshotSerializers": [
|
|
"<rootDir>/node_modules/jest-serializer-vue"
|
|
],
|
|
"collectCoverageFrom": [
|
|
"packages/**/*.{js,vue}",
|
|
"!**/vant-css/**",
|
|
"!**/demo/**",
|
|
"!**/locale/lang/**",
|
|
"!**/waterfall/**",
|
|
"!**/sku/**",
|
|
"!**/lazyload/**"
|
|
],
|
|
"collectCoverage": true,
|
|
"coverageReporters": [
|
|
"html",
|
|
"lcov",
|
|
"text-summary"
|
|
],
|
|
"coverageDirectory": "./test/coverage"
|
|
}
|
|
}
|