Skip to content

Commit

Permalink
Initial commit for 2025
Browse files Browse the repository at this point in the history
  • Loading branch information
lancetw committed Dec 29, 2024
1 parent bc9ba6c commit 016c89a
Show file tree
Hide file tree
Showing 47 changed files with 6,583 additions and 7,472 deletions.
91 changes: 17 additions & 74 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,78 +4,21 @@ logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

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

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

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

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

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

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

# FuseBox cache
.fusebox/


dist/

pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.12.0
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore artifacts:
dist
coverage
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"printWidth": 80,
"useTabs": false,
"tabWidth": 2,
"trailingComma": "es5",
"semi": false,
"singleQuote": true
}
63 changes: 0 additions & 63 deletions blueprint/service-list.md

This file was deleted.

33 changes: 33 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'
import eslintConfigPrettier from 'eslint-config-prettier'

export default tseslint.config(
{ ignores: ['dist'] },
{
extends: [
js.configs.recommended,
...tseslint.configs.recommended,
eslintConfigPrettier,
],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
}
)
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html lang="zh-TW">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OursWeb.Net 我們的網站</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
88 changes: 27 additions & 61 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,70 +1,36 @@
{
"name": "oursweb2019",
"version": "0.0.1",
"description": "Oursweb 2019",
"main": "dist/index.html",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"start": "webpack-dev-server --mode development --open --hot",
"prebuild": "npm run clean",
"build": "cross-env NODE_ENV=development webpack --mode production",
"build-prod": "cross-env NODE_ENV=production webpack --mode production",
"postbuild": "react-snap",
"clean": "rimraf dist/*"
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"
},
"author": "",
"license": "MIT",
"dependencies": {
"@hot-loader/react-dom": "16.8.6",
"@types/react": "^16.8.12",
"@types/react-dom": "^16.8.3",
"react": "16.8.6",
"react-dom": "16.8.6",
"semantic-ui-css": "^2.4.1",
"semantic-ui-react": "^0.86.0"
"@radix-ui/themes": "^3.1.6",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/webpack": "^4.4.27",
"awesome-typescript-loader": "^5.2.1",
"copy-webpack-plugin": "^5.0.2",
"critters-webpack-plugin": "^2.3.0",
"cross-env": "^5.2.0",
"css-loader": "^2.1.1",
"cssnano": "^4.1.10",
"file-loader": "^3.0.1",
"html-webpack-plugin": "^3.2.0",
"mini-css-extract-plugin": "^0.5.0",
"minimalcss": "^0.8.2",
"node-sass": "^4.11.0",
"postcss-import": "^12.0.1",
"postcss-loader": "^3.0.0",
"postcss-preset-env": "^6.6.0",
"react-hot-loader": "^4.8.3",
"react-snap": "^1.23.0",
"rimraf": "^2.6.3",
"sass-loader": "^7.1.0",
"script-ext-html-webpack-plugin": "^2.1.3",
"source-map-loader": "^0.2.4",
"style-loader": "^0.23.1",
"terser-webpack-plugin": "^1.2.3",
"typescript": "^3.4.2",
"url-loader": "^1.1.2",
"webpack": "^4.29.6",
"webpack-cli": "^3.3.0",
"webpack-dev-server": "^3.2.1",
"workbox-webpack-plugin": "^4.2.0"
},
"prettier": {
"printWidth": 80,
"useTabs": false,
"tabWidth": 2,
"trailingComma": "es5",
"semi": false,
"singleQuote": true
},
"reactSnap": {
"source": "dist",
"include": [
"/index.html"
]
"@eslint/js": "^9.17.0",
"@types/node": "^22.10.2",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@vitejs/plugin-react": "^4.3.4",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.16",
"globals": "^15.14.0",
"prettier": "3.4.2",
"typescript": "~5.6.2",
"typescript-eslint": "^8.18.2",
"vite": "^6.0.5",
"vite-plugin-pwa": "^0.21.1",
"vite-plugin-static-copy": "^2.2.0",
"vite-tsconfig-paths": "^5.1.4"
}
}
Loading

0 comments on commit 016c89a

Please sign in to comment.