Skip to content

Commit

Permalink
Merge pull request #32 from scio-labs/workspace-improvements
Browse files Browse the repository at this point in the history
General workspace improvements
  • Loading branch information
wottpal authored Oct 15, 2023
2 parents 84bcc23 + 875e1bc commit 90825e7
Show file tree
Hide file tree
Showing 40 changed files with 2,443 additions and 5,393 deletions.
5 changes: 5 additions & 0 deletions .changeset/blue-pumpkins-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@scio-labs/use-inkathon': minor
---

Complete README overhaul and addition of CONTRIBUTING guidelines
11 changes: 11 additions & 0 deletions .changeset/config.json
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/changelog-github", { "repo": "scio-labs/use-inkathon" }],
"commit": true,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/dull-melons-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@scio-labs/use-inkathon': minor
---

Types refactorings into dedicated files
5 changes: 5 additions & 0 deletions .changeset/thirty-ravens-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@scio-labs/use-inkathon': minor
---

Setup & workspace improvements
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
package-lock.json
node_modules
dist
docs
8 changes: 4 additions & 4 deletions .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
types:
- opened
- reopened
pull_request:
types:
- opened
- reopened
# pull_request:
# types:
# - opened
# - reopened

jobs:
add-to-project:
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
pnpm-version: [8.8]
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
submodules: true

- name: Set up pnpm action ${{ matrix.pnpm-version }}
uses: pnpm/action-setup@v2
with:
version: ${{ matrix.pnpm-version }}

- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
cache: 'pnpm'
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: pnpm install --lockfile-only

- name: Create Release Pull Request
uses: changesets/action@v1
with:
title: 'chore(changeset): Bump version & Update docs'
commit: 'chore(changeset): Bump version & Update docs'
version: pnpm run changeset:version
publish: pnpm run changeset:publish
env:
GITHUB_TOKEN: ${{ secrets.CHANGESETS_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ yarn-error.log*
.pnpm-debug.log*

# local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
*.env*
!.env*.example

# vercel
.vercel
Expand Down
4 changes: 2 additions & 2 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"*.{js,ts}": ["eslint --fix", "prettier --write"],
"*.{md,json,yml,yaml}": "prettier --write"
"*.{js,jsx,ts,tsx}": ["pnpm run lint:fix"],
"*.{json,md,mdx,html,css,yml,yaml}": ["pnpm run lint:format"]
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
v18
6 changes: 4 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
LICENSE
package-lock.json
pnpm-lock.yaml
node_modules
LICENSE
dist
docs
docs
src/metadata
9 changes: 0 additions & 9 deletions .release-it.json

This file was deleted.

9 changes: 5 additions & 4 deletions .husky/pre-commit → .simple-git-hooks.js
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

module.exports = {
'pre-commit': `
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
npx lint-staged
pnpm lint-staged
`,
}
13 changes: 7 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{
"files.exclude": {
"**/node_modules/": true,
"**/package-lock.json": true
},
"search.exclude": {
"**/*.{jpg,jpeg,png,svg,webm,mp4,ttf,woff,woff2}": true,
"docs": true
},
"search.useIgnoreFiles": true,
"search.useGlobalIgnoreFiles": true,
"search.useParentIgnoreFiles": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.fixAll.eslint": true
}
},
"[javascriptreact][typescriptreact][javascript][typescript][markdown][html][css][scss][sass][json][jsonc][yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"typescript.updateImportsOnFileMove.enabled": "always",
"javascript.updateImportsOnFileMove.enabled": "always"
}
44 changes: 44 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Contributing Guidelines

[Scio Labs](https://scio.xyz) actively welcomes contributions from anyone to make this a community-driven effort. There are many ways to contribute, from writing tutorials or blog posts, improving the documentation, submitting bug reports and feature requests, or writing code.

Our ink! developer tooling initiative is made up of the following projects:

- `create-ink-app` CLI (_Coming soon_)
- [`ink!athon`](https://github.com/scio-labs/inkathon) Boilerplate
- [`useInkathon`](https://github.com/scio-labs/use-inkathon) Hooks & Utility Library
- [`zink!`](https://github.com/scio-labs/zink) Smart Contract Macros

_To ensure a smooth and efficient collaboration, please follow the guidelines below._

## Issues

- Before starting work, please check the existing issues for your planned feature or bug fix.
- If there isn't an existing issue, create one. This allows us to avoid duplicate work and discuss the implementation details upfront.
- If you want to work on an issue, please comment on it to let us know. This helps us keep track of who is working on what.

## Pull Requests

- All changes should be made through pull requests (PRs).
- Please ensure your PR is linked to the relevant issue.
- Include a clear and detailed description of the changes in your PR.
- Request a review once your PR is ready.

## Code Style

- Please follow the existing coding style.
- Make sure your changes pass the lint checks.

> [!IMPORTANT]
>
> - Please install all recommended VSCode extensions (see `.vscode/extensions.json`).
> - After installing dependencies, enable the `pre-commit` hook in your local repository via `pnpm simple-git-hooks`.
## Communication

- Be respectful and considerate in all interactions.
- If you have questions or need help, don't hesitate to ask.
- For code, feature, or bug discussions, please use the relevant GitHub issue or PR.
- To chat with us or ask questions, join our [Telegram Group](https://t.me/inkathon). 💬

Thanks for your contributions! 🙏
Loading

0 comments on commit 90825e7

Please sign in to comment.