Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ImBIOS committed Apr 30, 2023
0 parents commit 1701993
Show file tree
Hide file tree
Showing 477 changed files with 26,247 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
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)
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/config@2.3.0/schema.json",
"changelog": "@changesets/changelog-github",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
10 changes: 10 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
root: true,
// This tells ESLint to load the config from the package `eslint-config-custom`
extends: ["custom"],
settings: {
next: {
rootDir: ["examples/*/"],
},
},
};
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
40 changes: 40 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"branchPrefix": "renovate/",
"baseBranches": ["master"],
"assigneesFromCodeOwners": true,
"packageRules": [
{
"groupName": "lint",
"matchPackageNames": [
"@next/eslint-plugin-next",
"@typescript-eslint/eslint-plugin",
"@typescript-eslint/parser",
"eslint",
"eslint-config-prettier",
"eslint-plugin-import",
"eslint-plugin-react",
"eslint-plugin-react-hooks",
"eslint-plugin-tailwindcss",
"eslint-plugin-typescript-sort-keys",
"eslint-plugin-unicorn",
"prettier",
"prettier-plugin-tailwindcss"
]
},
{
"matchPackagePatterns": ["*"],
"matchUpdateTypes": ["minor", "patch"],
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch",
"automerge": true,
"labels": ["dependencies"]
},
{
"matchPackagePatterns": ["*"],
"matchUpdateTypes": ["major"],
"labels": ["dependencies", "breaking"]
}
]
}
35 changes: 35 additions & 0 deletions .github/workflows/build-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build Examples

on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]

jobs:
build:
name: Build Example
timeout-minutes: 15
runs-on: ubuntu-latest
# TODO: Setup Environment Variables in Repository Settings
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- name: 📂 Checkout
uses: actions/checkout@v3
- name: 📦 Install PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: 📦 Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: .node-version
cache: "pnpm"
- name: 📦 Install Dependencies
run: pnpm install
- name: 📦 Build Example
run: pnpm run build
# - name: 🧪 Test Example
# run: pnpm run test
59 changes: 59 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Node.js Package

on:
release:
types: [created]

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

jobs:
build:
name: Build
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: 📂 Checkout
uses: actions/checkout@v3
- name: 📦 Install PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: 📦 Install Node.js
uses: actions/setup-node@v3
with:
node-version-file: .node-version
cache: "pnpm"
- name: 📦 Install Dependencies
run: pnpm install
# - run: pnpm test

publish-npm:
name: Publish to NPM
timeout-minutes: 15
needs: build
runs-on: ubuntu-latest
steps:
- name: 📂 Checkout
uses: actions/checkout@v3
- name: 📦 Install PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: 📦 Install Node.js
uses: actions/setup-node@v3
with:
cache: "pnpm"
node-version-file: .node-version
registry-url: https://registry.npmjs.org/
scope: "@imbios"
- name: 📦 Install Dependencies
run: pnpm install
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called publish-packages which does a build for your packages and calls changeset publish
publish: pnpm publish-packages
env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{secrets.NPM_AUTOMATION_TOKEN}}
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
node_modules/
yarn-error.log
.next/
.env
.env.*local

**/public/precache.*.*.js
**/public/sw.js
**/public/workbox-*.js
**/public/worker-*.js
**/public/fallback-*.js
**/public/precache.*.*.js.map
**/public/sw.js.map
**/public/workbox-*.js.map
**/public/worker-*.js.map
**/public/fallback-*.js

examples/**/yarn.lock
examples/**/package-lock.json
examples/**/pnpm-lock.yaml

.turbo
.dccache
2 changes: 2 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tasks:
- init: pnpm install
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm commitlint --edit
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm lint-staged
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
11 changes: 11 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node_modules/
package-lock.json
yarn.lock
yarn-error.log
examples/
.gitignore
.gitattributes
.github/
CHANGELOG.md
LICENSE
docs/
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
24 changes: 24 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.next/
.turbo/
dist/
node_modules/
.changeset/
coverage/
dist/
storybook-static/
pnpm-lock.yaml
yarn-error.log

**/public/precache.*.*.js
**/public/sw.js
**/public/workbox-*.js
**/public/worker-*.js
**/public/fallback-*.js
**/public/precache.*.*.js.map
**/public/sw.js.map
**/public/workbox-*.js.map
**/public/worker-*.js.map
**/public/fallback-*.js

.turbo
.dccache
3 changes: 3 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
...require("config-prettier"),
};
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"nhoizey.gremlins",
"wix.vscode-import-cost",
"esbenp.prettier-vscode",
"unifiedjs.vscode-mdx"
]
}
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
// disable when disturbing styling on save with className sorter
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true,
"source.organizeImports": true
}
}
1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @ImBIOS
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
MIT License

Copyright (c) 2019 ShadowWalker w@weiw.io <https://weiw.io>
Copyright (c) 2023 Imamuzzaki Abu Salam imamuzzaki@gmail.com <https://imam.dev>

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, distribute, 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.
Loading

0 comments on commit 1701993

Please sign in to comment.