Skip to content

Commit

Permalink
Merge remote-tracking branch 'bp/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Aug 16, 2023
2 parents a202a1a + 77a30b3 commit 59cba5f
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 34 deletions.
5 changes: 3 additions & 2 deletions .githooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
branch=$( git branch | grep \* | cut -d ' ' -f2 )
# ./.githooks/init-repo/is-skip-commitlint.ts $1 "$branch"

code=$?
# code=$?
code=0
#echo -e 'node exitCode:' $code

if [[ $code = 0 ]] ; then
if [[ $code = 0 ]] && [[ -d node_modules ]] ; then
commitlint -e ./.git/COMMIT_EDITMSG
fi

18 changes: 5 additions & 13 deletions .githooks/set-scripts-executable.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
#!/bin/bash
set +e

find .scripts -type f -iname "*.sh" -print0 \
| xargs -0II git update-index --ignore-missing --chmod=+x I
dirs=" .githooks .scripts .github"

find .scripts -type f -iname "*.mjs" -print0 \
| xargs -0II git update-index --ignore-missing --chmod=+x I

find .github -type f -iname "*.sh" -print0 \
| xargs -0II git update-index --ignore-missing --chmod=+x I

find .github -type f -iname "*.mjs" -print0 \
| xargs -0II git update-index --ignore-missing --chmod=+x I

find .githooks -type f -iname "*.sh" -print0 \
| xargs -0II git update-index --ignore-missing --chmod=+x I
for dir in $dirs; do
find $dir -type f -iname "*.sh" -print0 | xargs -0II git update-index --ignore-missing --chmod=+x I
find $dir -type f -iname "*.mjs" -print0 | xargs -0II git update-index --ignore-missing --chmod=+x I
done

echo "Commit changes if changed!"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nodejs-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node: ['current']
node: ['lts/*']
os: [windows-latest]

steps:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,11 @@ jobs:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
jaeger:
image: jaegertracing/all-in-one
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-manual-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ jobs:
# npm run pub major
rm -rf package-lock.json
rm -rf packages/*/package-lock.json
.scripts/publish.sh --yes --conventional-commits --create-release github ${{ github.event.inputs.semver }}
.scripts/publish.sh --yes --no-private --conventional-commits --create-release github ${{ github.event.inputs.semver }}
git push -v origin --follow-tags
env:
CI: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish-wo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ jobs:
# npm run pub major
rm -rf package-lock.json
rm -rf packages/*/package-lock.json
.scripts/publish.sh --yes --conventional-commits --create-release github ${{ github.event.inputs.semver }}
.scripts/publish.sh --yes --no-private --conventional-commits --create-release github ${{ github.event.inputs.semver }}
git push -v origin --follow-tags
env:
CI: true
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package-lock.json
yarn.lock
package.json.lerna_backup
tsconfig.tsbuildinfo
npm-shrinkwrap.json
!/tsconfig.base.json
tsconfig.base.json

Expand Down
9 changes: 5 additions & 4 deletions .mocharc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ bail: true
full-trace: true
enable-source-maps: true
require:
- ts-node/register
# for cjs
# - ts-node/register
- tsconfig-paths/register.js
- test/root.hooks.ts
#loader:
# - ts-node/esm
loader:
- ts-node/esm
spec:
- test/**/*.test.ts
timeout: 120000
timeout: 90000
ui: bdd
parallel: false
exit: true
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"files.trimTrailingWhitespace": true,
"git.autofetch": true,
"git.ignoreLimitWarning": true,
"markdown.editor.pasteUrlAsFormattedLink.enabled": "smart",
"markdown-pdf.outputDirectory": "d:/",
"plantuml.render": "PlantUMLServer",
"plantuml.server": "https://www.plantuml.com/plantuml",
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"files.trimTrailingWhitespace": true,
"git.autofetch": true,
"git.ignoreLimitWarning": true,
"markdown.editor.pasteUrlAsFormattedLink.enabled": "smart",
"markdown-pdf.outputDirectory": "d:/",
"plantuml.render": "PlantUMLServer",
"plantuml.server": "https://www.plantuml.com/plantuml",
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@
"@commitlint/cli": "17",
"@commitlint/config-conventional": "17",
"@midwayjs/cli": "^2.1.1",
"@midwayjs/mock": "^3.11.6",
"@midwayjs/web": "^3.11.6",
"@midwayjs/mock": "^3.11.15",
"@midwayjs/web": "^3.11.15",
"@rollup/plugin-commonjs": "25",
"@rollup/plugin-node-resolve": "15",
"@types/mocha": "10",
"@types/node": "20",
"@waiting/eslint-config": "^8.8.0",
"@waiting/shared-core": "^21.2.1",
"@waiting/shared-types": "^21.2.0",
"@waiting/shared-core": "^21.3.0",
"@waiting/shared-types": "^21.3.0",
"autocannon": "7",
"coveralls": "3",
"cross-env": "7",
"debug": "^4.3.4",
"eslint": "^8.45.0",
"eslint": "^8.47.0",
"madge": "^6.1.0",
"mocha": "10",
"mocha-lcov-reporter": "1",
"rewire": "6",
"rimraf": "5",
"rollup-plugin-dts": "^5.3.0",
"ts-node": "^10.9.1",
"tsc-alias": "^1.8.6",
"tsc-alias": "^1.8.7",
"tsconfig-paths": "4",
"typescript": "^5.1.6",
"zx": "7"
Expand Down
7 changes: 3 additions & 4 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
},
"license": "MIT",
"devDependencies": {
"cross-env": "7"
},
"engines": {
"node": ">=16.13.0"
Expand All @@ -52,16 +51,16 @@
"clean": "npm run clean:lock & npm run clean:cache & rm -rf dist/*",
"clean:cache": "rm -rf .eslintcache .tsbuildinfo",
"clean:lock": "rm package-lock.json -f",
"cov": "cross-env TS_NODE_PROJECT=test/tsconfig.json c8 mocha --loader=ts-node/esm --parallel=false",
"cov": "cross-env TS_NODE_PROJECT=test/tsconfig.json c8 mocha --parallel=false",
"lint": "eslint --fix --cache {src,test}/**/*.ts",
"lint:nofix": "eslint --cache {src,test}/**/*.ts",
"purge": "npm run clean && rm node_modules -rf",
"rp": "rollup -c rollup.config.js --context this",
"prepack": "rm -f dist/tsconfig.tsbuildinfo",
"pretest": "npm run build",
"pretest:local": "npm run build",
"test": "cross-env TS_NODE_PROJECT=test/tsconfig.json mocha --loader=ts-node/esm",
"test:local": "cross-env TS_NODE_PROJECT=test/tsconfig.json ../../node_modules/.bin/mocha --loader=ts-node/esm --parallel=false",
"test": "cross-env TS_NODE_PROJECT=test/tsconfig.json mocha",
"test:local": "cross-env TS_NODE_PROJECT=test/tsconfig.json ../../node_modules/.bin/mocha",
"tsc": "tsc -b "
}
}

0 comments on commit 59cba5f

Please sign in to comment.