Skip to content
Draft
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
150 changes: 76 additions & 74 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,74 +1,76 @@
name: Publish Package to npm

on:
push:
branches:
- main
pull_request:
branches:
- main
permissions: write-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5

- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun i
- run: bun lint
- run: bun run build
- run: bun lint
- run: bun test --coverage

changepacks:
name: changepacks
runs-on: ubuntu-latest
permissions:
# create pull request comments
pull-requests: write

# Actions > General > Workflow permissions for creating pull request
# Create brench to create pull request
contents: write
needs:
- check
steps:
- uses: actions/checkout@v5
- uses: changepacks/action@main
id: changepacks
outputs:
changepacks: ${{ steps.changepacks.outputs.changepacks }}

publish:
runs-on: ubuntu-latest
needs:
- changepacks
if: contains(needs.changepacks.outputs.changepacks, 'package.json')
steps:
- name: Checkout
uses: actions/checkout@v5

- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun i
- run: bun run build
- run: bun test --coverage --coverage-reporter=lcov
- name: Upload to codecov.io
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ./coverage/lcov.info
- run: bunx @changepacks/cli publish --yes
env:
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
name: Publish Package to npm

on:
push:
branches:
- main
pull_request:
branches:
- main
permissions: write-all

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5

- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun i
- run: bun lint
- run: bun run build
- run: bun lint
- run: bun test --coverage

changepacks:
name: changepacks
runs-on: ubuntu-latest
permissions:
# create pull request comments
pull-requests: write

# Actions > General > Workflow permissions for creating pull request
# Create brench to create pull request
contents: write
needs:
- check
steps:
- uses: actions/checkout@v5
- uses: changepacks/action@main
id: changepacks
outputs:
changepacks: ${{ steps.changepacks.outputs.changepacks }}

publish:
runs-on: ubuntu-latest
needs:
- changepacks
if: contains(needs.changepacks.outputs.changepacks, 'package.json')
steps:
- name: Checkout
uses: actions/checkout@v5

- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun i
- run: bun run build
- run: bun test --coverage --coverage-reporter=lcov
- name: Upload to codecov.io
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: ./coverage/lcov.info
- uses: changepacks/action@main
with:
publish: true
env:
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
39 changes: 39 additions & 0 deletions apps/landing/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

# devup-ui
/df
85 changes: 85 additions & 0 deletions apps/landing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Devup API Landing Page

This is the landing page for Devup API, built with **Next.js** and **Devup UI**.

## Tech Stack

- **Next.js 15+** - React framework with App Router
- **Devup UI** - Zero-runtime CSS-in-JS styling library
- **TypeScript** - Type safety
- **React 19** - Latest React features

## Getting Started

### Install Dependencies

```bash
npm install
# or
pnpm install
# or
yarn install
```

### Run Development Server

```bash
npm run dev
```

Open [http://localhost:3000](http://localhost:3000) to see the landing page.

### Build for Production

```bash
npm run build
```

This will generate a static export in the `out/` directory.

### Preview Production Build

```bash
npm run start
```

## Project Structure

```
landing/
├── public/ # Static assets
├── src/
│ ├── app/ # Next.js App Router
│ │ ├── layout.tsx
│ │ ├── page.tsx
│ │ ├── Hero.tsx
│ │ ├── Features.tsx
│ │ ├── CodeExamples.tsx
│ │ ├── Packages.tsx
│ │ └── Footer.tsx
│ └── components/ # Reusable components
├── devup.json # Devup UI theme configuration
├── next.config.ts # Next.js configuration
├── tsconfig.json # TypeScript configuration
└── package.json
```

## Customization

### Theme

Edit `devup.json` to customize colors, typography, spacing, and breakpoints.

### Content

- **Hero Section**: `src/app/Hero.tsx`
- **Features**: `src/app/Features.tsx`
- **Code Examples**: `src/app/CodeExamples.tsx`
- **Packages**: `src/app/Packages.tsx`
- **Footer**: `src/app/Footer.tsx`

## Learn More

- [Next.js Documentation](https://nextjs.org/docs)
- [Devup UI Documentation](https://github.com/dev-five-git/devup-ui)
- [Devup API Documentation](https://github.com/dev-five-git/devup-api)
Loading