Skip to content

Commit 2798741

Browse files
committed
chore: CREATED CORE MONOREPO
1 parent 4806b55 commit 2798741

File tree

663 files changed

+8255
-2723
lines changed

Some content is hidden

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

663 files changed

+8255
-2723
lines changed

.changeset/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@2.0.0/schema.json",
3+
"changelog": ["@changesets/changelog-github", { "repo": "gitcoinco/core" }],
4+
"baseBranch": "main",
5+
"commit": false,
6+
"fixed": [["@gitcoin/**"]],
7+
"linked": [],
8+
"access": "public",
9+
"updateInternalDependencies": "patch",
10+
"ignore": ["@repo/**"]
11+
}

.changeset/pre.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"mode": "pre",
3+
"tag": "beta",
4+
"initialVersions": {
5+
"@repo/next-app": "0.0.0",
6+
"@gitcoin/config": "0.0.0",
7+
"@gitcoin/themes": "0.0.0",
8+
"@gitcoin/types": "0.0.0",
9+
"@gitcoin/ui": "0.0.0",
10+
"@gitcoin/utils": "0.0.0"
11+
},
12+
"changesets": [
13+
"seven-shirts-destroy"
14+
]
15+
}

.changeset/seven-shirts-destroy.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@gitcoin/config": patch
3+
"@gitcoin/themes": patch
4+
"@gitcoin/types": patch
5+
"@gitcoin/ui": patch
6+
"@gitcoin/utils": patch
7+
---
8+
9+
First release of Gitcoin Core

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# - @gitcoinco/grantsstack-engineering

.github/workflows/chromatic.yml

-80
This file was deleted.

.github/workflows/release.yml

+28-49
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,50 @@
1-
name: release
1+
name: Release
22

33
on:
44
push:
55
branches:
66
- main
7-
workflow_dispatch:
8-
inputs:
9-
version:
10-
description: "Version to tag (e.g., 3.0.3)"
11-
required: true
12-
type: string
137

14-
permissions:
15-
contents: read
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
169

1710
jobs:
1811
release:
1912
name: Release
2013
runs-on: ubuntu-latest
2114
permissions:
22-
contents: write # to be able to publish a GitHub release
23-
issues: write # to be able to comment on released issues
24-
pull-requests: write # to be able to comment on released pull requests
25-
id-token: write # to enable use of OIDC for npm provenance
26-
15+
contents: write # to create release (changesets/action)
16+
issues: write # to post issue comments (changesets/action)
17+
pull-requests: write # to create pull request (changesets/action)
2718
steps:
28-
- uses: actions/checkout@v4
29-
with:
30-
fetch-depth: 0
31-
32-
- name: Setup Git
33-
if: github.event_name == 'workflow_dispatch'
34-
run: |
35-
git config --global user.name 'GitHub Action'
36-
git config --global user.email 'action@github.com'
37-
git tag -a v${{ inputs.version }} -m "v${{ inputs.version }}"
38-
git push origin v${{ inputs.version }}
19+
- name: Checkout Repo
20+
uses: actions/checkout@v4
3921

40-
- name: Install pnpm
41-
uses: pnpm/action-setup@v4
22+
- name: Setup pnpm 8
23+
uses: pnpm/action-setup@v3
4224
with:
43-
version: 9
44-
run_install: false
25+
version: 8
4526

46-
- uses: actions/setup-node@v4
27+
- name: Setup Node.js 20.x
28+
uses: actions/setup-node@v4
4729
with:
48-
node-version-file: ".nvmrc"
49-
cache: "pnpm"
30+
node-version: 20.x
5031

51-
- name: Install dependencies
52-
run: pnpm install --frozen-lockfile # Install dependencies with lockfile's versions to ensure consistency
32+
- name: Install Dependencies
33+
run: pnpm i
5334

54-
- name: Cache Build
55-
id: cache-build
56-
uses: actions/cache@v4
35+
- name: Create Release Pull Request or Publish to npm
36+
id: changesets
37+
uses: changesets/action@v1
5738
with:
58-
path: dist
59-
key: ${{ runner.os }}-build-${{ hashFiles('**/*.ts', '**/*.tsx', '**/*.mdx') }} # Cache key based on OS and file hashes
60-
restore-keys: |
61-
${{ runner.os }}-build-
62-
63-
- name: Build
64-
if: steps.cache-build.outputs.cache-hit != 'true'
65-
run: pnpm build
66-
67-
- name: Semantic Release
68-
run: pnpx semantic-release
39+
publish: pnpm release
40+
version: pnpm version-packages
41+
commit: "ci: new release"
42+
title: "ci: new release candidate"
6943
env:
70-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7145
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
46+
47+
# - name: Send a Slack notification if a publish happens
48+
# if: steps.changesets.outputs.published == 'true'
49+
# # You can do something when a publish happens.
50+
# run: my-slack-bot send-notification --message "A new version of ${GITHUB_REPOSITORY} was published!"

.github/workflows/storybook-tests-on-push.yml

-68
This file was deleted.

.gitignore

+9-23
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,14 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
pnpm-debug.log*
8-
lerna-debug.log*
9-
1+
.DS_Store
102
node_modules
3+
.turbo
4+
*.log
5+
.next
116
dist
127
dist-ssr
138
*.local
14-
15-
# Editor directories and files
16-
.vscode/*
17-
!.vscode/extensions.json
18-
.idea
19-
.DS_Store
20-
*.suo
21-
*.ntvs*
22-
*.njsproj
23-
*.sln
24-
*.sw?
25-
269
.env
27-
storybook-static
28-
mockServiceWorker.js
10+
.cache
11+
server/dist
12+
public/dist
13+
.turbo
14+
storybook-static/

.husky/commit-msg

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# npx --no -- commitlint --edit $1

.husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pnpm exec lint-staged
1+
pnpm lint-staged

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
auto-install-peers = true
12
package-manager=pnpm@9

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
20

.prettierignore

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
node_modules
21
dist
2+
node_modules
3+
coverage
4+
.next
5+
*.hbs
6+
generated
37
pnpm-lock.yaml
48
mockServiceWorker.js
59
storybook-static

.prettierrc

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
11
{
22
"useTabs": false,
3+
"tabWidth": 2,
4+
"bracketSpacing": true,
5+
"jsxSingleQuote": false,
36
"singleQuote": false,
47
"trailingComma": "all",
58
"semi": true,
69
"printWidth": 100,
10+
"proseWrap": "always",
711
"plugins": ["@trivago/prettier-plugin-sort-imports", "prettier-plugin-tailwindcss"],
812
"tailwindConfig": "./tailwind.config.ts",
913
"tailwindFunctions": ["tw", "tv", "cn", "clsx"],
1014
"tailwindAttributes": ["tw", "tv", "cn", "clsx"],
1115
"importOrder": [
1216
"^react(.*)?$",
1317
"^@react(.*)?$",
18+
"^next(.*)?$",
19+
"^@next(.*)?$",
1420
"^vite(.*)?$",
1521
"^@vite(.*)?$",
1622
"<THIRD_PARTY_MODULES>",
1723
"^@/(.*)$",
1824
"^~(.*)$",
1925
"^[./]"
2026
],
21-
"importOrderSeparation": true
27+
"importOrderSeparation": false,
28+
"importOrderSortSpecifiers": true
2229
}

0 commit comments

Comments
 (0)