Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .taskfiles/task_leetcode.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: "3"

tasks:
new:
desc: Generate new post for LeetCode solution
cmds:
- pnpm lc:new {{.CLI_ARGS}}
silent: true

commit:
desc: Commit code for a specific LeetCode problem
cmds:
- |
git commit -m "chore(solution): add solution for LeetCode problem No.{{.CLI_ARGS}}"
silent: true
1 change: 1 addition & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ includes:
git: ./.taskfiles/task_git.yaml
release: ./.taskfiles/task_release.yaml
dep: ./.taskfiles/task_dep.yaml
lc: ./.taskfiles/task_leetcode.yaml
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"version": "2.0.1",
"license": "MIT",
"scripts": {
"lc:new": "tsx ./src/cmd/leetcode.ts",
"dev": "astro dev",
"start": "astro dev",
"build": "astro build",
Expand All @@ -31,19 +32,24 @@
"@tailwindcss/typography": "^0.5.9",
"@types/lodash.get": "^4.4.7",
"@types/lodash.kebabcase": "^4.1.7",
"@types/mustache": "^4.2.2",
"@types/node": "^18.14.1",
"@typescript-eslint/eslint-plugin": "^5.53.0",
"@typescript-eslint/parser": "^5.53.0",
"commander": "^10.0.0",
"commitizen": "^4.3.0",
"dayjs": "^1.11.7",
"dotenv": "^16.0.3",
"eslint": "^8.34.0",
"eslint-plugin-astro": "^0.23.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"husky": "^8.0.3",
"lodash.get": "^4.4.2",
"lodash.kebabcase": "^4.1.1",
"mustache": "^4.2.0",
"sass": "^1.58.3",
"tailwindcss-themer": "^3.0.1",
"tsx": "^3.12.3",
"typescript": "^4.9.5"
}
}
Loading