Update build scripts and change notice date format
- Add build-dev target for development environment - Fix zip output paths to use relative paths in build directory - Change home notice date format from 'YY년 MM월 DD일' to 'YYYY.MM.DD' 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
12
Makefile
12
Makefile
@@ -33,16 +33,24 @@ build-staging: ## Build for staging environment with zip packaging
|
||||
pnpm run build:staging
|
||||
@echo "Creating deployment package..."
|
||||
$(eval VERSION := $(shell node -p "require('./package.json').version"))
|
||||
cd build && zip -r ../dist/nice-app-web-staging-$(VERSION).zip . && cd ..
|
||||
cd build && zip -r ./dist/nice-app-web-staging-$(VERSION).zip . && cd ..
|
||||
@echo "Deployment package created: nice-app-web-staging-$(VERSION).zip"
|
||||
|
||||
build-dev: ## Build for production with zip packaging
|
||||
pnpm run build
|
||||
@echo "Creating development deployment package..."
|
||||
$(eval VERSION := $(shell node -p "require('./package.json').version"))
|
||||
cd build && zip -r ./dist/nice-app-web-development-$(VERSION).zip . && cd ..
|
||||
@echo "Deployment package created: nice-app-web-production-$(VERSION).zip"
|
||||
|
||||
build-production: ## Build for production with zip packaging
|
||||
pnpm run build
|
||||
@echo "Creating production deployment package..."
|
||||
$(eval VERSION := $(shell node -p "require('./package.json').version"))
|
||||
cd build && zip -r ../dist/nice-app-web-production-$(VERSION).zip . && cd ..
|
||||
cd build && zip -r ./dist/nice-app-web-production-$(VERSION).zip . && cd ..
|
||||
@echo "Deployment package created: nice-app-web-production-$(VERSION).zip"
|
||||
|
||||
|
||||
preview: ## Preview production build
|
||||
pnpm run preview
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ export const HomeNoticeItem = ({
|
||||
>
|
||||
<div className="notice-content">
|
||||
<div className="notice-title">{ noticeItem.title }</div>
|
||||
<div className="notice-meta">{ t(`support.notice.categories.${noticeItem.informCl}`) }<span>{ noticeItem.regDt? moment(noticeItem.regDt).format('YY년 MM월 DD일'): '' }</span></div>
|
||||
<div className="notice-meta">{ t(`support.notice.categories.${noticeItem.informCl}`) }<span>{ noticeItem.regDt? moment(noticeItem.regDt).format('YYYY.MM.DD'): '' }</span></div>
|
||||
</div>
|
||||
<div className="notice-arrow">
|
||||
<img
|
||||
|
||||
Reference in New Issue
Block a user