mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 05:42:44 +08:00
chore: move to pnpm (#9817)
This commit is contained in:
parent
6e3ba5af63
commit
06d7f3fefa
8
.github/CONTRIBUTING.md
vendored
8
.github/CONTRIBUTING.md
vendored
@ -26,8 +26,14 @@ It's welcomed to pull request, And there are some tips about that:
|
|||||||
|
|
||||||
## Getting started
|
## Getting started
|
||||||
|
|
||||||
|
You will need [Node.js >= 14](https://nodejs.org) and [pnpm](https://pnpm.io).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone git@github.com:youzan/vant.git
|
git clone git@github.com:youzan/vant.git
|
||||||
|
|
||||||
yarn && yarn dev
|
# Install dependencies
|
||||||
|
pnpm i
|
||||||
|
|
||||||
|
# Start development
|
||||||
|
pnpm dev
|
||||||
```
|
```
|
||||||
|
14
.github/workflows/compressed-size.yml
vendored
14
.github/workflows/compressed-size.yml
vendored
@ -1,14 +0,0 @@
|
|||||||
name: Compressed Size
|
|
||||||
|
|
||||||
on: [pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: preactjs/compressed-size-action@v2
|
|
||||||
with:
|
|
||||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
pattern: './packages/vant/lib/{vant.min.js,index.css}'
|
|
14
.github/workflows/deploy-v3-site.yml
vendored
14
.github/workflows/deploy-v3-site.yml
vendored
@ -15,8 +15,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: 'dev'
|
ref: 'dev'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install pnpm
|
||||||
uses: bahmutov/npm-install@v1
|
uses: pnpm/action-setup@v2.0.1
|
||||||
|
with:
|
||||||
|
version: 6.20.3
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '16'
|
||||||
|
cache: 'pnpm'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm install
|
||||||
|
|
||||||
- name: Build Site
|
- name: Build Site
|
||||||
run: npm run build:site
|
run: npm run build:site
|
||||||
|
45
.github/workflows/test.yml
vendored
45
.github/workflows/test.yml
vendored
@ -6,13 +6,20 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
|
||||||
|
- name: Install pnpm
|
||||||
|
uses: pnpm/action-setup@v2.0.1
|
||||||
with:
|
with:
|
||||||
node-version: '14.x'
|
version: 6.20.3
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '16'
|
||||||
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: bahmutov/npm-install@v1
|
run: pnpm install
|
||||||
|
|
||||||
- name: Run linter
|
- name: Run linter
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
@ -20,13 +27,20 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
|
||||||
|
- name: Install pnpm
|
||||||
|
uses: pnpm/action-setup@v2.0.1
|
||||||
with:
|
with:
|
||||||
node-version: '14.x'
|
version: 6.20.3
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '16'
|
||||||
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: bahmutov/npm-install@v1
|
run: pnpm install
|
||||||
|
|
||||||
- name: Run test cases
|
- name: Run test cases
|
||||||
run: npm test
|
run: npm test
|
||||||
@ -39,13 +53,20 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
|
||||||
|
- name: Install pnpm
|
||||||
|
uses: pnpm/action-setup@v2.0.1
|
||||||
with:
|
with:
|
||||||
node-version: '14.x'
|
version: 6.20.3
|
||||||
|
|
||||||
|
- uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '16'
|
||||||
|
cache: 'pnpm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: bahmutov/npm-install@v1
|
run: pnpm install
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
28
package.json
28
package.json
@ -1,23 +1,27 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"workspaces": [
|
|
||||||
"packages/vant",
|
|
||||||
"packages/vant-cli",
|
|
||||||
"packages/vant-eslint-config",
|
|
||||||
"packages/vant-stylelint-config"
|
|
||||||
],
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "husky install && cd packages/vant-cli && yarn build",
|
"prepare": "husky install",
|
||||||
"dev": "cd packages/vant && yarn dev",
|
"dev": "pnpm dev --dir ./packages/vant",
|
||||||
"lint": "cd packages/vant && yarn lint",
|
"lint": "pnpm lint --dir ./packages/vant",
|
||||||
"test": "cd packages/vant && yarn test",
|
"test": "pnpm test --dir ./packages/vant",
|
||||||
"build": "cd packages/vant && yarn build",
|
"build": "pnpm build --dir ./packages/vant",
|
||||||
"build:site": "cd packages/vant && yarn build:site"
|
"build:site": "pnpm build:site --dir ./packages/vant"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.md": "prettier --write",
|
"*.md": "prettier --write",
|
||||||
"*.{ts,tsx,js,vue,less}": "prettier --write",
|
"*.{ts,tsx,js,vue,less}": "prettier --write",
|
||||||
"*.{ts,tsx,js,vue}": "eslint --fix",
|
"*.{ts,tsx,js,vue}": "eslint --fix",
|
||||||
"*.{vue,css,less}": "stylelint --fix"
|
"*.{vue,css,less}": "stylelint --fix"
|
||||||
|
},
|
||||||
|
"packageManager": "pnpm",
|
||||||
|
"devDependencies": {
|
||||||
|
"@vant/cli": "workspace:*",
|
||||||
|
"@vant/eslint-config": "^3.3.2",
|
||||||
|
"prettier": "^2.4.1",
|
||||||
|
"eslint": "^8.1.0",
|
||||||
|
"stylelint": "^13.0.0",
|
||||||
|
"husky": "^7.0.4",
|
||||||
|
"lint-staged": "^11.2.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "tsc --watch",
|
"dev": "tsc --watch",
|
||||||
"release": "tsc & release-it"
|
"build": "tsc",
|
||||||
|
"release": "pnpm build & release-it",
|
||||||
|
"prepare": "pnpm build"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -65,10 +65,16 @@ export class VanGenerator extends Generator {
|
|||||||
/**
|
/**
|
||||||
@see {@link https://github.com/mrmlnc/fast-glob#how-to-write-patterns-on-windows}
|
@see {@link https://github.com/mrmlnc/fast-glob#how-to-write-patterns-on-windows}
|
||||||
*/
|
*/
|
||||||
const templatePath = join(GENERATOR_DIR, this.inputs.vueVersion).replace(/\\/g, '/');
|
const templatePath = join(GENERATOR_DIR, this.inputs.vueVersion).replace(
|
||||||
const templateFiles = glob.sync(join(templatePath, '**', '*').replace(/\\/g, '/'), {
|
/\\/g,
|
||||||
dot: true,
|
'/'
|
||||||
});
|
);
|
||||||
|
const templateFiles = glob.sync(
|
||||||
|
join(templatePath, '**', '*').replace(/\\/g, '/'),
|
||||||
|
{
|
||||||
|
dot: true,
|
||||||
|
}
|
||||||
|
);
|
||||||
const destinationRoot = this.destinationRoot();
|
const destinationRoot = this.destinationRoot();
|
||||||
|
|
||||||
templateFiles.forEach((filePath) => {
|
templateFiles.forEach((filePath) => {
|
||||||
@ -99,7 +105,7 @@ export class VanGenerator extends Generator {
|
|||||||
console.log();
|
console.log();
|
||||||
consola.success(`Successfully created ${chalk.yellow(name)}.`);
|
consola.success(`Successfully created ${chalk.yellow(name)}.`);
|
||||||
consola.success(
|
consola.success(
|
||||||
`Run ${chalk.yellow(`cd ${name} && yarn dev`)} to start development!`
|
`Run ${chalk.yellow(`cd ${name} && npm run dev`)} to start development!`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -9,7 +9,8 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"release": "yarn build && npm publish"
|
"release": "pnpm build && npm publish",
|
||||||
|
"prepare": "pnpm build"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "https://github.com/youzan/vant"
|
"repository": "https://github.com/youzan/vant"
|
||||||
|
@ -17,7 +17,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "tsc --watch",
|
"dev": "tsc --watch",
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"release": "yarn build & release-it"
|
"release": "pnpm build & release-it",
|
||||||
|
"prepare": "pnpm build"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"lib",
|
"lib",
|
||||||
@ -37,12 +38,12 @@
|
|||||||
"@types/less": "^3.0.3",
|
"@types/less": "^3.0.3",
|
||||||
"@types/lodash-es": "^4.17.5",
|
"@types/lodash-es": "^4.17.5",
|
||||||
"@types/markdown-it": "^12.2.3",
|
"@types/markdown-it": "^12.2.3",
|
||||||
"@types/postcss-load-config": "^3.0.1",
|
|
||||||
"@vue/compiler-sfc": "^3.2.20",
|
"@vue/compiler-sfc": "^3.2.20",
|
||||||
"vue": "^3.2.20"
|
"vue": "^3.2.20"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.16.0",
|
"@babel/core": "^7.16.0",
|
||||||
|
"@babel/helper-plugin-utils": "^7.14.5",
|
||||||
"@babel/preset-env": "^7.16.0",
|
"@babel/preset-env": "^7.16.0",
|
||||||
"@babel/preset-typescript": "^7.16.0",
|
"@babel/preset-typescript": "^7.16.0",
|
||||||
"@docsearch/css": "3.0.0-alpha.41",
|
"@docsearch/css": "3.0.0-alpha.41",
|
||||||
@ -58,12 +59,15 @@
|
|||||||
"@vue/test-utils": "2.0.0-rc.14",
|
"@vue/test-utils": "2.0.0-rc.14",
|
||||||
"autoprefixer": "^10.4.0",
|
"autoprefixer": "^10.4.0",
|
||||||
"babel-jest": "^27.3.1",
|
"babel-jest": "^27.3.1",
|
||||||
|
"chalk": "^4.1.2",
|
||||||
"clean-css": "^5.2.2",
|
"clean-css": "^5.2.2",
|
||||||
"commander": "^8.3.0",
|
"commander": "^8.3.0",
|
||||||
"consola": "^2.15.3",
|
"consola": "^2.15.3",
|
||||||
"conventional-changelog": "^3.1.24",
|
"conventional-changelog": "^3.1.24",
|
||||||
"eslint": "^8.1.0",
|
"eslint": "^8.1.0",
|
||||||
|
"execa": "^5.1.1",
|
||||||
"fast-glob": "^3.2.7",
|
"fast-glob": "^3.2.7",
|
||||||
|
"fs-extra": "^10.0.0",
|
||||||
"gh-pages": "^3.2.3",
|
"gh-pages": "^3.2.3",
|
||||||
"hash-sum": "^2.0.0",
|
"hash-sum": "^2.0.0",
|
||||||
"highlight.js": "^11.3.1",
|
"highlight.js": "^11.3.1",
|
||||||
|
@ -2,7 +2,9 @@ import { build } from 'vite';
|
|||||||
import { mergeCustomViteConfig } from '../common/index.js';
|
import { mergeCustomViteConfig } from '../common/index.js';
|
||||||
import { getViteConfigForPackage } from '../config/vite.package.js';
|
import { getViteConfigForPackage } from '../config/vite.package.js';
|
||||||
|
|
||||||
export async function compilePackage(minify: boolean) {
|
export async function compilePackage(
|
||||||
|
minify: boolean
|
||||||
|
): ReturnType<typeof build> {
|
||||||
const config = mergeCustomViteConfig(getViteConfigForPackage(minify));
|
const config = mergeCustomViteConfig(getViteConfigForPackage(minify));
|
||||||
return build(config);
|
return build(config);
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,3 +1,3 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
presets: [['@vant/cli/preset', { loose: true }]],
|
presets: [['@vant/cli/preset.cjs', { loose: true }]],
|
||||||
};
|
};
|
||||||
|
@ -16,7 +16,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "rollup --config rollup.config.js --watch",
|
"dev": "rollup --config rollup.config.js --watch",
|
||||||
"build": "rollup --config rollup.config.js",
|
"build": "rollup --config rollup.config.js",
|
||||||
"release": "npm run build && release-it"
|
"release": "pnpm build && release-it",
|
||||||
|
"prepare": "pnpm build"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "https://github.com/youzan/vant/tree/dev/packages/vant-lazyload",
|
"repository": "https://github.com/youzan/vant/tree/dev/packages/vant-lazyload",
|
||||||
@ -24,6 +25,7 @@
|
|||||||
"@vant/use": "^1.3.2"
|
"@vant/use": "^1.3.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@vant/cli": "workspace:*",
|
||||||
"@rollup/plugin-babel": "^5.2.1",
|
"@rollup/plugin-babel": "^5.2.1",
|
||||||
"@rollup/plugin-node-resolve": "^10.0.0",
|
"@rollup/plugin-node-resolve": "^10.0.0",
|
||||||
"release-it": "^14.2.2",
|
"release-it": "^14.2.2",
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,227 +0,0 @@
|
|||||||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
# yarn lockfile v1
|
|
||||||
|
|
||||||
|
|
||||||
ansi-regex@^5.0.0:
|
|
||||||
version "5.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"
|
|
||||||
integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==
|
|
||||||
|
|
||||||
ansi-styles@^4.0.0:
|
|
||||||
version "4.3.0"
|
|
||||||
resolved "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937"
|
|
||||||
integrity sha1-7dgDYornHATIWuegkG7a00tkiTc=
|
|
||||||
dependencies:
|
|
||||||
color-convert "^2.0.1"
|
|
||||||
|
|
||||||
argparse@^1.0.7:
|
|
||||||
version "1.0.10"
|
|
||||||
resolved "https://registry.npm.taobao.org/argparse/download/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911"
|
|
||||||
integrity sha1-vNZ5HqWuCXJeF+WtmIE0zUCz2RE=
|
|
||||||
dependencies:
|
|
||||||
sprintf-js "~1.0.2"
|
|
||||||
|
|
||||||
argparse@^2.0.1:
|
|
||||||
version "2.0.1"
|
|
||||||
resolved "https://registry.npm.taobao.org/argparse/download/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
|
|
||||||
integrity sha1-JG9Q88p4oyQPbJl+ipvR6sSeSzg=
|
|
||||||
|
|
||||||
big.js@^5.2.2:
|
|
||||||
version "5.2.2"
|
|
||||||
resolved "https://registry.npm.taobao.org/big.js/download/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328"
|
|
||||||
integrity sha1-ZfCvOC9Xi83HQr2cKB6cstd2gyg=
|
|
||||||
|
|
||||||
cliui@^7.0.2:
|
|
||||||
version "7.0.4"
|
|
||||||
resolved "https://registry.npm.taobao.org/cliui/download/cliui-7.0.4.tgz?cache=0&sync_timestamp=1604880333411&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcliui%2Fdownload%2Fcliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f"
|
|
||||||
integrity sha1-oCZe5lVHb8gHrqnfPfjfd4OAi08=
|
|
||||||
dependencies:
|
|
||||||
string-width "^4.2.0"
|
|
||||||
strip-ansi "^6.0.0"
|
|
||||||
wrap-ansi "^7.0.0"
|
|
||||||
|
|
||||||
color-convert@^2.0.1:
|
|
||||||
version "2.0.1"
|
|
||||||
resolved "https://registry.npm.taobao.org/color-convert/download/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3"
|
|
||||||
integrity sha1-ctOmjVmMm9s68q0ehPIdiWq9TeM=
|
|
||||||
dependencies:
|
|
||||||
color-name "~1.1.4"
|
|
||||||
|
|
||||||
color-name@~1.1.4:
|
|
||||||
version "1.1.4"
|
|
||||||
resolved "https://registry.npm.taobao.org/color-name/download/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
|
|
||||||
integrity sha1-wqCah6y95pVD3m9j+jmVyCbFNqI=
|
|
||||||
|
|
||||||
emoji-regex@^8.0.0:
|
|
||||||
version "8.0.0"
|
|
||||||
resolved "https://registry.npm.taobao.org/emoji-regex/download/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37"
|
|
||||||
integrity sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc=
|
|
||||||
|
|
||||||
emojis-list@^3.0.0:
|
|
||||||
version "3.0.0"
|
|
||||||
resolved "https://registry.npm.taobao.org/emojis-list/download/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78"
|
|
||||||
integrity sha1-VXBmIEatKeLpFucariYKvf9Pang=
|
|
||||||
|
|
||||||
entities@~2.1.0:
|
|
||||||
version "2.1.0"
|
|
||||||
resolved "https://registry.npm.taobao.org/entities/download/entities-2.1.0.tgz?cache=0&sync_timestamp=1611535562200&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fentities%2Fdownload%2Fentities-2.1.0.tgz#992d3129cf7df6870b96c57858c249a120f8b8b5"
|
|
||||||
integrity sha1-mS0xKc999ocLlsV4WMJJoSD4uLU=
|
|
||||||
|
|
||||||
escalade@^3.1.1:
|
|
||||||
version "3.1.1"
|
|
||||||
resolved "https://registry.npm.taobao.org/escalade/download/escalade-3.1.1.tgz?cache=0&sync_timestamp=1602567437752&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fescalade%2Fdownload%2Fescalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40"
|
|
||||||
integrity sha1-2M/ccACWXFoBdLSoLqpcBVJ0LkA=
|
|
||||||
|
|
||||||
esprima@^4.0.0:
|
|
||||||
version "4.0.1"
|
|
||||||
resolved "https://registry.npm.taobao.org/esprima/download/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71"
|
|
||||||
integrity sha1-E7BM2z5sXRnfkatph6hpVhmwqnE=
|
|
||||||
|
|
||||||
front-matter@^4.0.2:
|
|
||||||
version "4.0.2"
|
|
||||||
resolved "https://registry.npm.taobao.org/front-matter/download/front-matter-4.0.2.tgz#b14e54dc745cfd7293484f3210d15ea4edd7f4d5"
|
|
||||||
integrity sha1-sU5U3HRc/XKTSE8yENFepO3X9NU=
|
|
||||||
dependencies:
|
|
||||||
js-yaml "^3.13.1"
|
|
||||||
|
|
||||||
get-caller-file@^2.0.5:
|
|
||||||
version "2.0.5"
|
|
||||||
resolved "https://registry.npm.taobao.org/get-caller-file/download/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e"
|
|
||||||
integrity sha1-T5RBKoLbMvNuOwuXQfipf+sDH34=
|
|
||||||
|
|
||||||
highlight.js@^10.7.1:
|
|
||||||
version "10.7.1"
|
|
||||||
resolved "https://registry.npm.taobao.org/highlight.js/download/highlight.js-10.7.1.tgz#a8ec4152db24ea630c90927d6cae2a45f8ecb955"
|
|
||||||
integrity sha1-qOxBUtsk6mMMkJJ9bK4qRfjsuVU=
|
|
||||||
|
|
||||||
is-fullwidth-code-point@^3.0.0:
|
|
||||||
version "3.0.0"
|
|
||||||
resolved "https://registry.npm.taobao.org/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d"
|
|
||||||
integrity sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0=
|
|
||||||
|
|
||||||
js-yaml@^3.13.1:
|
|
||||||
version "3.13.1"
|
|
||||||
resolved "https://registry.npm.taobao.org/js-yaml/download/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847"
|
|
||||||
integrity sha1-r/FRswv9+o5J4F2iLnQV6d+jeEc=
|
|
||||||
dependencies:
|
|
||||||
argparse "^1.0.7"
|
|
||||||
esprima "^4.0.0"
|
|
||||||
|
|
||||||
json5@^2.1.2:
|
|
||||||
version "2.1.3"
|
|
||||||
resolved "https://registry.npm.taobao.org/json5/download/json5-2.1.3.tgz?cache=0&sync_timestamp=1586045666090&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjson5%2Fdownload%2Fjson5-2.1.3.tgz#c9b0f7fa9233bfe5807fe66fcf3a5617ed597d43"
|
|
||||||
integrity sha1-ybD3+pIzv+WAf+ZvzzpWF+1ZfUM=
|
|
||||||
dependencies:
|
|
||||||
minimist "^1.2.5"
|
|
||||||
|
|
||||||
linkify-it@^3.0.1:
|
|
||||||
version "3.0.2"
|
|
||||||
resolved "https://registry.npm.taobao.org/linkify-it/download/linkify-it-3.0.2.tgz#f55eeb8bc1d3ae754049e124ab3bb56d97797fb8"
|
|
||||||
integrity sha1-9V7ri8HTrnVASeEkqzu1bZd5f7g=
|
|
||||||
dependencies:
|
|
||||||
uc.micro "^1.0.1"
|
|
||||||
|
|
||||||
loader-utils@^2.0.0:
|
|
||||||
version "2.0.0"
|
|
||||||
resolved "https://registry.npm.taobao.org/loader-utils/download/loader-utils-2.0.0.tgz#e4cace5b816d425a166b5f097e10cd12b36064b0"
|
|
||||||
integrity sha1-5MrOW4FtQloWa18JfhDNErNgZLA=
|
|
||||||
dependencies:
|
|
||||||
big.js "^5.2.2"
|
|
||||||
emojis-list "^3.0.0"
|
|
||||||
json5 "^2.1.2"
|
|
||||||
|
|
||||||
markdown-it-anchor@^7.1.0:
|
|
||||||
version "7.1.0"
|
|
||||||
resolved "https://registry.npm.taobao.org/markdown-it-anchor/download/markdown-it-anchor-7.1.0.tgz#30fb21497bf59e83ff4d1ddc052d821962e2489e"
|
|
||||||
integrity sha1-MPshSXv1noP/TR3cBS2CGWLiSJ4=
|
|
||||||
|
|
||||||
markdown-it@^12.0.4:
|
|
||||||
version "12.0.4"
|
|
||||||
resolved "https://registry.npm.taobao.org/markdown-it/download/markdown-it-12.0.4.tgz#eec8247d296327eac3ba9746bdeec9cfcc751e33"
|
|
||||||
integrity sha1-7sgkfSljJ+rDupdGve7Jz8x1HjM=
|
|
||||||
dependencies:
|
|
||||||
argparse "^2.0.1"
|
|
||||||
entities "~2.1.0"
|
|
||||||
linkify-it "^3.0.1"
|
|
||||||
mdurl "^1.0.1"
|
|
||||||
uc.micro "^1.0.5"
|
|
||||||
|
|
||||||
mdurl@^1.0.1:
|
|
||||||
version "1.0.1"
|
|
||||||
resolved "https://registry.npm.taobao.org/mdurl/download/mdurl-1.0.1.tgz#fe85b2ec75a59037f2adfec100fd6c601761152e"
|
|
||||||
integrity sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=
|
|
||||||
|
|
||||||
minimist@^1.2.5:
|
|
||||||
version "1.2.5"
|
|
||||||
resolved "https://registry.npm.taobao.org/minimist/download/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
|
|
||||||
integrity sha1-Z9ZgFLZqaoqqDAg8X9WN9OTpdgI=
|
|
||||||
|
|
||||||
require-directory@^2.1.1:
|
|
||||||
version "2.1.1"
|
|
||||||
resolved "https://registry.npm.taobao.org/require-directory/download/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42"
|
|
||||||
integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I=
|
|
||||||
|
|
||||||
sprintf-js@~1.0.2:
|
|
||||||
version "1.0.3"
|
|
||||||
resolved "https://registry.npm.taobao.org/sprintf-js/download/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
|
|
||||||
integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=
|
|
||||||
|
|
||||||
string-width@^4.1.0, string-width@^4.2.0:
|
|
||||||
version "4.2.0"
|
|
||||||
resolved "https://registry.npm.taobao.org/string-width/download/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5"
|
|
||||||
integrity sha1-lSGCxGzHssMT0VluYjmSvRY7crU=
|
|
||||||
dependencies:
|
|
||||||
emoji-regex "^8.0.0"
|
|
||||||
is-fullwidth-code-point "^3.0.0"
|
|
||||||
strip-ansi "^6.0.0"
|
|
||||||
|
|
||||||
strip-ansi@^6.0.0:
|
|
||||||
version "6.0.0"
|
|
||||||
resolved "https://registry.npm.taobao.org/strip-ansi/download/strip-ansi-6.0.0.tgz?cache=0&sync_timestamp=1573280577145&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstrip-ansi%2Fdownload%2Fstrip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532"
|
|
||||||
integrity sha1-CxVx3XZpzNTz4G4U7x7tJiJa5TI=
|
|
||||||
dependencies:
|
|
||||||
ansi-regex "^5.0.0"
|
|
||||||
|
|
||||||
transliteration@^2.2.0:
|
|
||||||
version "2.2.0"
|
|
||||||
resolved "https://registry.npm.taobao.org/transliteration/download/transliteration-2.2.0.tgz#e6333cc74b25ef4465bc27086ed8465c9a19211d"
|
|
||||||
integrity sha1-5jM8x0sl70RlvCcIbthGXJoZIR0=
|
|
||||||
dependencies:
|
|
||||||
yargs "^16.1.0"
|
|
||||||
|
|
||||||
uc.micro@^1.0.1, uc.micro@^1.0.5:
|
|
||||||
version "1.0.6"
|
|
||||||
resolved "https://registry.npm.taobao.org/uc.micro/download/uc.micro-1.0.6.tgz#9c411a802a409a91fc6cf74081baba34b24499ac"
|
|
||||||
integrity sha1-nEEagCpAmpH8bPdAgbq6NLJEmaw=
|
|
||||||
|
|
||||||
wrap-ansi@^7.0.0:
|
|
||||||
version "7.0.0"
|
|
||||||
resolved "https://registry.npm.taobao.org/wrap-ansi/download/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
|
|
||||||
integrity sha1-Z+FFz/UQpqaYS98RUpEdadLrnkM=
|
|
||||||
dependencies:
|
|
||||||
ansi-styles "^4.0.0"
|
|
||||||
string-width "^4.1.0"
|
|
||||||
strip-ansi "^6.0.0"
|
|
||||||
|
|
||||||
y18n@^5.0.5:
|
|
||||||
version "5.0.5"
|
|
||||||
resolved "https://registry.npm.taobao.org/y18n/download/y18n-5.0.5.tgz?cache=0&sync_timestamp=1609798602895&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fy18n%2Fdownload%2Fy18n-5.0.5.tgz#8769ec08d03b1ea2df2500acef561743bbb9ab18"
|
|
||||||
integrity sha1-h2nsCNA7HqLfJQCs71YXQ7u5qxg=
|
|
||||||
|
|
||||||
yargs-parser@^20.2.2:
|
|
||||||
version "20.2.7"
|
|
||||||
resolved "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-20.2.7.tgz?cache=0&sync_timestamp=1615404893185&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs-parser%2Fdownload%2Fyargs-parser-20.2.7.tgz#61df85c113edfb5a7a4e36eb8aa60ef423cbc90a"
|
|
||||||
integrity sha1-Yd+FwRPt+1p6TjbriqYO9CPLyQo=
|
|
||||||
|
|
||||||
yargs@^16.1.0:
|
|
||||||
version "16.2.0"
|
|
||||||
resolved "https://registry.npm.taobao.org/yargs/download/yargs-16.2.0.tgz?cache=0&sync_timestamp=1617506941953&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66"
|
|
||||||
integrity sha1-HIK/D2tqZur85+8w43b0mhJHf2Y=
|
|
||||||
dependencies:
|
|
||||||
cliui "^7.0.2"
|
|
||||||
escalade "^3.1.1"
|
|
||||||
get-caller-file "^2.0.5"
|
|
||||||
require-directory "^2.1.1"
|
|
||||||
string-width "^4.2.0"
|
|
||||||
y18n "^5.0.5"
|
|
||||||
yargs-parser "^20.2.2"
|
|
@ -16,7 +16,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "tsc --watch",
|
"dev": "tsc --watch",
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"release": "npm run build && npm publish"
|
"release": "pnpm build && npm publish",
|
||||||
|
"prepare": "pnpm build"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fast-glob": "^3.2.2",
|
"fast-glob": "^3.2.2",
|
||||||
|
@ -1,162 +0,0 @@
|
|||||||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
||||||
# yarn lockfile v1
|
|
||||||
|
|
||||||
|
|
||||||
"@nodelib/fs.scandir@2.1.3":
|
|
||||||
version "2.1.3"
|
|
||||||
resolved "https://registry.npm.taobao.org/@nodelib/fs.scandir/download/@nodelib/fs.scandir-2.1.3.tgz#3a582bdb53804c6ba6d146579c46e52130cf4a3b"
|
|
||||||
integrity sha1-Olgr21OATGum0UZXnEblITDPSjs=
|
|
||||||
dependencies:
|
|
||||||
"@nodelib/fs.stat" "2.0.3"
|
|
||||||
run-parallel "^1.1.9"
|
|
||||||
|
|
||||||
"@nodelib/fs.stat@2.0.3", "@nodelib/fs.stat@^2.0.2":
|
|
||||||
version "2.0.3"
|
|
||||||
resolved "https://registry.npm.taobao.org/@nodelib/fs.stat/download/@nodelib/fs.stat-2.0.3.tgz#34dc5f4cabbc720f4e60f75a747e7ecd6c175bd3"
|
|
||||||
integrity sha1-NNxfTKu8cg9OYPdadH5+zWwXW9M=
|
|
||||||
|
|
||||||
"@nodelib/fs.walk@^1.2.3":
|
|
||||||
version "1.2.4"
|
|
||||||
resolved "https://registry.npm.taobao.org/@nodelib/fs.walk/download/@nodelib/fs.walk-1.2.4.tgz#011b9202a70a6366e436ca5c065844528ab04976"
|
|
||||||
integrity sha1-ARuSAqcKY2bkNspcBlhEUoqwSXY=
|
|
||||||
dependencies:
|
|
||||||
"@nodelib/fs.scandir" "2.1.3"
|
|
||||||
fastq "^1.6.0"
|
|
||||||
|
|
||||||
"@types/fs-extra@^8.1.0":
|
|
||||||
version "8.1.1"
|
|
||||||
resolved "https://registry.npm.taobao.org/@types/fs-extra/download/@types/fs-extra-8.1.1.tgz#1e49f22d09aa46e19b51c0b013cb63d0d923a068"
|
|
||||||
integrity sha1-HknyLQmqRuGbUcCwE8tj0NkjoGg=
|
|
||||||
dependencies:
|
|
||||||
"@types/node" "*"
|
|
||||||
|
|
||||||
"@types/node@*":
|
|
||||||
version "14.11.2"
|
|
||||||
resolved "https://registry.npm.taobao.org/@types/node/download/@types/node-14.11.2.tgz?cache=0&sync_timestamp=1600732726474&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-14.11.2.tgz#2de1ed6670439387da1c9f549a2ade2b0a799256"
|
|
||||||
integrity sha1-LeHtZnBDk4faHJ9UmireKwp5klY=
|
|
||||||
|
|
||||||
at-least-node@^1.0.0:
|
|
||||||
version "1.0.0"
|
|
||||||
resolved "https://registry.npm.taobao.org/at-least-node/download/at-least-node-1.0.0.tgz#602cd4b46e844ad4effc92a8011a3c46e0238dc2"
|
|
||||||
integrity sha1-YCzUtG6EStTv/JKoARo8RuAjjcI=
|
|
||||||
|
|
||||||
braces@^3.0.1:
|
|
||||||
version "3.0.2"
|
|
||||||
resolved "https://registry.npm.taobao.org/braces/download/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107"
|
|
||||||
integrity sha1-NFThpGLujVmeI23zNs2epPiv4Qc=
|
|
||||||
dependencies:
|
|
||||||
fill-range "^7.0.1"
|
|
||||||
|
|
||||||
fast-glob@^3.2.2:
|
|
||||||
version "3.2.4"
|
|
||||||
resolved "https://registry.npm.taobao.org/fast-glob/download/fast-glob-3.2.4.tgz#d20aefbf99579383e7f3cc66529158c9b98554d3"
|
|
||||||
integrity sha1-0grvv5lXk4Pn88xmUpFYybmFVNM=
|
|
||||||
dependencies:
|
|
||||||
"@nodelib/fs.stat" "^2.0.2"
|
|
||||||
"@nodelib/fs.walk" "^1.2.3"
|
|
||||||
glob-parent "^5.1.0"
|
|
||||||
merge2 "^1.3.0"
|
|
||||||
micromatch "^4.0.2"
|
|
||||||
picomatch "^2.2.1"
|
|
||||||
|
|
||||||
fastq@^1.6.0:
|
|
||||||
version "1.8.0"
|
|
||||||
resolved "https://registry.npm.taobao.org/fastq/download/fastq-1.8.0.tgz#550e1f9f59bbc65fe185cb6a9b4d95357107f481"
|
|
||||||
integrity sha1-VQ4fn1m7xl/hhctqm02VNXEH9IE=
|
|
||||||
dependencies:
|
|
||||||
reusify "^1.0.4"
|
|
||||||
|
|
||||||
fill-range@^7.0.1:
|
|
||||||
version "7.0.1"
|
|
||||||
resolved "https://registry.npm.taobao.org/fill-range/download/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40"
|
|
||||||
integrity sha1-GRmmp8df44ssfHflGYU12prN2kA=
|
|
||||||
dependencies:
|
|
||||||
to-regex-range "^5.0.1"
|
|
||||||
|
|
||||||
fs-extra@^9.0.0:
|
|
||||||
version "9.0.1"
|
|
||||||
resolved "https://registry.npm.taobao.org/fs-extra/download/fs-extra-9.0.1.tgz?cache=0&sync_timestamp=1592843137563&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffs-extra%2Fdownload%2Ffs-extra-9.0.1.tgz#910da0062437ba4c39fedd863f1675ccfefcb9fc"
|
|
||||||
integrity sha1-kQ2gBiQ3ukw5/t2GPxZ1zP78ufw=
|
|
||||||
dependencies:
|
|
||||||
at-least-node "^1.0.0"
|
|
||||||
graceful-fs "^4.2.0"
|
|
||||||
jsonfile "^6.0.1"
|
|
||||||
universalify "^1.0.0"
|
|
||||||
|
|
||||||
glob-parent@^5.1.0:
|
|
||||||
version "5.1.1"
|
|
||||||
resolved "https://registry.npm.taobao.org/glob-parent/download/glob-parent-5.1.1.tgz#b6c1ef417c4e5663ea498f1c45afac6916bbc229"
|
|
||||||
integrity sha1-tsHvQXxOVmPqSY8cRa+saRa7wik=
|
|
||||||
dependencies:
|
|
||||||
is-glob "^4.0.1"
|
|
||||||
|
|
||||||
graceful-fs@^4.1.6, graceful-fs@^4.2.0:
|
|
||||||
version "4.2.4"
|
|
||||||
resolved "https://registry.npm.taobao.org/graceful-fs/download/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb"
|
|
||||||
integrity sha1-Ila94U02MpWMRl68ltxGfKB6Kfs=
|
|
||||||
|
|
||||||
is-extglob@^2.1.1:
|
|
||||||
version "2.1.1"
|
|
||||||
resolved "https://registry.npm.taobao.org/is-extglob/download/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
|
|
||||||
integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=
|
|
||||||
|
|
||||||
is-glob@^4.0.1:
|
|
||||||
version "4.0.1"
|
|
||||||
resolved "https://registry.npm.taobao.org/is-glob/download/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc"
|
|
||||||
integrity sha1-dWfb6fL14kZ7x3q4PEopSCQHpdw=
|
|
||||||
dependencies:
|
|
||||||
is-extglob "^2.1.1"
|
|
||||||
|
|
||||||
is-number@^7.0.0:
|
|
||||||
version "7.0.0"
|
|
||||||
resolved "https://registry.npm.taobao.org/is-number/download/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"
|
|
||||||
integrity sha1-dTU0W4lnNNX4DE0GxQlVUnoU8Ss=
|
|
||||||
|
|
||||||
jsonfile@^6.0.1:
|
|
||||||
version "6.0.1"
|
|
||||||
resolved "https://registry.npm.taobao.org/jsonfile/download/jsonfile-6.0.1.tgz#98966cba214378c8c84b82e085907b40bf614179"
|
|
||||||
integrity sha1-mJZsuiFDeMjIS4LghZB7QL9hQXk=
|
|
||||||
dependencies:
|
|
||||||
universalify "^1.0.0"
|
|
||||||
optionalDependencies:
|
|
||||||
graceful-fs "^4.1.6"
|
|
||||||
|
|
||||||
merge2@^1.3.0:
|
|
||||||
version "1.4.1"
|
|
||||||
resolved "https://registry.npm.taobao.org/merge2/download/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae"
|
|
||||||
integrity sha1-Q2iJL4hekHRVpv19xVwMnUBJkK4=
|
|
||||||
|
|
||||||
micromatch@^4.0.2:
|
|
||||||
version "4.0.2"
|
|
||||||
resolved "https://registry.npm.taobao.org/micromatch/download/micromatch-4.0.2.tgz#4fcb0999bf9fbc2fcbdd212f6d629b9a56c39259"
|
|
||||||
integrity sha1-T8sJmb+fvC/L3SEvbWKbmlbDklk=
|
|
||||||
dependencies:
|
|
||||||
braces "^3.0.1"
|
|
||||||
picomatch "^2.0.5"
|
|
||||||
|
|
||||||
picomatch@^2.0.5, picomatch@^2.2.1:
|
|
||||||
version "2.2.2"
|
|
||||||
resolved "https://registry.npm.taobao.org/picomatch/download/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad"
|
|
||||||
integrity sha1-IfMz6ba46v8CRo9RRupAbTRfTa0=
|
|
||||||
|
|
||||||
reusify@^1.0.4:
|
|
||||||
version "1.0.4"
|
|
||||||
resolved "https://registry.npm.taobao.org/reusify/download/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76"
|
|
||||||
integrity sha1-kNo4Kx4SbvwCFG6QhFqI2xKSXXY=
|
|
||||||
|
|
||||||
run-parallel@^1.1.9:
|
|
||||||
version "1.1.9"
|
|
||||||
resolved "https://registry.npm.taobao.org/run-parallel/download/run-parallel-1.1.9.tgz#c9dd3a7cf9f4b2c4b6244e173a6ed866e61dd679"
|
|
||||||
integrity sha1-yd06fPn0ssS2JE4XOm7YZuYd1nk=
|
|
||||||
|
|
||||||
to-regex-range@^5.0.1:
|
|
||||||
version "5.0.1"
|
|
||||||
resolved "https://registry.npm.taobao.org/to-regex-range/download/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4"
|
|
||||||
integrity sha1-FkjESq58jZiKMmAY7XL1tN0DkuQ=
|
|
||||||
dependencies:
|
|
||||||
is-number "^7.0.0"
|
|
||||||
|
|
||||||
universalify@^1.0.0:
|
|
||||||
version "1.0.0"
|
|
||||||
resolved "https://registry.npm.taobao.org/universalify/download/universalify-1.0.0.tgz#b61a1da173e8435b2fe3c67d29b9adf8594bd16d"
|
|
||||||
integrity sha1-thodoXPoQ1sv48Z9Kbmt+FlL0W0=
|
|
@ -1,3 +1,3 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
presets: [['@vant/cli/preset', { loose: true }]],
|
presets: [['@vant/cli/preset.cjs', { loose: true }]],
|
||||||
};
|
};
|
||||||
|
@ -15,7 +15,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "rollup --config rollup.config.js --watch",
|
"dev": "rollup --config rollup.config.js --watch",
|
||||||
"build": "rollup --config rollup.config.js && tsc -p ./tsconfig.json --emitDeclarationOnly",
|
"build": "rollup --config rollup.config.js && tsc -p ./tsconfig.json --emitDeclarationOnly",
|
||||||
"release": "npm run build && release-it"
|
"release": "pnpm build && release-it",
|
||||||
|
"prepare": "pnpm build"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": "https://github.com/youzan/vant/tree/dev/packages/vant-popperjs",
|
"repository": "https://github.com/youzan/vant/tree/dev/packages/vant-popperjs",
|
||||||
@ -23,6 +24,7 @@
|
|||||||
"@popperjs/core": "^2.9.2"
|
"@popperjs/core": "^2.9.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@vant/cli": "workspace:*",
|
||||||
"@rollup/plugin-babel": "^5.2.1",
|
"@rollup/plugin-babel": "^5.2.1",
|
||||||
"@rollup/plugin-node-resolve": "^10.0.0",
|
"@rollup/plugin-node-resolve": "^10.0.0",
|
||||||
"release-it": "^14.2.2",
|
"release-it": "^14.2.2",
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,3 +1,3 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
presets: [['@vant/cli/preset', { loose: true }]],
|
presets: [['@vant/cli/preset.cjs', { loose: true }]],
|
||||||
};
|
};
|
||||||
|
@ -13,8 +13,9 @@
|
|||||||
"clean": "rm -rf ./dist",
|
"clean": "rm -rf ./dist",
|
||||||
"build:lib": "node ./scripts/build.js",
|
"build:lib": "node ./scripts/build.js",
|
||||||
"build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly",
|
"build:types": "tsc -p ./tsconfig.json --emitDeclarationOnly",
|
||||||
"build": "yarn build:lib && yarn build:types",
|
"build": "pnpm build:lib && pnpm build:types",
|
||||||
"release": "yarn build && release-it"
|
"release": "pnpm build && release-it",
|
||||||
|
"prepare": "pnpm build"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public",
|
"access": "public",
|
||||||
@ -24,8 +25,12 @@
|
|||||||
"repository": "https://github.com/youzan/vant/tree/dev/packages/vant-use",
|
"repository": "https://github.com/youzan/vant/tree/dev/packages/vant-use",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.12.9",
|
"@babel/core": "^7.12.9",
|
||||||
|
"@vant/cli": "workspace:*",
|
||||||
|
"fast-glob": "^3.2.7",
|
||||||
|
"fs-extra": "^10.0.0",
|
||||||
"release-it": "^14.0.2",
|
"release-it": "^14.0.2",
|
||||||
"typescript": "^4.0.2"
|
"typescript": "^4.0.2",
|
||||||
|
"vue": "^3.2.20"
|
||||||
},
|
},
|
||||||
"release-it": {
|
"release-it": {
|
||||||
"git": {
|
"git": {
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -15,6 +15,8 @@
|
|||||||
|
|
||||||
### 本地开发
|
### 本地开发
|
||||||
|
|
||||||
|
在进行本地开发前,请先确保你的开发环境中安装了 [Node.js >= 14](https://nodejs.org) 和 [pnpm](https://pnpm.io).
|
||||||
|
|
||||||
按照下面的步骤操作,即可在本地开发 Vant 组件。
|
按照下面的步骤操作,即可在本地开发 Vant 组件。
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@ -24,10 +26,10 @@
|
|||||||
git clone git@github.com:youzan/vant.git
|
git clone git@github.com:youzan/vant.git
|
||||||
|
|
||||||
# 安装依赖
|
# 安装依赖
|
||||||
yarn
|
pnpm i
|
||||||
|
|
||||||
# 进入开发模式,浏览器访问 localhost
|
# 进入开发模式,浏览器访问 localhost
|
||||||
yarn dev
|
pnpm dev
|
||||||
```
|
```
|
||||||
|
|
||||||
### 目录结构
|
### 目录结构
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
"build": "vant-cli build",
|
"build": "vant-cli build",
|
||||||
"build:site": "vant-cli build-site",
|
"build:site": "vant-cli build-site",
|
||||||
"release": "vant-cli release --tag next",
|
"release": "vant-cli release --tag next",
|
||||||
"release:site": "yarn build:site && gh-pages -d site-dist --add --dest v3",
|
"release:site": "pnpm build:site && gh-pages -d site-dist --add --dest v3",
|
||||||
"test:watch": "vant-cli test --watch",
|
"test:watch": "vant-cli test --watch",
|
||||||
"test:coverage": "open test/coverage/index.html"
|
"test:coverage": "open test/coverage/index.html"
|
||||||
},
|
},
|
||||||
|
13043
pnpm-lock.yaml
generated
Normal file
13043
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
2
pnpm-workspace.yaml
Normal file
2
pnpm-workspace.yaml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
packages:
|
||||||
|
- 'packages/*'
|
Loading…
x
Reference in New Issue
Block a user