Commit 461a8ed8 authored by 邓晓峰's avatar 邓晓峰

docs: test docs

parent d32094a3
...@@ -2,7 +2,7 @@ import { readdirSync } from 'fs'; ...@@ -2,7 +2,7 @@ import { readdirSync } from 'fs';
import { join } from 'path'; import { join } from 'path';
// utils must build before core // utils must build before core
const headPkgs = []; const headPkgs = ['card', 'list'];
const tailPkgs = readdirSync(join(__dirname, 'packages')).filter( const tailPkgs = readdirSync(join(__dirname, 'packages')).filter(
(pkg) => pkg.charAt(0) !== '.' && !headPkgs.includes(pkg), (pkg) => pkg.charAt(0) !== '.' && !headPkgs.includes(pkg),
); );
......
...@@ -14,4 +14,3 @@ hero: ...@@ -14,4 +14,3 @@ hero:
| 组件 | 下载量 | 版本 | | 组件 | 下载量 | 版本 |
| ---- | ------ | ---- | | ---- | ------ | ---- |
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
], ],
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://g.civnet.cn:8443/test/winsdom-components" "url": "https://g.civnet.cn:8443/ReactWeb5/wisdom-components.git"
}, },
"browserslist": [ "browserslist": [
"last 2 versions", "last 2 versions",
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
], ],
"license": "MIT", "license": "MIT",
"bugs": "http://github.com/umijs/plugins/issues", "bugs": "http://github.com/umijs/plugins/issues",
"homepage": "https://g.civnet.cn:8443/test/winsdom-components/tree/master/packages/card#readme", "homepage": "https://g.civnet.cn:8443/ReactWeb5/wisdom-components/tree/master/packages/card#readme",
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
} }
......
export default 'hello world 1234'; export function noop() {
return function () {};
}
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://g.civnet.cn:8443/test/wisdom-components.git" "url": "https://g.civnet.cn:8443/ReactWeb5/wisdom-components.git"
}, },
"dependencies": { "dependencies": {
"antd": "^4.7.3", "antd": "^4.7.3",
......
# Change Log
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## 1.0.1 (2021-01-08)
**Note:** Version bump only for package @winsdom-components/test_pg
# `@winsdom-components/test`
> TODO: description
## Usage
```
const test = require('@winsdom-components/test');
// TODO: DEMONSTRATE API
```
{
"name": "@winsdom-components/test_pg",
"version": "1.0.1",
"description": "> TODO: description",
"author": "dengxiaofeng <1186313486@qq.com>",
"homepage": "",
"license": "ISC",
"main": "lib/test.js",
"directories": {
"lib": "lib",
"test": "__tests__"
},
"files": [
"lib"
],
"publishConfig": {
"registry": "https://g.civnet.cn:4873/"
},
"repository": {
"type": "git",
"url": "https://g.civnet.cn:8443/ReactWeb5/wisdom-components.git"
},
"scripts": {
"test": "echo \"Error: run tests from root\" && exit 1"
}
}
...@@ -25,14 +25,14 @@ const { yParser } = require('@umijs/utils'); ...@@ -25,14 +25,14 @@ const { yParser } = require('@umijs/utils');
files: ['lib', 'src', 'dist', 'es'], files: ['lib', 'src', 'dist', 'es'],
repository: { repository: {
type: 'git', type: 'git',
url: 'https://g.civnet.cn:8443/test/winsdom-components', url: 'https://g.civnet.cn:8443/ReactWeb5/wisdom-components',
}, },
browserslist: ['last 2 versions', 'Firefox ESR', '> 1%', 'ie >= 11'], browserslist: ['last 2 versions', 'Firefox ESR', '> 1%', 'ie >= 11'],
keywords: ['antd', 'admin', 'ant-design', 'ant-design-pro'], keywords: ['antd', 'admin', 'ant-design', 'ant-design-pro'],
authors: ['dengxiaofeng'], authors: ['dengxiaofeng'],
license: 'MIT', license: 'MIT',
bugs: 'http://github.com/umijs/plugins/issues', bugs: 'https://g.civnet.cn:8443/ReactWeb5/wisdom-components/plugins/issues',
homepage: `https://g.civnet.cn:8443/test/winsdom-components/tree/master/packages/${shortName}#readme`, homepage: `https://g.civnet.cn:8443/ReactWeb5/wisdom-components/tree/master/packages/${shortName}#readme`,
peerDependencies: { peerDependencies: {
umi: '3.x', umi: '3.x',
}, },
......
...@@ -3,7 +3,6 @@ const { join } = require('path'); ...@@ -3,7 +3,6 @@ const { join } = require('path');
const exec = require('./utils/exec'); const exec = require('./utils/exec');
const getPackages = require('./utils/getPackages'); const getPackages = require('./utils/getPackages');
const isNextVersion = require('./utils/isNextVersion'); const isNextVersion = require('./utils/isNextVersion');
const { error } = require('console');
const { yParser, execa, chalk } = utils; const { yParser, execa, chalk } = utils;
const cwd = process.cwd(); const cwd = process.cwd();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment