-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
4,262 additions
and
3,635 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,106 +1,8 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
.DS_Store | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# 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 | ||
*.lcov | ||
|
||
# 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/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Microbundle cache | ||
.rpt2_cache/ | ||
.rts2_cache_cjs/ | ||
.rts2_cache_es/ | ||
.rts2_cache_umd/ | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# Next.js build output | ||
.next | ||
|
||
# Nuxt.js build / generate output | ||
.nuxt | ||
dist | ||
|
||
# Gatsby files | ||
.cache/ | ||
# Comment in the public line in if your project uses Gatsby and *not* Next.js | ||
# https://nextjs.org/blog/next-9-1#public-directory-support | ||
# public | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# TernJS port file | ||
.tern-port |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,38 @@ | ||
# 参与贡献 | ||
|
||
1. [Fork 项目](https://help.github.com/articles/fork-a-repo/) | ||
2. 安装依赖 (`yarn install`) | ||
2. 安装依赖 (`pnpm install`) | ||
3. 创建你的特性分支 (`git checkout -b my-new-feature`) | ||
4. 提交你的修改 (`git commit -am 'Added some feature'`) | ||
5. 测试你的修改 (`yarn test`) | ||
5. 测试你的修改 (`pnpm test`) | ||
6. 推送分支 (`git push origin my-new-feature`) | ||
7. [创建 Pull Request](https://help.github.com/articles/creating-a-pull-request/) | ||
|
||
## 开发 | ||
|
||
- 使用 Node 16+ 运行环境 | ||
- 使用 [Yarn](https://yarnpkg.com/) 作为包管理工具 | ||
- 使用 [Node.js](https://nodejs.org/) 18+ 运行环境 | ||
- 使用 [[email protected]](https://pnpm.io/) 作为包管理工具 | ||
- 使用 [ECMAScript](https://nodejs.org/api/esm.html#modules-ecmascript-modules) 模块规范 | ||
- 推荐使用 [corepack](https://github.com/nodejs/corepack) 匹配包管理器版本 | ||
|
||
### 初始化安装 | ||
|
||
```sh | ||
npm run bootstrap | ||
``` | ||
|
||
## 测试 | ||
|
||
使用 [Jest](https://github.com/facebook/jest) 作为测试套件。测试命令: | ||
|
||
```sh | ||
yarn test | ||
pnpm test | ||
``` | ||
|
||
## 编码规范 | ||
|
||
使用 [ESLint](https://eslint.org/) 和 [editorconfig](http://editorconfig.org) 保持代码风格和最佳实践。请确保你的 PR 符合指南的要求,检测命令: | ||
|
||
```sh | ||
yarn lint | ||
pnpm lint | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "actions-mtz-coupons", | ||
"description": "外卖神券天天领", | ||
"version": "1.9.0", | ||
"version": "2.0.0", | ||
"keywords": [ | ||
"外卖", | ||
"红包" | ||
|
@@ -10,18 +10,23 @@ | |
"type": "module", | ||
"author": "Vincent <[email protected]>", | ||
"scripts": { | ||
"bootstrap": "corepack enable && corepack pnpm i", | ||
"start": "node index", | ||
"start:local": "node index.local", | ||
"lint": "eslint .", | ||
"test": "yarn node --experimental-vm-modules $(yarn bin jest)", | ||
"test": "NODE_OPTIONS=--experimental-vm-modules npx jest", | ||
"sync": "node ./sync-upstream" | ||
}, | ||
"packageManager": "^[email protected]", | ||
"dependencies": { | ||
"@wasmer/wasi": "^1.2.2", | ||
"base64-js": "^1.5.1", | ||
"crc-32": "^1.2.2", | ||
"fflate": "^0.8.1", | ||
"https-proxy-agent": "^5.0.1", | ||
"node-fetch": "^3.3.0", | ||
"p-limit": "^4.0.0", | ||
"semver": "^7.3.8", | ||
"sjcl": "^1.0.8", | ||
"timeout-signal": "^2.0.0", | ||
"tough-cookie": "^4.1.2" | ||
}, | ||
|
@@ -30,6 +35,7 @@ | |
"eslint": "^8.31.0", | ||
"eslint-plugin-import": "^2.27.4", | ||
"eslint-plugin-jest": "^27.2.1", | ||
"fs-extra": "^11.2.0", | ||
"jest": "^29.3.1" | ||
}, | ||
"private": true, | ||
|
@@ -42,7 +48,8 @@ | |
}, | ||
"homepage": "https://github.com/vv314/actions-mtwm-coupons#readme", | ||
"engines": { | ||
"node": ">=16.0.0" | ||
"node": ">=18.17.1" | ||
}, | ||
"license": "MIT" | ||
"license": "MIT", | ||
"packageManager": "[email protected]+sha256.28ca61ece5a496148b73fabc9afb820f9c3fec4f55f04ce45a2cea0a5219f2e1" | ||
} |
Oops, something went wrong.