Skip to content

Commit 0874674

Browse files
authored
chore(migrate): migrate from react to next (#30)
2 parents 24bd30f + fa5f807 commit 0874674

File tree

117 files changed

+23221
-13997
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+23221
-13997
lines changed

.eslintrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": ["next/core-web-vitals", "next", "prettier"],
3+
"rules": {
4+
"react/no-unescaped-entities": "off",
5+
"react/no-children-prop": "off"
6+
}
7+
}

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Semantic Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Install Dependencies
12+
run: yarn install
13+
- name: Semantic Release
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
run: npx semantic-release

.gitignore

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,32 @@
1-
# Logs
2-
logs
3-
*.log
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
423
npm-debug.log*
524
yarn-debug.log*
625
yarn-error.log*
7-
pnpm-debug.log*
8-
lerna-debug.log*
9-
10-
node_modules
11-
dist
12-
build
13-
dist-ssr
14-
*.local
15-
16-
# Editor directories and files
17-
.vscode/*
18-
!.vscode/extensions.json
19-
.idea
20-
.DS_Store
21-
*.suo
22-
*.ntvs*
23-
*.njsproj
24-
*.sln
25-
*.sw?
26-
27-
.env
28-
.env.*
26+
.pnpm-debug.log*
27+
28+
# local env files
29+
.env*.local
30+
31+
# vercel
32+
.vercel

.gitpod.yml

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

.npmrc

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

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ out/
33
dist/
44
test-fixtures/
55
node_modules/
6+
.next/
7+
.github/
8+
package-lock.json
9+
public/collections/stories/

.prettierrc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"tabWidth": 2,
3-
"useTabs": false,
4-
"printWidth": 90
2+
"singleQuote": true,
3+
"tabWidth": 2,
4+
"semi": true,
5+
"useTabs": true
56
}

CODE_OF_CONDUCT.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# OUR SOLID CODE OF CONDUCT
2+
3+
Yo, welcome to the Street Community Programmer! We believe in creating an inclusive and respectful community where everyone feels comfortable and heard. To make sure we're all on the same page, we have a few guidelines we ask everyone to follow. Check it out:
4+
5+
# The Code
6+
1. Respect each other.
7+
2. Keep it clean.
8+
3. Be yourself.
9+
4. Stay open-minded.
10+
11+
## The Consequences
12+
If you violate any of these guidelines, we may take action, including but not limited to:
13+
- Removing your contributions from the community
14+
- Blocking you from the community
15+
- Not inviting you to our next party (just kidding, we'll still invite you)
16+
17+
## The Callout
18+
If you witness someone violating the code of conduct, please let us know. You can reach out to any of our moderators or shoot us an email at [missing-email](meh).
19+

CONTRIBUTING.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# THE CULTURE AND GUIDELINES
2+
3+
Hey there, fellow Metaphor creators! We're stoked that you want to join our team of Punks, Freestylers, and Software Freestyle Engineers. Let's rock this joint with some awesome contributions!
4+
5+
## How to join the fun
6+
1. First off, fork the repository to your own account, champ.
7+
2. Clone that repo to your local machine like a boss.
8+
3. Now create a new branch, name it something cool.
9+
4. Start making those changes and commit them to your branch like a pro ([with this mantra](CONVENTIONAL_COMMIT.md)).
10+
5. Push your branch to your forked repository and let the magic happen.
11+
6. Create a pull request from your branch to the main repository.
12+
7. Sit tight and wait for our team to give you the thumbs up or give you some sweet feedback.
13+
8. Once you get the green light, your changes will be merged into the main repository. Congratulations, you're a Metaphor master now!
14+
15+
## How you can contribute
16+
17+
Don't matter if you're an expert or just starting out, we welcome all kinds of contributions. Here are some ideas to get you started:
18+
19+
- Create some fresh code snippets or metaphors that will blow our minds!
20+
- Jazz up existing code snippets or metaphors with your own unique flair.
21+
- Join our community forums and discussions, and get involved in the fun.
22+
- Help us make our documentation and resources even better.
23+
- Share your skills and expertise with our community and show us what you've got!
24+
25+
## Guidelines for contributions
26+
27+
To keep our community cool and funky, please stick to these guidelines when you're making contributions:
28+
29+
- Respect your fellow Metaphor creators and be kind to each other.
30+
- Follow our code of conduct at all times, we don't want no trouble here.
31+
- Only submit your original creations, don't steal other people's stuff.
32+
- Make sure your contributions fit in with our community values of creativity, diversity, and innovation.
33+
- Stay focused and relevant to our mission of using code to make the world a better place.
34+
35+
Thanks for your interest in contributing to Metaphore (SCP)! We can't wait to see your sick skills and mind-blowing contributions. Let's do this!

CONVENTIONAL_COMMIT.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Conventional Commits
2+
3+
Conventional Commits is a specification for adding human and machine-readable meaning to commit messages. It provides a consistent way to structure commit messages, making them more informative and easier to understand. By following the Conventional Commits specification, it becomes easier to automate changelog generation, versioning, and releases.
4+
5+
## Format
6+
7+
A Conventional Commit message consists of a header, an optional body, and an optional footer. The header has a special format that includes a type, a scope, and a subject. The body provides additional information about the change, and the footer provides a place to add metadata about the commit, such as issue tracking numbers.
8+
9+
The format of a header is as follows:
10+
11+
```bash
12+
<type>[optional scope]: <subject>
13+
```
14+
15+
### Type
16+
17+
The type field is required and describes the kind of change that the commit introduces. Examples of types include:
18+
19+
- feat: a new feature
20+
- fix: a bug fix
21+
- docs: documentation changes
22+
- style: changes that do not affect the meaning of the code, such as formatting
23+
- refactor: code changes that neither fix a bug nor add a feature
24+
- test: adding missing tests or correcting existing tests
25+
- chore: changes to the build process or auxiliary tools
26+
27+
### Scope
28+
29+
The scope field is optional and describes the part of the codebase that is affected by the change.
30+
31+
### Subject
32+
33+
The subject field is required and provides a brief summary of the change.
34+
35+
**Examples**
36+
37+
Here are some examples of Conventional Commit messages:
38+
39+
```bash
40+
feat(users): add user registration endpoint
41+
```
42+
43+
```bash
44+
fix(authentication): handle invalid credentials error
45+
```
46+
47+
```bash
48+
docs(readme): add example usage
49+
```
50+
51+
**Benefits**
52+
53+
Using Conventional Commits provides a number of benefits:
54+
55+
- Provides a consistent way to structure commit messages across a team or organization
56+
- Makes it easier to generate changelogs, versioning, and releases
57+
- Provides more information about changes, making it easier to understand the purpose of a commit
58+
- Makes it easier to automate processes such as generating release notes or updating documentation
59+
60+
**Conclusion**
61+
62+
By using Conventional Commits, you can make your commits more informative and easier to understand, helping your team and organization work more efficiently.

0 commit comments

Comments
 (0)