-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from MrSquaare/initial-version
Initial version
- Loading branch information
Showing
83 changed files
with
20,174 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,14 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": [ | ||
"@changesets/changelog-github", | ||
{ "repo": "MrSquaare/sandwich-ui" } | ||
], | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"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,7 @@ | ||
--- | ||
"@mrsquaare/sandwich-ui": minor | ||
"@sandwich-ui/storybook": minor | ||
"@sandwich-ui/docs": minor | ||
--- | ||
|
||
Initial version |
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 @@ | ||
{ | ||
"image": "mcr.microsoft.com/devcontainers/universal:2", | ||
"features": { | ||
"ghcr.io/devcontainers/features/node:1": {}, | ||
"ghcr.io/devcontainers-contrib/features/act:1": {} | ||
} | ||
} |
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,35 @@ | ||
module.exports = { | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:prettier/recommended", | ||
"plugin:import/recommended", | ||
"plugin:import/typescript", | ||
], | ||
env: { es2020: true }, | ||
parser: "@typescript-eslint/parser", | ||
rules: { | ||
"import/no-unresolved": "off", | ||
"import/order": [ | ||
"warn", | ||
{ | ||
alphabetize: { order: "asc", caseInsensitive: true }, | ||
"newlines-between": "always", | ||
}, | ||
], | ||
}, | ||
ignorePatterns: ["node_modules", "dist"], | ||
overrides: [ | ||
{ | ||
files: ["{.*rc,*.config}.{js,cjs,mjs,ts}"], | ||
env: { | ||
node: true, | ||
}, | ||
rules: { | ||
"@typescript-eslint/no-var-requires": "off", | ||
"import/no-commonjs": "off", | ||
"import/no-nodejs-modules": "off", | ||
}, | ||
}, | ||
], | ||
}; |
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,17 @@ | ||
name: "Setup environment" | ||
description: "Setup environment" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: "pnpm" | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: pnpm install |
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,79 @@ | ||
labels: | ||
- name: "bug" | ||
color: "#C3362B" | ||
description: "" | ||
- name: "build" | ||
color: "#CCCCCC" | ||
description: "" | ||
- name: "chore" | ||
color: "#444444" | ||
description: "" | ||
- name: "dependencies" | ||
color: "#0366D6" | ||
description: "" | ||
- name: "discussion" | ||
color: "#673AB7" | ||
description: "" | ||
- name: "documentation" | ||
color: "#795548" | ||
description: "" | ||
- name: "duplicate" | ||
color: "#B1B1B1" | ||
description: "" | ||
- name: "feature" | ||
color: "#03A9F4" | ||
description: "" | ||
- name: "good first issue" | ||
color: "#7057FF" | ||
description: "" | ||
- name: "improvement" | ||
color: "#FFCD39" | ||
description: "" | ||
- name: "question" | ||
color: "#9C27B0" | ||
description: "" | ||
- name: "refactor" | ||
color: "#33C9DD" | ||
description: "" | ||
- name: "style" | ||
color: "#33ABA0" | ||
description: "" | ||
- name: "test" | ||
color: "#70BF73" | ||
description: "" | ||
- name: "priority: low" | ||
color: "#4CAF50" | ||
description: "" | ||
- name: "priority: medium" | ||
color: "#FFC107" | ||
description: "" | ||
- name: "priority: high" | ||
color: "#C3362B" | ||
description: "" | ||
- name: "priority: critical" | ||
color: "#000000" | ||
description: "" | ||
- name: "status: pending" | ||
color: "#FFE69C" | ||
description: "" | ||
- name: "status: in progress" | ||
color: "#FFD699" | ||
description: "" | ||
- name: "status: done" | ||
color: "#A6D5FA" | ||
description: "" | ||
- name: "status: abandoned" | ||
color: "#C2B0E2" | ||
description: "" | ||
- name: "status: accepted" | ||
color: "#B7DFB9" | ||
description: "" | ||
- name: "status: refused" | ||
color: "#FFBCA7" | ||
description: "" | ||
- name: "status: review needed" | ||
color: "#99E4EE" | ||
description: "" | ||
- name: "status: revision needed" | ||
color: "#99D5CF" | ||
description: "" |
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,77 @@ | ||
name: Docs Pull Request | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- ".github/workflows/docs-pull-request.yml" | ||
- "docs/**" | ||
- "docs.Dockerfile" | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
name: Setup | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup environment | ||
uses: ./.github/actions/setup-env | ||
|
||
build: | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
name: Build | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup environment | ||
uses: ./.github/actions/setup-env | ||
|
||
- name: Build | ||
run: pnpm build --filter @sandwich-ui/docs | ||
|
||
lint: | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
name: Analyze | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup environment | ||
uses: ./.github/actions/setup-env | ||
|
||
- name: Lint | ||
run: pnpm lint --filter @sandwich-ui/docs | ||
|
||
docker: | ||
runs-on: ubuntu-latest | ||
name: Build Docker Image | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Build | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
push: false | ||
file: ./docs.Dockerfile | ||
tags: image:latest | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max |
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,31 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup environment | ||
uses: ./.github/actions/setup-env | ||
|
||
- name: Build | ||
run: pnpm build --filter @mrsquaare/sandwich-ui | ||
|
||
- name: Create Release Pull Request or Publish to npm | ||
uses: changesets/action@v1 | ||
with: | ||
version: pnpm run version | ||
publish: pnpm run publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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,54 @@ | ||
name: Sandwich UI Pull Request | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- ".github/workflows/sandwich-ui-pull-request.yml" | ||
- "sandwich-ui/**" | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
name: Setup | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup environment | ||
uses: ./.github/actions/setup-env | ||
|
||
build: | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
name: Build | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup environment | ||
uses: ./.github/actions/setup-env | ||
|
||
- name: Build | ||
run: pnpm build --filter @mrsquaare/sandwich-ui | ||
|
||
lint: | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
name: Analyze | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup environment | ||
uses: ./.github/actions/setup-env | ||
|
||
- name: Lint | ||
run: pnpm lint --filter @mrsquaare/sandwich-ui |
Oops, something went wrong.