@kep-platform/business-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 +74 -0
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c)
|
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/business-component
|
2
|
+
|
3
|
+
[![NPM version](https://img.shields.io/npm/v/@kep-platform/business-component.svg?style=flat)](https://npmjs.org/package/@kep-platform/business-component)
|
4
|
+
[![NPM downloads](http://img.shields.io/npm/dm/@kep-platform/business-component.svg?style=flat)](https://npmjs.org/package/@kep-platform/business-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,74 @@
|
|
1
|
+
{
|
2
|
+
"name": "@kep-platform/business-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
|
+
"license": "MIT",
|
23
|
+
"files": [
|
24
|
+
"dist"
|
25
|
+
],
|
26
|
+
"commitlint": {
|
27
|
+
"extends": [
|
28
|
+
"@commitlint/config-conventional"
|
29
|
+
]
|
30
|
+
},
|
31
|
+
"lint-staged": {
|
32
|
+
"*.{md,json}": [
|
33
|
+
"prettier --write --no-error-on-unmatched-pattern"
|
34
|
+
],
|
35
|
+
"*.{css,less}": [
|
36
|
+
"stylelint --fix",
|
37
|
+
"prettier --write"
|
38
|
+
],
|
39
|
+
"*.{js,jsx}": [
|
40
|
+
"eslint --fix",
|
41
|
+
"prettier --write"
|
42
|
+
],
|
43
|
+
"*.{ts,tsx}": [
|
44
|
+
"eslint --fix",
|
45
|
+
"prettier --parser=typescript --write"
|
46
|
+
]
|
47
|
+
},
|
48
|
+
"publishConfig": {
|
49
|
+
"access": "public"
|
50
|
+
},
|
51
|
+
"peerDependencies": {
|
52
|
+
"react": ">=16.9.0",
|
53
|
+
"react-dom": ">=16.9.0"
|
54
|
+
},
|
55
|
+
"devDependencies": {
|
56
|
+
"@commitlint/cli": "^17.1.2",
|
57
|
+
"@commitlint/config-conventional": "^17.1.0",
|
58
|
+
"@types/react": "^18.0.0",
|
59
|
+
"@types/react-dom": "^18.0.0",
|
60
|
+
"@umijs/lint": "^4.0.0",
|
61
|
+
"dumi": "^2.3.0",
|
62
|
+
"eslint": "^8.23.0",
|
63
|
+
"father": "^4.1.0",
|
64
|
+
"husky": "^8.0.1",
|
65
|
+
"lint-staged": "^13.0.3",
|
66
|
+
"prettier": "^2.7.1",
|
67
|
+
"prettier-plugin-organize-imports": "^3.0.0",
|
68
|
+
"prettier-plugin-packagejson": "^2.2.18",
|
69
|
+
"react": "^18.0.0",
|
70
|
+
"react-dom": "^18.0.0",
|
71
|
+
"stylelint": "^14.9.1"
|
72
|
+
},
|
73
|
+
"gitHead": "a79e4f49883528a6e3fa34b73231732d35c8a22b"
|
74
|
+
}
|