Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added cool feature #2

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"@commitlint/config-conventional"
]
}
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
ui:
name: UI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
./build.sh
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: dist-${{ github.sha }}
path: dist
retention-days: 7
36 changes: 36 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Linters

on:
pull_request:
workflow_dispatch:

permissions:
contents: read
pull-requests: write
checks: write

jobs:
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: reviewdog/action-setup@v1
- name: Run prettier
run: |
./dev.sh npm ci
./dev.sh npm run format
- uses: reviewdog/action-suggester@v1
with:
tool_name: prettier
fail_on_error: true

eslint:
name: Eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run eslint
run: |
./dev.sh npm ci
./dev.sh npm run lint
26 changes: 26 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release Please

on:
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
./build.sh
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: ns8-user-manager
- name: Attach Release
if: ${{ steps.release.outputs.release_created }}
run:
tar cvf ns8-user-manager-${{ steps.release.outputs.tag_name }}.tar.gz dist
gh release upload ${{ steps.release.outputs.tag_name }} ns8-user-manager-${{ steps.release.outputs.tag_name }}.tar.gz dist
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit "$1"
6 changes: 6 additions & 0 deletions .postcssrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"plugins": {
"tailwindcss": {},
"autoprefixer": {}
}
}
8 changes: 0 additions & 8 deletions .vscode/extensions.json

This file was deleted.

4 changes: 2 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ COPY package-lock.json .
RUN npm ci
COPY public public
COPY src src
COPY .postcssrc.json .
COPY env.d.ts .
COPY index.html .
COPY tailwind.config.ts .
COPY tsconfig.app.json .
COPY tsconfig.json .
COPY tsconfig.node.json .
COPY tsconfig.vitest.json .
COPY vite.config.ts .
COPY vitest.config.ts .
RUN npm run build

FROM docker.io/nginx:stable-alpine-slim as prod
Expand Down
Loading