Skip to content

Commit

Permalink
Merge pull request #276 from nyomansunima/release/version-1
Browse files Browse the repository at this point in the history
Version 1
  • Loading branch information
nyomansunima authored Nov 30, 2024
2 parents 9a2a32d + d945a48 commit ebe0c94
Show file tree
Hide file tree
Showing 112 changed files with 848 additions and 520 deletions.
6 changes: 4 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"extends": ["next", "prettier"],
"extends": ["next/core-web-vitals", "next/typescript", "prettier"],
"rules": {
"react/no-unescaped-entities": "off",
"react-hooks/exhaustive-deps": "off",
"@next/next/no-img-element": "off"
"@next/next/no-img-element": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-object-type": "off"
}
}
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ updates:
prefix: 'npm'
include: 'scope'
labels:
- '📦 dependencies'
- 'dependencies'
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name: Lighthouse
on:
workflow_dispatch:
workflow_run:
workflows: ['Web Production']
workflows: ['Release & Publish']
types:
- completed
push:
Expand Down
75 changes: 75 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Deploy the web application
# into the vercel as production
#
# ***** NOTE ******
# This deployment need to setup some secrets

name: Release & Publish

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_WEB_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_WEB_PROJECT_ID }}

on:
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
name: '${{ github.ref_name }}'
generate_release_notes: true
draft: false
prerelease: false

publish:
name: Publish Website
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4

- name: Setup Bun Environment
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Install Vercel CLI
run: bun add --global vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

generate-changelog:
name: Generate Changelog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Update changelog
uses: BobAnkh/[email protected]
with:
ACCESS_TOKEN: ${{secrets.GITHUB_TOKEN}}
COMMIT_MESSAGE: '🔖 docs(CHANGELOG): update release notes'
TYPE: 'feat:Feature,fix:Bug Fixes,docs:Documentation,refactor:Refactor,perf:Performance Improvements'
50 changes: 0 additions & 50 deletions .github/workflows/web-production.yml

This file was deleted.

Binary file modified bun.lockb
Binary file not shown.
60 changes: 60 additions & 0 deletions data/bio.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"links": [
{
"type": "link",
"url": "/contact",
"label": "Hire me"
},
{
"type": "link",
"url": "/contact",
"label": "Become partner (business)",
"className": "tablet:row-span-2"
},
{
"type": "link",
"url": "/works",
"label": " See my works",
"className": "tablet:row-span-2"
},
{
"type": "link",
"url": "https://nyomansunima.lemonsqueezy.com?ref=nyomansunima",
"label": "Check my goodies"
},
{
"type": "link",
"url": "https://tryweebo.one?ref=nyomansunima",
"label": "My web design business (NEW)",
"className": "tablet:row-span-2"
},
{
"type": "link",
"url": "https://ko-fi.com/nyomansunima?ref=nyomansunima",
"label": "Suport me by donation"
},
{
"type": "link",
"url": "/stories",
"label": "Learn together with me"
},
{
"type": "link",
"url": "https://moono.space?ref=nyomansunima",
"label": "My apps collection (NEW)",
"className": "tablet:col-span-2"
},
{
"type": "link",
"url": "https://weecraft.club?ref=nyomansunima",
"label": "See tiny dev resources (NEW)",
"className": "tablet:col-span-2"
},
{
"type": "link",
"url": "/crafts",
"label": "See all of my crafts",
"className": "tablet:col-span-2"
}
]
}
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.
5 changes: 5 additions & 0 deletions data/works/brook-code-theme.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
tags: ['developers', 'designer']
---

# Hero
6 changes: 6 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
import { NextConfig } from 'next'

const nextConfig: NextConfig = {
experimental: {
optimizePackageImports: ['@flaticon/flaticon-uicons'],
},
pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],
images: {
remotePatterns: [
{ hostname: 'cdn.dribbble.com' },
{ hostname: 'cdn.hashnode.com' },
{ hostname: 'images.unsplash.com' },
],
},
skipTrailingSlashRedirect: true,
transpilePackages: [],
}

