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

Add workflow #8

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
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
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
push:
branches:
- main
pull_request:

permissions:
actions: read
contents: read

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0



# This enables task distribution via Nx Cloud
# Run this command as early as possible, before dependencies are installed
# Learn more at https://nx.dev/ci/reference/nx-cloud-cli#npx-nxcloud-startcirun
- run: npx nx-cloud start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="build"


# Cache node_modules
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- run: npm ci --legacy-peer-deps
- uses: nrwl/nx-set-shas@v4

# Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud
# - run: npx nx-cloud record -- echo Hello World
# Nx Affected runs only tasks affected by the changes in this PR/commit. Learn more: https://nx.dev/ci/features/affected
- run: npx nx affected -t lint test build
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ node_modules/
build/
out/
dist/



.nx/cache
.nx/workspace-data
54 changes: 54 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
## 9.3.0 (2024-09-26)

This was a version bump only, there were no code changes.

## 9.2.0 (2024-09-26)

This was a version bump only, there were no code changes.

## 9.2.0-0 (2024-09-26)

This was a version bump only, there were no code changes.

## 9.1.0 (2024-09-26)

This was a version bump only, there were no code changes.

# 9.0.0 (2024-09-26)

This was a version bump only, there were no code changes.

# 8.0.0 (2024-09-26)

This was a version bump only, there were no code changes.

# 7.0.0 (2024-09-26)

This was a version bump only, there were no code changes.

# 6.0.0 (2024-09-26)

This was a version bump only, there were no code changes.

# 5.0.0 (2024-09-26)

This was a version bump only, there were no code changes.

# 4.0.0 (2024-09-26)

This was a version bump only, there were no code changes.

# 3.0.0 (2024-09-26)

This was a version bump only, there were no code changes.

# 2.0.0 (2024-09-26)


### 🚀 Features

- **buttons:** add new background shadow ([c3b9f86](https://github.com/danhnguyen-agilityio/tuskydesign/commit/c3b9f86))

### ❤️ Thank You

- Juri @juristr
10 changes: 5 additions & 5 deletions apps/demo/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "@tuskdesign/demo",
"name": "@danhnguyenasnet/demo",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"typecheck": "tsc",
"prebuild": "npm run typecheck",
"build": "vite build",
"build": "nx vite:build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "nx vite:preview"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"@tuskdesign/buttons": "*",
"@tuskdesign/forms": "*"
"@danhnguyenasnet/buttons": "*",
"@danhnguyenasnet/forms": "*"
},
"devDependencies": {
"@types/react": "^18.2.43",
Expand Down
3 changes: 3 additions & 0 deletions apps/demo/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
build: {
outDir: '../../dist/demo'
}
})
46 changes: 46 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"defaultBase": "main",
"targetDefaults": {
"build": {
"dependsOn": [
"^build",
"typecheck"
],
"cache": true
},
"typecheck": {
"cache": true
},
"lint": {
"cache": true
}
},
"plugins": [
{
"plugin": "@nx/vite/plugin",
"options": {
"buildTargetName": "vite:build",
"testTargetName": "test",
"serveTargetName": "serve",
"previewTargetName": "vite:preview",
"serveStaticTargetName": "serve-static",
"typecheckTargetName": "vite:typecheck"
}
}
],
"release": {
"projects": [
"packages/*"
]
},
"nxCloudId": "66f5370636948eb7f7a8ba53",
"namedInputs": {
"sharedGlobals": [
"{workspaceRoot}/.github/workflows/ci.yml"
],
"default": [
"sharedGlobals"
]
}
}
Loading