generated from owlprotocol/starter-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 670ea54
Showing
34 changed files
with
8,010 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "restricted", | ||
"baseBranch": "develop", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
ignores: [ | ||
"@esbuild-plugins/node-resolve", | ||
"@typescript-eslint/eslint-plugin", | ||
"@typescript-eslint/parser", | ||
"esbuild", | ||
"eslint", | ||
"eslint-config-prettier", | ||
"eslint-import-resolver-typescript", | ||
"eslint-plugin-import", | ||
"eslint-plugin-prettier", | ||
"eslint-plugin-node", | ||
"eslint-plugin-react", | ||
"eslint-plugin-react-hooks", | ||
"eslint-plugin-react-refresh", | ||
"glob", | ||
"dotenv", | ||
"npm-run-all" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
name: All | ||
|
||
on: | ||
# Run on all changes to these branches | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
# Run only if PR exists | ||
pull_request: | ||
types: [assigned, opened, synchronize, reopened] | ||
|
||
env: | ||
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | ||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | ||
PNPM_VERSION: 9.0.5 | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Git Checkout | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
# Foundry Setup (anvil) | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
# Node Setup | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18.19" | ||
# Java Setup | ||
# - uses: actions/setup-java@v3 | ||
# with: | ||
# distribution: "oracle" | ||
# java-version: "17" | ||
# Firebase Binary Cache | ||
# - name: Get Firebase Library Versions For Binary Caching | ||
# if: ${{ !env.ACT }} | ||
# id: cache-settings | ||
# run: | | ||
# echo "::set-output name=firebase-tools::$(npm list -s --depth=0 | grep firebase-tools | tail -n 1 | sed 's/.*@//g')" | ||
# - name: Cache Firebase Emulator Binaries | ||
# if: ${{ !env.ACT }} | ||
# uses: actions/cache@v3 | ||
# with: | ||
# path: ~/.cache/firebase/emulators | ||
# key: ${{ runner.os }}-firebase-${{ steps.cache-settings.outputs.firebase-tools }} | ||
# PNPM Setup | ||
- uses: pnpm/[email protected] | ||
name: Install pnpm | ||
id: pnpm-install | ||
with: | ||
version: ${{env.PNPM_VERSION}} | ||
run_install: false | ||
# Get pnpm store directory | ||
- name: Set pnpm store directory | ||
if: ${{ !env.ACT }} | ||
id: pnpm-cache | ||
run: | | ||
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" | ||
# Setup pnpm cache | ||
- uses: actions/cache@v3 | ||
if: ${{ !env.ACT }} | ||
name: Setup pnpm cache | ||
with: | ||
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | ||
key: ${{ runner.os }}-pnpm-${{env.PNPM_VERSION}}-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-${{env.PNPM_VERSION}}-store- | ||
# Install | ||
- run: pnpm i | ||
name: Install dependencies | ||
# Dependencies | ||
- run: pnpm run depcheck | ||
name: Dependency Check | ||
- run: pnpm run syncpack | ||
name: Dependency Synced Versioning Check | ||
- run: pnpm run madge | ||
name: Circular dependency check | ||
# Build | ||
- run: pnpm run build | ||
name: Build All | ||
# Lint | ||
- run: pnpm run lint | ||
name: Lint All | ||
# Test | ||
- run: pnpm run test | ||
name: Test All |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
# Solidity VSCode extension binary output | ||
bin/ | ||
cache/ | ||
|
||
# dependencies | ||
node_modules | ||
.pnp | ||
.pnp.js | ||
|
||
# testing | ||
coverage | ||
|
||
# build outputs | ||
.next/ | ||
out/ | ||
build | ||
.build | ||
.esbuild | ||
dist | ||
dist-ssr | ||
lib | ||
.serverless | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
.idea | ||
.git.* | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
.pnpm-debug.log* | ||
logs | ||
*.log | ||
temp.* | ||
**/temp | ||
|
||
# local env files | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
.env | ||
# dotenv vault | ||
!.env.vault | ||
|
||
# turbo | ||
.turbo | ||
|
||
# local | ||
*.local | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
hoist=false | ||
link-workspace-packages=deep | ||
|
||
# Build | ||
public-hoist-pattern[]='@esbuild-plugins/*' | ||
public-hoist-pattern[]='esbuild' | ||
public-hoist-pattern[]='glob' | ||
|
||
# Lint | ||
public-hoist-pattern[]='*eslint*' | ||
public-hoist-pattern[]='*prettier*' | ||
|
||
# React | ||
public-hoist-pattern[]='react' | ||
public-hoist-pattern[]='react-dom' | ||
public-hoist-pattern[]='@types/react' | ||
public-hoist-pattern[]='@types/react-dom' | ||
public-hoist-pattern[]='lit-html' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"versionGroups": [ | ||
{ | ||
"dependencies": [], | ||
"isIgnored": true | ||
}, | ||
{ | ||
"label": "Use workspace protocol when developing local packages", | ||
"dependencies": [ | ||
"$LOCAL" | ||
], | ||
"dependencyTypes": [ | ||
"prod", | ||
"dev" | ||
], | ||
"pinVersion": "workspace:*" | ||
} | ||
], | ||
"dependencyTypes": [ | ||
"!overrides" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", //ESLint | ||
//"rvest.vs-code-prettier-eslint", //Prettier (conflicts with ESLint?) | ||
"editorconfig.editorconfig", //editorconfig | ||
"dotenv.dotenv-vscode", //dotenv | ||
"eamodio.gitlens", //Git Lens | ||
"ecmel.vscode-html-css", //HTML/CSS | ||
"jock.svg", //SVG Support | ||
"wix.glean", //React Refactoring | ||
"shd101wyy.markdown-preview-enhanced", //Markdown Preview | ||
"ms-vsliveshare.vsliveshare", //Liveshare | ||
"JuanBlanco.solidity", //Solidity | ||
"wayou.vscode-todo-highlight", //Highlight TODOs | ||
"vscodevim.vim", //Vim Emulation | ||
"antfu.vite", //Vite extension | ||
"redhat.vscode-yaml", //Yaml support | ||
"ChFlick.firecode", //Firestore security rules | ||
"stivo.tailwind-fold", //Tailwind fold | ||
"bradlc.vscode-tailwindcss", //Tailwind syntax | ||
"mattpocock.ts-error-translator", //Typescript error translator | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "always" | ||
}, | ||
"editor.formatOnPaste": false, // required | ||
"editor.formatOnType": false, // required | ||
"editor.formatOnSave": true, | ||
"editor.formatOnSaveMode": "file", | ||
"files.watcherExclude": { | ||
"**/dist/**": true, | ||
"**/dist-ssr/**": true, | ||
"**/build/**": true, | ||
"**/lib/**": true, | ||
"**/storybook-static/**": true, | ||
"**/node_modules/**": true, | ||
"**/coverage/**": true, | ||
".turbo": true, | ||
"packages-archived/**": true, | ||
"starters/**": true | ||
}, | ||
"search.exclude": { | ||
"**/dist/**": true, | ||
"**/dist-ssr/**": true, | ||
"**/build/**": true, | ||
"**/lib/**": true, | ||
"**/storybook-static/**": true, | ||
"**/node_modules/**": true, | ||
"**/coverage/**": true, | ||
".turbo": true, | ||
"packages-archived/**": true, | ||
"starters/**": false, | ||
}, | ||
"search.followSymlinks": false, | ||
"[json]": { | ||
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint" | ||
}, | ||
"[javascript]": { | ||
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint" | ||
}, | ||
"[solidity]": { | ||
"editor.defaultFormatter": "JuanBlanco.solidity" | ||
}, | ||
"[handlebars]": { | ||
"editor.formatOnSave": false | ||
}, | ||
"[markdown]": { | ||
"editor.formatOnSave": false, | ||
"editor.unicodeHighlight.ambiguousCharacters": false, | ||
"editor.unicodeHighlight.invisibleCharacters": false, | ||
"diffEditor.ignoreTrimWhitespace": false, | ||
"editor.wordWrap": "on", | ||
"editor.quickSuggestions": { | ||
"comments": "off", | ||
"strings": "off", | ||
"other": "off" | ||
} | ||
}, | ||
"solidity.remappings": [ | ||
"ds-test/=packages/contracts/packages/owlprotocol-contracts/lib/forge-std/lib/ds-test/src/", | ||
"forge-std/=packages/contracts/packages/owlprotocol-contracts/lib/forge-std/src/", | ||
"contracts/=packages/contracts/packages/owlprotocol-contracts/contracts/" | ||
], | ||
"typescript.updateImportsOnFileMove.enabled": "always", | ||
"javascript.updateImportsOnFileMove.enabled": "always", | ||
"typescript.tsdk": "./node_modules/typescript/lib", | ||
"git.ignoreLimitWarning": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright 2024 Owl Protocol | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, libribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Starter Monorepo | ||
|
||
Starter monorepo designed to work with pnpm and turbo repo. |
Oops, something went wrong.