Skip to content

Commit

Permalink
chore: 添加 service 打包编译设置
Browse files Browse the repository at this point in the history
  • Loading branch information
Chanzhaoyu committed Feb 13, 2023
1 parent 35f353c commit 3debaec
Show file tree
Hide file tree
Showing 7 changed files with 344 additions and 1 deletion.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"rushstack",
"Sider",
"tailwindcss",
"tsup",
"Typecheck",
"unplugin",
"VITE",
Expand Down
2 changes: 1 addition & 1 deletion service/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# OpenAI API Key
OPENAI_API_KEY=
OPENAI_API_KEY=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
1 change: 1 addition & 0 deletions service/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"root": true,
"ignorePatterns": ["build"],
"extends": ["@antfu"]
}
2 changes: 2 additions & 0 deletions service/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ coverage
*.njsproj
*.sln
*.sw?

build
5 changes: 5 additions & 0 deletions service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
},
"scripts": {
"start": "esno ./src/index.ts",
"prod": "esno ./build/index.js",
"build": "pnpm clean && tsup",
"clean": "rimraf build",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
Expand All @@ -28,6 +31,8 @@
"dotenv": "^16.0.3",
"eslint": "^8.34.0",
"esno": "^0.16.3",
"rimraf": "^4.1.2",
"tsup": "^6.6.2",
"typescript": "^4.9.5"
}
}
Loading

0 comments on commit 3debaec

Please sign in to comment.