Skip to content

Commit

Permalink
Re-organize project to match other projects
Browse files Browse the repository at this point in the history
  • Loading branch information
zeekay committed Jul 15, 2024
1 parent e17b783 commit 61ba715
Show file tree
Hide file tree
Showing 1,380 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/version-script-beta.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { exec } from "child_process"
import fs from "fs"

const pkgJsonPath = "packages/cli/package.json"
const pkgJsonPath = "pkg/cli/package.json"
try {
const pkg = JSON.parse(fs.readFileSync(pkgJsonPath))
exec("git rev-parse --short HEAD", (err, stdout) => {
Expand Down
2 changes: 1 addition & 1 deletion .github/version-script-next.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { exec } from "child_process"
import fs from "fs"

const pkgJsonPath = "packages/cli/package.json"
const pkgJsonPath = "pkg/cli/package.json"
try {
const pkg = JSON.parse(fs.readFileSync(pkgJsonPath))
exec("git rev-parse --short HEAD", (err, stdout) => {
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: node .github/version-script-beta.js

- name: Authenticate to NPM
run: echo "//registry.npmjs.org/:_authToken=$NPM_ACCESS_TOKEN" >> packages/cli/.npmrc
run: echo "//registry.npmjs.org/:_authToken=$NPM_ACCESS_TOKEN" >> pkg/cli/.npmrc
env:
NPM_ACCESS_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}

Expand All @@ -51,10 +51,10 @@ jobs:
id: package-version
uses: martinbeentjes/npm-get-version-action@main
with:
path: packages/cli
path: pkg/cli

- name: Upload packaged artifact
uses: actions/upload-artifact@v2
with:
name: npm-package-hanzoai-ui@${{ steps.package-version.outputs.current-version }}-pr-${{ github.event.number }} # encode the PR number into the artifact name
path: packages/cli/dist/index.js
path: pkg/cli/dist/index.js
22 changes: 11 additions & 11 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This repository is a monorepo.
This repository is structured as follows:

```
apps
app
└── web
β”œβ”€β”€ app
β”œβ”€β”€ components
Expand All @@ -31,17 +31,17 @@ apps
└── new-york
β”œβ”€β”€ example
└── ui
packages
└── cli
pkg
└── ui
```

| Path | Description |
| --------------------- | ---------------------------------------- |
| `apps/web/app` | The Next.js application for the website. |
| `apps/web/components` | The React components for the website. |
| `apps/web/content` | The content for the website. |
| `apps/web/registry` | The registry for the components. |
| `packages/ui` | The `@hanzo/ui` package. |
| `app/web/app` | The Next.js application for the website. |
| `app/web/components` | The React components for the website. |
| `app/web/content` | The content for the website. |
| `app/web/registry` | The registry for the components. |
| `pkg/ui` | The `@hanzo/ui` package. |

## Development

Expand Down Expand Up @@ -93,14 +93,14 @@ The documentation for this project is located in the `web` workspace. You can ru
pnpm --filter=web dev
```

Documentation is written using [MDX](https://mdxjs.com). You can find the documentation files in the `apps/web/content/docs` directory.
Documentation is written using [MDX](https://mdxjs.com). You can find the documentation files in the `app/web/content/docs` directory.

## Components

We use a registry system for developing components. You can find the source code for the components under `apps/web/registry`. The components are organized by styles.
We use a registry system for developing components. You can find the source code for the components under `app/web/registry`. The components are organized by styles.

```bash
apps
app
└── web
└── registry
β”œβ”€β”€ default
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 61ba715

Please sign in to comment.