@kep-platform/basic-component 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -0
- package/README.md +43 -0
- package/dist/Foo/index.d.ts +5 -0
- package/dist/Foo/index.js +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +76 -0
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) lee-step-jss 1599925910@qq.com
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# @kep-platform/basic-component
|
2
|
+
|
3
|
+
[![NPM version](https://img.shields.io/npm/v/@kep-platform/basic-component.svg?style=flat)](https://npmjs.org/package/@kep-platform/basic-component)
|
4
|
+
[![NPM downloads](http://img.shields.io/npm/dm/@kep-platform/basic-component.svg?style=flat)](https://npmjs.org/package/@kep-platform/basic-component)
|
5
|
+
|
6
|
+
A react library developed with dumi
|
7
|
+
|
8
|
+
## Usage
|
9
|
+
|
10
|
+
TODO
|
11
|
+
|
12
|
+
## Options
|
13
|
+
|
14
|
+
TODO
|
15
|
+
|
16
|
+
## Development
|
17
|
+
|
18
|
+
```bash
|
19
|
+
# install dependencies
|
20
|
+
$ npm install
|
21
|
+
|
22
|
+
# develop library by docs demo
|
23
|
+
$ npm start
|
24
|
+
|
25
|
+
# build library source code
|
26
|
+
$ npm run build
|
27
|
+
|
28
|
+
# build library source code in watch mode
|
29
|
+
$ npm run build:watch
|
30
|
+
|
31
|
+
# build docs
|
32
|
+
$ npm run docs:build
|
33
|
+
|
34
|
+
# Locally preview the production build.
|
35
|
+
$ npm run docs:preview
|
36
|
+
|
37
|
+
# check your project for potential problems
|
38
|
+
$ npm run doctor
|
39
|
+
```
|
40
|
+
|
41
|
+
## LICENSE
|
42
|
+
|
43
|
+
MIT
|
package/dist/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export { default as Foo } from './Foo';
|
package/dist/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export { default as Foo } from "./Foo";
|
package/package.json
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
{
|
2
|
+
"name": "@kep-platform/basic-component",
|
3
|
+
"version": "0.0.1",
|
4
|
+
"description": "A react library developed with dumi",
|
5
|
+
"module": "dist/index.js",
|
6
|
+
"types": "dist/index.d.ts",
|
7
|
+
"scripts": {
|
8
|
+
"start": "npm run dev",
|
9
|
+
"dev": "dumi dev",
|
10
|
+
"build": "father build",
|
11
|
+
"build:watch": "father dev",
|
12
|
+
"docs:build": "dumi build",
|
13
|
+
"docs:preview": "dumi preview",
|
14
|
+
"prepare": "dumi setup",
|
15
|
+
"doctor": "father doctor",
|
16
|
+
"lint": "npm run lint:es && npm run lint:css",
|
17
|
+
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
18
|
+
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
19
|
+
"prepublishOnly": "father doctor && npm run build"
|
20
|
+
},
|
21
|
+
"authors": [
|
22
|
+
"lee-step-jss 1599925910@qq.com"
|
23
|
+
],
|
24
|
+
"license": "MIT",
|
25
|
+
"files": [
|
26
|
+
"dist"
|
27
|
+
],
|
28
|
+
"commitlint": {
|
29
|
+
"extends": [
|
30
|
+
"@commitlint/config-conventional"
|
31
|
+
]
|
32
|
+
},
|
33
|
+
"lint-staged": {
|
34
|
+
"*.{md,json}": [
|
35
|
+
"prettier --write --no-error-on-unmatched-pattern"
|
36
|
+
],
|
37
|
+
"*.{css,less}": [
|
38
|
+
"stylelint --fix",
|
39
|
+
"prettier --write"
|
40
|
+
],
|
41
|
+
"*.{js,jsx}": [
|
42
|
+
"eslint --fix",
|
43
|
+
"prettier --write"
|
44
|
+
],
|
45
|
+
"*.{ts,tsx}": [
|
46
|
+
"eslint --fix",
|
47
|
+
"prettier --parser=typescript --write"
|
48
|
+
]
|
49
|
+
},
|
50
|
+
"publishConfig": {
|
51
|
+
"access": "public"
|
52
|
+
},
|
53
|
+
"peerDependencies": {
|
54
|
+
"react": ">=16.9.0",
|
55
|
+
"react-dom": ">=16.9.0"
|
56
|
+
},
|
57
|
+
"devDependencies": {
|
58
|
+
"@commitlint/cli": "^17.1.2",
|
59
|
+
"@commitlint/config-conventional": "^17.1.0",
|
60
|
+
"@types/react": "^18.0.0",
|
61
|
+
"@types/react-dom": "^18.0.0",
|
62
|
+
"@umijs/lint": "^4.0.0",
|
63
|
+
"dumi": "^2.3.0",
|
64
|
+
"eslint": "^8.23.0",
|
65
|
+
"father": "^4.1.0",
|
66
|
+
"husky": "^8.0.1",
|
67
|
+
"lint-staged": "^13.0.3",
|
68
|
+
"prettier": "^2.7.1",
|
69
|
+
"prettier-plugin-organize-imports": "^3.0.0",
|
70
|
+
"prettier-plugin-packagejson": "^2.2.18",
|
71
|
+
"react": "^18.0.0",
|
72
|
+
"react-dom": "^18.0.0",
|
73
|
+
"stylelint": "^14.9.1"
|
74
|
+
},
|
75
|
+
"gitHead": "a79e4f49883528a6e3fa34b73231732d35c8a22b"
|
76
|
+
}
|