Skip to content

Commit

Permalink
Migrated from Master CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Feb 29, 2024
1 parent c8777a5 commit 79436e8
Show file tree
Hide file tree
Showing 96 changed files with 7,160 additions and 34,809 deletions.
2 changes: 1 addition & 1 deletion .commitlintrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
extends: aron
extends: techor
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false
arrow_parens = always
4 changes: 3 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
extends: aron
root: true
extends:
- techor
57 changes: 57 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Contributing to Monorepo
```bash
pnpm install
```

Run `pnpm build` in the project root to build all packages:
```bash
pnpm build
```
Split a new terminal and switch to the target directory for testing to avoid running tests from other packages:
```bash
cd packages/css
```

## Testing
```bash
pnpm test -- --watch
```

Commit your tests ( and create a Pull Request ):
```bash
Add @1aron tests
```

## Linting
Follow the [Techor ESLint Preset](https://github.com/techor-dev/techor/tree/main/packages/eslint-config)
```bash
pnpm lint
```

To automatically fix any violations in your code:
```
pnpm lint -- --fix
```

## Type Checking
```bash
pnpm type-check
```

## Commit Checking
Follow the [Techor Conventional Commits](https://github.com/techor-dev/techor/tree/main/packages/conventional-commits)
```bash
pnpm commit-check
```

## Checking
You have to pass `pnpm check` before submitting a pull request.
```bash
pnpm check
```
The command includes all of the following checks:

## Building
```
pnpm build
```
4 changes: 0 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ body:
1. ...
2. ...
3. ...
validations:
required: false
- type: textarea
id: system
Expand All @@ -39,8 +37,6 @@ body:
OS: macOS 12.0.1 (amd64)
Node.js: 16.31.1
Package Manager: pnpm 6.32.3
validations:
required: true
- type: markdown
attributes:
Expand Down
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: 🤔 Questions & Discussions
url: https://github.com/techor-dev/repo/discussions
about: Use GitHub discussions for forum-like discussions and questions.
- name: 💬 Discord Chat
url: https://discord.gg/sZNKpAAAw6
about: A friendly chat room, where you can ask questions and get help from other users in real time.
31 changes: 13 additions & 18 deletions .github/ISSUE_TEMPLATE/docs_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,16 @@ title: '📄 '
labels: [documentation]

body:
- type: textarea
attributes:
label: What is the improvement or update you wish to see?
description: 'Example: I would like to see more examples of how to use the xxx. Or, the xxx docs are missing information.'
validations:
required: true
- type: textarea
attributes:
label: Is there any context that might help us understand?
description: A clear description of any added context that might help us understand.
validations:
required: true
- type: input
attributes:
label: Does the docs page already exist? Please link to it.
placeholder: https://
validations:
required: false
- type: textarea
attributes:
label: What is the improvement or update you wish to see?
description: 'Example: I would like to see more examples of how to use the xxx. Or, the xxx docs are missing information.'
validations:
required: true

- type: input
attributes:
label: Does the docs page already exist? Please link to it.
placeholder: https://
validations:
required: false
28 changes: 14 additions & 14 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: "✨ Feature"
name: '✨ Feature'
description: Propose a new feature
title: ''
labels: [enhancement]
labels: [feature]

body:
- type: markdown
attributes:
value: Have a great idea for a new feature? Let us know!
- type: markdown
attributes:
value: Have a great idea for a new feature? Let us know!

- type: textarea
id: description
attributes:
label: Description
description: |
Please tell us what you want to see in the next release and why you want to see it.
If you are going to make a pull request, please let us know your scheduling.
validations:
required: true
- type: textarea
id: description
attributes:
label: Description
description: |
Please tell us what you want to see in the next release and why you want to see it.
If you are going to make a pull request, please let us know your scheduling.
validations:
required: true
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/improvement_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: '💖 Improvement'
description: Propose improvements to existing functionality or architecture.
title: '💖 '
labels: [improvement]

body:
- type: markdown
attributes:
value: Tell us about anything that needs improvement or enhancement!

- type: textarea
id: context
attributes:
label: Context
description: |
Describe the current and expected common context.
- type: textarea
id: current
attributes:
label: Current
description: |
Please describe the current issues that need to be improved.
validations:
required: true

- type: textarea
id: expected
attributes:
label: Expected
description: |
Please describe what you expect the improvements to look like.
validations:
required: true
23 changes: 13 additions & 10 deletions .github/workflows/commit-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Commit Check
on:
push:
branches:
- '**'
- "**"
pull_request_target:
types:
- opened
Expand All @@ -12,19 +12,22 @@ on:

jobs:
check:
name: 'commit-check'
timeout-minutes: 15
runs-on: ubuntu-20.04
name: "commit-check"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.12.1]
node-version: [20]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run commit-check
cache: 'pnpm'
- run: pnpm install
- run: pnpm build
- run: pnpm check:commit
17 changes: 17 additions & 0 deletions .github/workflows/dev-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Sync dev branches
on:
push:
branches:
- "*"

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Techor Actions
uses: techor-dev/techor@main
with:
action: "sync-dev-branches"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28 changes: 28 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: E2E
on:
push:
branches:
- "**"
pull_request_target:
types:
- opened
- reopened
- edited
- synchronize

jobs:
e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install
- run: pnpm exec playwright install --with-deps
- run: pnpm build
- run: pnpm e2e
21 changes: 12 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Lint
on:
push:
branches:
- '**'
- "**"
pull_request_target:
types:
- opened
Expand All @@ -12,16 +12,19 @@ on:

jobs:
lint:
timeout-minutes: 15
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.12.1]
node-version: [20]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run lint
cache: 'pnpm'
- run: pnpm install
- run: pnpm build
- run: pnpm lint
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ on:

jobs:
check:
timeout-minutes: 15
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.12.1]
node-version: [20]
steps:
- name: Aron Actions
uses: 1aron/aronrepo@latest
- uses: techor-dev/techor@main
with:
action: 'check-pull-request-title'
action: "check-pull-request-title"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 79436e8

Please sign in to comment.