export default nextConfig
26 changes: 16 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"private": true,
"scripts": {
"dev": "next dev --turbo",
"dev": "next dev --turbopack",
"build": "next build",
"start": "next start",
"lint:check": "next lint",
Expand All @@ -20,35 +20,41 @@
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"@tailwindcss/forms": "^0.5.9",
"@tanstack/react-query": "^5.62.0",
"@vercel/analytics": "^1.3.1",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"date-fns": "^4.1.0",
"framer-motion": "^11.3.21",
"geist": "^1.3.1",
"lenis": "^1.1.6",
"next": "^15.0.2",
"next": "15.0.3",
"next-themes": "^0.4.3",
"plaiceholder": "^3.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"posthog-js": "^1.194.0",
"react": "19.0.0-rc-66855b96-20241106",
"react-dom": "19.0.0-rc-66855b96-20241106",
"react-hook-form": "^7.52.2",
"sonner": "^1.5.0",
"tailwind-merge": "^2.4.0",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.23.8"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.13",
"@tanstack/react-query-devtools": "^5.62.0",
"@types/node": "^22",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/react": "npm:[email protected]",
"@types/react-dom": "npm:[email protected]",
"autoprefixer": "^10",
"eslint": "^9.13.0",
"eslint-config-next": "^15.0.2",
"eslint-config-next": "15.0.3",
"eslint-config-prettier": "^9.1.0",
"postcss": "^8",
"prettier": "^3.3.3",
"tailwindcss": "^3",
"typescript": "^5"
},
"overrides": {
"@types/react": "npm:[email protected]",
"@types/react-dom": "npm:[email protected]"
}
}
13 changes: 5 additions & 8 deletions src/app/(home)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
import * as React from 'react'
import { Metadata } from 'next'
import {
defaultOpenGraphMetadata,
defaultTwitterMetadata,
} from '@shared/lib/shared-metadata'
import { ResourcesSection, HeroSection } from '@features/home'
import * as defaultMetadata from '@shared/libs/shared-metadata'
import { BioSection, HeroSection } from '@features/home'

export const metadata: Metadata = {
title: 'Nyoman Sunima',
description:
'Focused on crafting digital products, website, web app, mobile app to help business.',
openGraph: {
...defaultOpenGraphMetadata,
...defaultMetadata.openGraph,
title: 'Nyoman Sunima',
description:
'Focused on crafting digital products, website, web app, mobile app to help business.',
},
twitter: {
...defaultTwitterMetadata,
...defaultMetadata.twitter,
title: 'Nyoman Sunima',
description:
'Focused on crafting digital products, website, web app, mobile app to help business.',
Expand All @@ -28,7 +25,7 @@ export default function HomePage(): React.ReactElement {
return (
<div className="flex flex-col gap-20">
<HeroSection />
<ResourcesSection />
<BioSection />
</div>
)
}
12 changes: 5 additions & 7 deletions src/app/about/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import * as React from 'react'
import { Metadata } from 'next'
import {
defaultOpenGraphMetadata,
defaultTwitterMetadata,
} from '@shared/lib/shared-metadata'
import * as defaultMetadata from '@shared/libs/shared-metadata'
import {
DetailSection,
SharingSection,
Expand All @@ -11,19 +9,19 @@ import {
AchievementSection,
EndWordSection,
} from '@features/about'
import { ArticleContent } from '@shared/components/content'
import { ArticleContent } from '@shared/components/common/content'

export const metadata: Metadata = {
title: 'About',
description: 'The whole story about me, nyoman sunima and all of the journey',
openGraph: {
...defaultOpenGraphMetadata,
...defaultMetadata.openGraph,
title: 'About',
description:
'The whole story about me, nyoman sunima and all of the journey',
},
twitter: {
...defaultTwitterMetadata,
...defaultMetadata.twitter,
title: 'About',
description:
'The whole story about me, nyoman sunima and all of the journey',
Expand Down
9 changes: 3 additions & 6 deletions src/app/contact/page.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
import * as React from 'react'
import { Metadata } from 'next'
import {
defaultOpenGraphMetadata,
defaultTwitterMetadata,
} from '@shared/lib/shared-metadata'
import * as defaultMetadata from '@shared/libs/shared-metadata'
import { ContactList, SocialMediaList } from '@features/contact'

export const metadata: Metadata = {
title: 'Contact',
description: 'Get in touch with me right now, start your idea',
openGraph: {
...defaultOpenGraphMetadata,
...defaultMetadata.openGraph,
title: 'Contact',
description: 'Get in touch with me right now, start your idea',
},
twitter: {
...defaultTwitterMetadata,
...defaultMetadata.twitter,
title: 'Contact',
description: 'Get in touch with me right now, start your idea',
},
Expand Down
Loading

0 comments on commit ebe0c94

Please sign in to comment.