Skip to content

Commit 1de5aae

Browse files
committed
项目基础修改
1 parent 247f034 commit 1de5aae

12 files changed

Lines changed: 9362 additions & 331 deletions

File tree

.github/workflows/main.yml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
1-
name: CI & CD
2-
on:
3-
push:
4-
branches:
5-
- main
6-
jobs:
7-
Build-and-Deploy:
8-
env:
9-
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
10-
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
11-
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: Checkout
15-
if: ${{ env.VERCEL_TOKEN && env.VERCEL_ORG_ID && env.VERCEL_PROJECT_ID }}
16-
uses: actions/checkout@v2
17-
18-
- uses: amondnet/vercel-action@v20
19-
if: ${{ env.VERCEL_TOKEN && env.VERCEL_ORG_ID && env.VERCEL_PROJECT_ID }}
20-
with:
21-
vercel-token: ${{ secrets.VERCEL_TOKEN }}
22-
github-token: ${{ secrets.GITHUB_TOKEN }}
23-
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
24-
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
25-
working-directory: ./
26-
vercel-args: --prod
1+
name: CI & CD
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
Build-and-Deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Use Node.js
13+
uses: actions/setup-node@v2-beta
14+
with:
15+
node-version: '14'
16+
- name: Install & build
17+
run: |
18+
npm install
19+
npm run export
20+
- name: Deploy
21+
uses: peaceiris/actions-gh-pages@v3
22+
with:
23+
publish_dir: ./out
24+
personal_token: ${{ secrets.GITHUB_TOKEN }}
25+
forceOrphan: true

.github/workflows/pull-request.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

README.md

Lines changed: 14 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,41 @@
1-
# Next-Bootstrap.ts
1+
# 开源市集
22

3-
[React][1] project scaffold based on [TypeScript][2], [Next.js][3] & [Bootstrap][4]. And this project bootstrapped with [`create-next-app`][5].
3+
开源市集官网项目
44

5-
[![NPM Dependency](https://david-dm.org/idea2app/next-bootstrap-ts.svg)][6]
6-
[![CI & CD](https://github.com/idea2app/next-bootstrap-ts/workflows/CI%20&%20CD/badge.svg)][7]
5+
[![CI & CD](https://github.com/Open-Source-Bazaar/Open-Source-Bazaar.github.io/workflows/CI%20&%20CD/badge.svg)][7]
76

8-
## Technology stack
7+
## 上游项目
8+
9+
- [idea2app/Next-Bootstrap-ts][1]
10+
11+
## 技术栈
912

1013
- Language: [TypeScript v4][2]
1114
- Component engine: [Nextjs v12][3]
1215
- Component suite: [Bootstrap v5][4]
1316
- Test framework: [Jest][8] + [Playwright][9]
1417
- CI / CD: GitHub [Actions][10] + [Vercel][11]
1518

16-
## Getting Started
17-
18-
First, run the development server:
19+
## 开始
1920

2021
```bash
22+
npm install
2123
npm run dev
2224
# or
25+
yarn install
2326
yarn dev
2427
```
2528

26-
Open http://localhost:3000 with your browser to see the result.
27-
28-
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
29-
30-
[API routes][12] can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in `pages/api/hello.ts`.
31-
32-
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes][12] instead of React pages.
33-
34-
## Learn More
35-
36-
To learn more about Next.js, take a look at the following resources:
37-
38-
- [Next.js Documentation][13] - learn about Next.js features and API.
39-
- [Learn Next.js][14] - an interactive Next.js tutorial.
40-
41-
You can check out [the Next.js GitHub repository][15] - your feedback and contributions are welcome!
42-
43-
## Deploy on Vercel
44-
45-
The easiest way to deploy your Next.js app is to use the [Vercel Platform][11] from the creators of Next.js.
46-
47-
Check out our [Next.js deployment documentation][16] for more details.
48-
49-
## End-to-End testing
50-
51-
### NPM script
52-
53-
```shell
54-
npm run e2e
55-
```
56-
57-
### VS Code
58-
59-
press <key>F5</key>
60-
61-
### Learn more
62-
63-
1. Runner & Assert framework: [Jest][8]
64-
2. Browser Operation library: [Playwright][9] & [its community][17]
29+
可访问 http://localhost:3000.
6530

66-
[1]: https://reactjs.org/
31+
[1]: https://github.com/idea2app/Next-Bootstrap-ts
6732
[2]: https://www.typescriptlang.org/
6833
[3]: https://nextjs.org/
6934
[4]: https://getbootstrap.com/
7035
[5]: https://github.com/vercel/next.js/tree/canary/packages/create-next-app
7136
[6]: https://david-dm.org/idea2app/next-bootstrap-ts
72-
[7]: https://github.com/idea2app/next-bootstrap-ts/actions
37+
[7]: https://github.com/Open-Source-Bazaar/Open-Source-Bazaar.github.io/actions
7338
[8]: https://jestjs.io/
7439
[9]: https://playwright.dev/
7540
[10]: https://github.com/features/actions
7641
[11]: https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme
77-
[12]: https://nextjs.org/docs/api-routes/introduction
78-
[13]: https://nextjs.org/docs
79-
[14]: https://nextjs.org/learn
80-
[15]: https://github.com/vercel/next.js/
81-
[16]: https://nextjs.org/docs/deployment
82-
[17]: https://playwright.tech/

components/Editor.tsx

Lines changed: 0 additions & 21 deletions
This file was deleted.

components/PageHead.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function PageHead({
1515
<Head>
1616
<title>
1717
{title}
18-
{title && ' - '}Next-Bootstrap.ts
18+
{title && ' - '}开源市集
1919
</title>
2020

2121
{description && <meta name="description" content={description} />}

0 commit comments

Comments
 (0)