Skip to content

Commit

Permalink
Version 3 initial
Browse files Browse the repository at this point in the history
  • Loading branch information
hyjk2000 committed Jul 3, 2024
1 parent deff491 commit 42469e2
Show file tree
Hide file tree
Showing 50 changed files with 5,184 additions and 6,683 deletions.
15 changes: 0 additions & 15 deletions .codeclimate.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ root = true
charset = utf-8
end_of_line = lf

[*.{html,js,json,scss,yml}]
[*.{html,js,ts,json,scss,yaml}]
indent_size = 2
indent_style = space
insert_final_newline = true
Expand Down
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

254 changes: 0 additions & 254 deletions .eslintrc

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/build-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build & Deploy

on:
push:
branches: [master]

jobs:
build:
name: Build
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: .tool-versions
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: artifact
path: dist

deploy:
name: Deploy
needs: [build]
runs-on: ubuntu-latest
environment:
name: cloudflare-pages
url: ${{ steps.deploy.outputs.deployment-url }}
steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: artifact
path: dist
- name: Deploy
id: deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name=party-lottery
47 changes: 19 additions & 28 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
### Node template
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Compiled scripts / stylesheets
dist
deploy
pack

# Dependency directory
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
node_modules
dist
dist-ssr
dev-dist
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
1 change: 1 addition & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
printWidth: 120
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 20.15.0
Loading

0 comments on commit 42469e2

Please sign in to comment.