Skip to content

Commit 4379792

Browse files
committed
Initial commit
0 parents  commit 4379792

30 files changed

+649
-0
lines changed

.github/FUNDING.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# These are supported funding model platforms
2+
3+
github: [jaywcjlove]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: #npm/kkt
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
custom: https://jaywcjlove.github.io/sponsor.html

.github/workflows/ci.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: Build & Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
# env:
8+
# SKIP_PREFLIGHT_CHECK: true
9+
jobs:
10+
windows:
11+
runs-on: windows-2019
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v2
15+
with:
16+
node-version: 14
17+
18+
- name: Look Changelog
19+
uses: jaywcjlove/[email protected]
20+
with:
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
filter-author: (小弟调调™|Renovate Bot|renovate-bot)
23+
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
24+
25+
- run: npm install --unsafe-perm
26+
- run: npm run hoist
27+
- run: npm run build
28+
- run: npm run coverage
29+
- run: npm run doc
30+
31+
build:
32+
runs-on: ubuntu-18.04
33+
steps:
34+
- uses: actions/checkout@v2
35+
- uses: actions/setup-node@v2
36+
with:
37+
node-version: 14
38+
39+
- name: Look Changelog
40+
uses: jaywcjlove/[email protected]
41+
with:
42+
token: ${{ secrets.GITHUB_TOKEN }}
43+
filter-author: (小弟调调™|Renovate Bot|renovate-bot)
44+
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
45+
46+
- run: npm install --unsafe-perm
47+
- run: npm run hoist
48+
- run: npm run build
49+
- run: npm run coverage
50+
- run: npm run doc
51+
52+
- name: Deploy
53+
uses: peaceiris/actions-gh-pages@v3
54+
with:
55+
github_token: ${{ secrets.GITHUB_TOKEN }}
56+
publish_dir: ./website/build
57+
58+
- name: Is a tag created auto?
59+
id: create_tag
60+
uses: jaywcjlove/[email protected]
61+
with:
62+
token: ${{ secrets.GITHUB_TOKEN }}
63+
package-path: ./core/package.json
64+
65+
- name: Generate Changelog
66+
id: changelog
67+
uses: jaywcjlove/[email protected]
68+
if: steps.create_tag.outputs.successful
69+
with:
70+
token: ${{ secrets.GITHUB_TOKEN }}
71+
head-ref: ${{ steps.create_tag.outputs.version }}
72+
filter-author: (小弟调调™|Renovate Bot|renovate-bot)
73+
filter: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}'
74+
75+
- name: Create Release
76+
uses: ncipollo/release-action@v1
77+
if: steps.create_tag.outputs.successful
78+
with:
79+
token: ${{ secrets.GITHUB_TOKEN }}
80+
name: ${{ steps.changelog.outputs.tag }}
81+
tag: ${{ steps.changelog.outputs.tag }}
82+
body: |
83+
84+
${{ steps.changelog.outputs.compareurl }}
85+
86+
${{ steps.changelog.outputs.changelog }}
87+
88+
# - run: git status
89+
# - run: npm install @jsdevtools/npm-publish -g
90+
# - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./core/package.json
91+

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
node_modules
2+
dist
3+
build
4+
lib
5+
esm
6+
cjs
7+
8+
dist.css
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn.lock
13+
yarn-debug.log*
14+
yarn-error.log*
15+
pnpm-debug.log*
16+
package-lock.json
17+
18+
# local env files
19+
.env.local
20+
.env.*.local
21+
22+
# Editor directories and files
23+
.DS_Store
24+
.idea
25+
.vscode
26+
*.suo
27+
*.ntvs*
28+
*.njsproj
29+
*.sln
30+
*.sw?

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install lint-staged

.prettierignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
**/*.md
2+
**/*.svg
3+
**/*.ejs
4+
**/*.yml
5+
package.json
6+
node_modules
7+
dist
8+
build
9+
lib
10+
esm
11+
cjs
12+
test

.prettierrc

Whitespace-only changes.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 uiw
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.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
core/README.md

core/README.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
react-monorepo-template
2+
===
3+
4+
Simple [React](https://github.com/facebook/react) package development project example template.
5+
6+
## Directory Structure
7+
8+
```bash
9+
├── LICENSE
10+
├── README.md -> core/README.md
11+
├── core # 📦 package @uiw/react-monorepo-template
12+
│ ├── README.md
13+
│ ├── cjs # 🔄 Compiled cjs directory
14+
│ ├── esm # 🔄 Compiled esm directory
15+
│ ├── src # Package source directory
16+
│ ├── dist.css # 🔄 compile less to css
17+
│ ├── package.json # name => @uiw/react-monorepo-template
18+
│ └── tsconfig.json
19+
├── lerna.json
20+
├── package.json
21+
├── tsconfig.json
22+
├── test # ⛑ test case
23+
└── website # 🐝 Package example test, website
24+
├── README.md
25+
├── package.json
26+
├── public
27+
├── src
28+
└── tsconfig.json
29+
```
30+
31+
## Development
32+
33+
1. Install
34+
35+
```bash
36+
npm install
37+
```
38+
39+
2. Dependencies in the installation package and example
40+
41+
```bash
42+
npm run hoist
43+
```
44+
45+
3. To develop, run the self-reloading build:
46+
47+
```bash
48+
npm run build # Compile packages 📦 @uiw/react-monorepo-template
49+
npm run watch # Real-time compilation 📦 @uiw/react-monorepo-template
50+
```
51+
52+
4. Run Document Website Environment:
53+
54+
```bash
55+
npm run start
56+
```
57+
58+
5. To contribute, please fork repos, add your patch and tests for it (in the `test/` folder) and submit a pull request.
59+
60+
```
61+
npm run test
62+
```
63+
64+
## License
65+
66+
Licensed under the MIT License.

core/package.json

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"name": "@uiw/react-monorepo-template",
3+
"version": "1.0.0",
4+
"description": "React Monorepo Template.",
5+
"author": "Kenny Wong <[email protected]>",
6+
"homepage": "https://uiwjs.github.io/react-monorepo-template",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/uiwjs/react-monorepo-template.git"
10+
},
11+
"license": "MIT",
12+
"main": "./cjs/index.js",
13+
"module": "./esm/index.js",
14+
"files": [
15+
"dist.css",
16+
"cjs",
17+
"esm",
18+
"src"
19+
],
20+
"publishConfig": {
21+
"access": "public"
22+
},
23+
"keywords": [
24+
"react-monorepo-template",
25+
"react.js",
26+
"react",
27+
"template",
28+
"monorepo",
29+
"monorepo-template",
30+
"uiw",
31+
"uiw-react",
32+
"react-component",
33+
"component",
34+
"components",
35+
"ui",
36+
"css",
37+
"uikit",
38+
"react-ui",
39+
"framework"
40+
],
41+
"peerDependencies": {
42+
"react": ">=16.9.0",
43+
"react-dom": ">=16.9.0"
44+
},
45+
"dependencies": {},
46+
"devDependencies": {
47+
"@babel/runtime": "7.16.7",
48+
"@types/react": "17.0.38",
49+
"@types/react-dom": "17.0.11",
50+
"react": "17.0.2",
51+
"react-dom": "17.0.2"
52+
}
53+
}

0 commit comments

Comments
 (0)