Skip to content

Commit

Permalink
Merge pull request #1 from MrSquaare/initial-version
Browse files Browse the repository at this point in the history
Initial version
  • Loading branch information
MrSquaare authored Jun 19, 2024
2 parents 516feeb + 67e57ad commit 381e3c6
Show file tree
Hide file tree
Showing 83 changed files with 20,174 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)
14 changes: 14 additions & 0 deletions .changeset/config.json
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": []
}
7 changes: 7 additions & 0 deletions .changeset/tame-panthers-visit.md
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
7 changes: 7 additions & 0 deletions .devcontainer/devcontainer.json
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": {}
}
}
35 changes: 35 additions & 0 deletions .eslintrc.js
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",
},
},
],
};
17 changes: 17 additions & 0 deletions .github/actions/setup-env/action.yml
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
79 changes: 79 additions & 0 deletions .github/settings.yml
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: ""
77 changes: 77 additions & 0 deletions .github/workflows/docs-pull-request.yml
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
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
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 }}
54 changes: 54 additions & 0 deletions .github/workflows/sandwich-ui-pull-request.yml
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
Loading

0 comments on commit 381e3c6

Please sign in to comment.