ims-template-config 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 eternallycyf Xu
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,134 @@
1
+ <a name="readme-top"></a>
2
+
3
+ <div align="center">
4
+
5
+ [//]: # '<img width="160" src="https://avatars.githubusercontent.com/u/17870709?v=4">'
6
+
7
+ <h1>ims-template-config</h1>
8
+
9
+ 一个开发 npm 项目的模板
10
+
11
+ node 版本 v18.13.0
12
+
13
+ [Changelog](./CHANGELOG.md) · [Report Bug][issues-url] · [Request Feature][issues-url]
14
+
15
+ <!-- SHIELD GROUP -->
16
+
17
+ [![NPM version][npm-image]][npm-url] [![NPM downloads][download-image]][download-url] [![install size][npm-size]][npm-size-url]
18
+
19
+ [![Test CI status][test-ci]][test-ci-url] [![Deploy CI][release-ci]][release-ci-url] [![Coverage][coverage]][codecov-url]
20
+
21
+ [![contributors][contributors-shield]][contributors-url] [![forks][forks-shield]][forks-url] [![stargazers][stargazers-shield]][stargazers-url] [![issues][issues-shield]][issues-url]
22
+
23
+ [![ docs by dumi][dumi-url]](https://d.umijs.org/) [![Build With father][father-url]](https://github.com/umijs/father/)
24
+
25
+ ![](https://github.com/othneildrew/Best-README-Template/raw/master/images/screenshot.png)
26
+
27
+ <!-- gitpod url -->
28
+
29
+ [gitpod-badge]: https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod
30
+ [gitpod-url]: https://gitpod.io/#https://github.com/ant-design/ims-template-config
31
+
32
+ <!-- umi url -->
33
+
34
+ [dumi-url]: https://img.shields.io/badge/docs%20by-dumi-blue
35
+ [father-url]: https://img.shields.io/badge/build%20with-father-028fe4.svg
36
+
37
+ <!-- npm url -->
38
+
39
+ [npm-image]: http://img.shields.io/npm/v/ims-template-config.svg?style=flat-square&color=deepgreen&label=latest
40
+ [npm-url]: http://npmjs.org/package/ims-template-config
41
+ [npm-size]: https://img.shields.io/bundlephobia/minzip/ims-template-config?color=deepgreen&label=gizpped%20size&style=flat-square
42
+ [npm-size-url]: https://packagephobia.com/result?p=ims-template-config
43
+
44
+ <!-- coverage -->
45
+
46
+ [coverage]: https://codecov.io/gh/eternallycyf/ims-template-config/branch/master/graph/badge.svg
47
+ [codecov-url]: https://codecov.io/gh/eternallycyf/ims-template-config/branch/master
48
+
49
+ <!-- Github CI -->
50
+
51
+ [test-ci]: https://github.com/eternallycyf/ims-template-config/workflows/Test%20CI/badge.svg
52
+ [release-ci]: https://github.com/eternallycyf/ims-template-config/workflows/Release%20CI/badge.svg
53
+ [test-ci-url]: https://github.com/eternallycyf/ims-template-config/actions?query=workflow%3ATest%20CI
54
+ [release-ci-url]: https://github.com/eternallycyf/ims-template-config/actions?query=workflow%3ARelease%20CI
55
+ [download-image]: https://img.shields.io/npm/dm/ims-template-config.svg?style=flat-square
56
+ [download-url]: https://npmjs.org/package/ims-template-config
57
+
58
+ </div>
59
+
60
+ ## 简介
61
+
62
+ 这是一个开发 npm 项目的模板,具有以下特点:
63
+
64
+ - 🏗️ **基于 father4 的构建工具**:本项目采用了基于 father4 的构建工具,可以更高效地构建项目,提高开发效率;
65
+ - 📖 **基于 dumi2 的文档工具**:本项目采用了基于 dumi2 的文档工具,可以更方便地编写和管理文档,提高文档的可读性和可维护性;
66
+ - 🚀 **基于 vercel 自动化触发文档站构建**:本项目使用 vercel 自动化触发文档站构建,可以更快地更新文档站,提高用户的使用体验;
67
+ - 📦 **基于 semantic-release 实现 npm 包的自动化发布**:本项目使用 semantic-release 实现 npm 包的自动化发布,可以更方便地管理和发布 npm 包,提高开发效率。
68
+
69
+ ## 快速上手
70
+
71
+ ### 安装
72
+
73
+ 推荐使用 `pnpm` 安装
74
+
75
+ ```bash
76
+ pnpm i ims-template-config -S
77
+ ```
78
+
79
+ ### 使用
80
+
81
+ 基于该仓库模板可以快速创建一个 npm 包的工程化脚手架。
82
+
83
+ 详情:[CHANGELOG](./CHANGELOG.md)
84
+
85
+ ## 🤝 Contributing
86
+
87
+ <!-- CONTRIBUTION GROUP -->
88
+
89
+ > 📊 Total: <kbd>**1**</kbd>
90
+
91
+ <a href="https://github.com/eternallycyf" title="eternallycyf">
92
+ <img src="https://avatars.githubusercontent.com/u/63464198?v=4" width="50" />
93
+ </a>
94
+
95
+ <!-- CONTRIBUTION END -->
96
+
97
+ <div align="right">
98
+
99
+ [![][back-to-top]](#readme-top)
100
+
101
+ ## </div>
102
+
103
+ #### 📝 License
104
+
105
+ Copyright © 2020 - present [eternallycyf][profile-url]. <br />
106
+ This project is [MIT](./LICENSE) licensed.
107
+
108
+ <!-- LINK GROUP -->
109
+
110
+ [profile-url]: https://github.com/eternallycyf
111
+
112
+ <!-- SHIELD LINK GROUP -->
113
+
114
+ [back-to-top]: https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square
115
+
116
+ <!-- contributors -->
117
+
118
+ [contributors-shield]: https://img.shields.io/github/contributors/eternallycyf/ims-template-config.svg?style=flat
119
+ [contributors-url]: https://github.com/eternallycyf/ims-template-config/graphs/contributors
120
+
121
+ <!-- forks -->
122
+
123
+ [forks-shield]: https://img.shields.io/github/forks/eternallycyf/ims-template-config.svg?style=flat
124
+ [forks-url]: https://github.com/eternallycyf/ims-template-config/network/members
125
+
126
+ <!-- stargazers -->
127
+
128
+ [stargazers-shield]: https://img.shields.io/github/stars/eternallycyf/ims-template-config.svg?style=flat
129
+ [stargazers-url]: https://github.com/eternallycyf/ims-template-config/stargazers
130
+
131
+ <!-- issues -->
132
+
133
+ [issues-shield]: https://img.shields.io/github/issues/eternallycyf/ims-template-config.svg?style=flat
134
+ [issues-url]: https://github.com/eternallycyf/ims-template-config/issues/new/choose
@@ -0,0 +1,21 @@
1
+ export declare const footer: ({
2
+ title: string;
3
+ items: ({
4
+ title: string;
5
+ url: string;
6
+ openExternal: boolean;
7
+ } | {
8
+ title: string;
9
+ url: string;
10
+ openExternal?: undefined;
11
+ })[];
12
+ } | {
13
+ title: string;
14
+ items: {
15
+ title: string;
16
+ description: string;
17
+ url: string;
18
+ openExternal: boolean;
19
+ }[];
20
+ })[];
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/footer/index.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;IA6FlB,CAAC"}
@@ -0,0 +1,71 @@
1
+ export var footer = [{
2
+ title: '相关依赖',
3
+ items: [{
4
+ title: 'ims-view-pc',
5
+ url: 'https://ims-view.site/components',
6
+ openExternal: true
7
+ }, {
8
+ title: '@ims-view/hooks',
9
+ url: 'https://ims-view.site/hooks',
10
+ openExternal: true
11
+ }, {
12
+ title: '@ims-view/utils',
13
+ url: 'https://ims-view.site/utils',
14
+ openExternal: true
15
+ }, {
16
+ title: '@ims-view/chart',
17
+ url: 'https://ims-view.site/charts',
18
+ openExternal: true
19
+ }, {
20
+ title: 'ims-graph',
21
+ url: 'https://ims-graph.vercel.app/components/graph-chart',
22
+ openExternal: true
23
+ }, {
24
+ title: 'ims-indexed-db',
25
+ url: 'https://ims-indexed-db.vercel.app/',
26
+ openExternal: true
27
+ }, {
28
+ title: '@ims-view/components',
29
+ url: 'https://github.com/eternallycyf/components',
30
+ openExternal: true
31
+ }]
32
+ }, {
33
+ title: '帮助',
34
+ items: [{
35
+ title: 'GitHub',
36
+ url: 'https://github.com/eternallycyf/ims-view-pc',
37
+ openExternal: true
38
+ }, {
39
+ title: '更新日志',
40
+ url: '/changelog/ims-view-pc'
41
+ }, {
42
+ title: '讨论',
43
+ url: 'https://github.com/eternallycyf/ims-view-pc/issues',
44
+ openExternal: true
45
+ }]
46
+ }, {
47
+ title: '模板及配置',
48
+ items: [{
49
+ title: 'ims-monorepo-template',
50
+ description: 'monorepo模板',
51
+ url: 'https://github.com/eternallycyf/ims-monorepo-template',
52
+ openExternal: true
53
+ }, {
54
+ title: 'ims-template',
55
+ description: 'npm模板',
56
+ url: 'https://github.com/eternallycyf/ims-template',
57
+ openExternal: true
58
+ }, {
59
+ title: 'ims-template-config',
60
+ description: '配置',
61
+ url: 'https://github.com/eternallycyf/ims-template-config',
62
+ openExternal: true
63
+ }]
64
+ }, {
65
+ title: '更多',
66
+ items: [{
67
+ title: 'lrxc-cli',
68
+ url: 'https://github.com/eternallycyf/lrxc-cli',
69
+ openExternal: true
70
+ }]
71
+ }];
package/es/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { footer } from './components/footer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC"}
package/es/index.js ADDED
@@ -0,0 +1 @@
1
+ export { footer } from "./components/footer";
@@ -0,0 +1,21 @@
1
+ export declare const footer: ({
2
+ title: string;
3
+ items: ({
4
+ title: string;
5
+ url: string;
6
+ openExternal: boolean;
7
+ } | {
8
+ title: string;
9
+ url: string;
10
+ openExternal?: undefined;
11
+ })[];
12
+ } | {
13
+ title: string;
14
+ items: {
15
+ title: string;
16
+ description: string;
17
+ url: string;
18
+ openExternal: boolean;
19
+ }[];
20
+ })[];
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/footer/index.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;IA6FlB,CAAC"}
@@ -0,0 +1,122 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/components/footer/index.tsx
20
+ var footer_exports = {};
21
+ __export(footer_exports, {
22
+ footer: () => footer
23
+ });
24
+ module.exports = __toCommonJS(footer_exports);
25
+ var footer = [
26
+ {
27
+ title: "相关依赖",
28
+ items: [
29
+ {
30
+ title: "ims-view-pc",
31
+ url: "https://ims-view.site/components",
32
+ openExternal: true
33
+ },
34
+ {
35
+ title: "@ims-view/hooks",
36
+ url: "https://ims-view.site/hooks",
37
+ openExternal: true
38
+ },
39
+ {
40
+ title: "@ims-view/utils",
41
+ url: "https://ims-view.site/utils",
42
+ openExternal: true
43
+ },
44
+ {
45
+ title: "@ims-view/chart",
46
+ url: "https://ims-view.site/charts",
47
+ openExternal: true
48
+ },
49
+ {
50
+ title: "ims-graph",
51
+ url: "https://ims-graph.vercel.app/components/graph-chart",
52
+ openExternal: true
53
+ },
54
+ {
55
+ title: "ims-indexed-db",
56
+ url: "https://ims-indexed-db.vercel.app/",
57
+ openExternal: true
58
+ },
59
+ {
60
+ title: "@ims-view/components",
61
+ url: "https://github.com/eternallycyf/components",
62
+ openExternal: true
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ title: "帮助",
68
+ items: [
69
+ {
70
+ title: "GitHub",
71
+ url: "https://github.com/eternallycyf/ims-view-pc",
72
+ openExternal: true
73
+ },
74
+ {
75
+ title: "更新日志",
76
+ url: "/changelog/ims-view-pc"
77
+ },
78
+ {
79
+ title: "讨论",
80
+ url: "https://github.com/eternallycyf/ims-view-pc/issues",
81
+ openExternal: true
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ title: "模板及配置",
87
+ items: [
88
+ {
89
+ title: "ims-monorepo-template",
90
+ description: "monorepo模板",
91
+ url: "https://github.com/eternallycyf/ims-monorepo-template",
92
+ openExternal: true
93
+ },
94
+ {
95
+ title: "ims-template",
96
+ description: "npm模板",
97
+ url: "https://github.com/eternallycyf/ims-template",
98
+ openExternal: true
99
+ },
100
+ {
101
+ title: "ims-template-config",
102
+ description: "配置",
103
+ url: "https://github.com/eternallycyf/ims-template-config",
104
+ openExternal: true
105
+ }
106
+ ]
107
+ },
108
+ {
109
+ title: "更多",
110
+ items: [
111
+ {
112
+ title: "lrxc-cli",
113
+ url: "https://github.com/eternallycyf/lrxc-cli",
114
+ openExternal: true
115
+ }
116
+ ]
117
+ }
118
+ ];
119
+ // Annotate the CommonJS export names for ESM import in node:
120
+ 0 && (module.exports = {
121
+ footer
122
+ });
package/lib/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { footer } from './components/footer';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC"}
package/lib/index.js ADDED
@@ -0,0 +1,29 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/index.tsx
20
+ var src_exports = {};
21
+ __export(src_exports, {
22
+ footer: () => import_footer.footer
23
+ });
24
+ module.exports = __toCommonJS(src_exports);
25
+ var import_footer = require("./components/footer");
26
+ // Annotate the CommonJS export names for ESM import in node:
27
+ 0 && (module.exports = {
28
+ footer
29
+ });
package/package.json ADDED
@@ -0,0 +1,112 @@
1
+ {
2
+ "name": "ims-template-config",
3
+ "version": "1.0.0",
4
+ "description": "ims 一些配置",
5
+ "keywords": [
6
+ "config"
7
+ ],
8
+ "homepage": "https://github.com/eternallycyf/ims-template-config",
9
+ "bugs": {
10
+ "url": "https://github.com/eternallycyf/ims-template-config/issues/new"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/eternallycyf/ims-template-config.git"
15
+ },
16
+ "license": "MIT",
17
+ "author": "eternallycyf(969475322@qq.com)",
18
+ "sideEffects": [
19
+ "**/*.less"
20
+ ],
21
+ "main": "lib/index.js",
22
+ "module": "es/index.js",
23
+ "types": "lib/index.d.ts",
24
+ "files": [
25
+ "lib",
26
+ "es"
27
+ ],
28
+ "scripts": {
29
+ "build": "father build",
30
+ "build:watch": "father dev",
31
+ "changelog": "conventional-changelog -n node_modules/conventional-changelog-gitmoji-config/lib/index.js -i CHANGELOG.md -s -r 0",
32
+ "check-error": "npm run lint && npm run test && npm run test:coverage && npm run doctor",
33
+ "ci": "npm run lint && npm run type-check && npm run doctor && npm run build",
34
+ "clean": "rm -rf es lib dist coverage .dumi/tmp .eslintcache",
35
+ "dev": "dumi dev",
36
+ "docs:build": "dumi build",
37
+ "docs:preview": "yarn docs:build && cd dist && npx serve",
38
+ "doctor": "father doctor",
39
+ "lint": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
40
+ "prepare": "husky install && npm run setup",
41
+ "prepublishOnly": "npm run doctor && npm run build",
42
+ "prettier": "prettier -c --write \"**/**\"",
43
+ "release": "npm run ci && semantic-release",
44
+ "semantic-release": "semantic-release",
45
+ "setup": "dumi setup",
46
+ "start": "dumi dev",
47
+ "test": "vitest --passWithNoTests",
48
+ "test:coverage": "vitest run --coverage --passWithNoTests",
49
+ "test:update": "vitest -u",
50
+ "type-check": "tsc -p tsconfig-check.json"
51
+ },
52
+ "lint-staged": {
53
+ "*.{md,json}": [
54
+ "prettier --write --no-error-on-unmatched-pattern"
55
+ ],
56
+ "*.{js,jsx}": [
57
+ "eslint --fix",
58
+ "prettier --write"
59
+ ],
60
+ "*.{ts,tsx}": [
61
+ "eslint --fix",
62
+ "prettier --parser=typescript --write"
63
+ ]
64
+ },
65
+ "dependencies": {
66
+ "@babel/runtime": "^7.23.1"
67
+ },
68
+ "devDependencies": {
69
+ "@ant-design/icons": "^5.2.6",
70
+ "@commitlint/cli": "^17",
71
+ "@testing-library/react": "^14",
72
+ "@types/lodash": "^4.14.199",
73
+ "@types/react": "^18",
74
+ "@types/react-dom": "^18",
75
+ "@umijs/lint": "^4",
76
+ "@vitest/coverage-v8": "latest",
77
+ "antd": "^5.9.4",
78
+ "babel-plugin-antd-style": "^1.0.4",
79
+ "commitlint": "^17",
80
+ "commitlint-config-gitmoji": "^2",
81
+ "concurrently": "^7",
82
+ "conventional-changelog-gitmoji-config": "^1",
83
+ "cross-env": "^7",
84
+ "dumi": "^2",
85
+ "dumi-theme-antd-style": "^0.29.5",
86
+ "eslint": "^8",
87
+ "father": "^4",
88
+ "husky": "^8",
89
+ "jsdom": "^22",
90
+ "lint-staged": "^13",
91
+ "lodash": "^4.17.21",
92
+ "prettier": "^2",
93
+ "prettier-plugin-organize-imports": "^3",
94
+ "prettier-plugin-packagejson": "^2",
95
+ "react": "^18",
96
+ "react-dom": "^18",
97
+ "semantic-release": "^20",
98
+ "semantic-release-config-gitmoji": "^1",
99
+ "stylelint": "^15",
100
+ "typescript": "^5",
101
+ "vitest": "latest"
102
+ },
103
+ "peerDependencies": {
104
+ "@ant-design/icons": "^5.2.6",
105
+ "antd": "^5.9.4",
106
+ "lodash": "^4.17.21"
107
+ },
108
+ "publishConfig": {
109
+ "access": "public",
110
+ "registry": "https://registry.npmjs.org"
111
+ }
112
+ }