Skip to content

Commit

Permalink
Bump scaffold (#23)
Browse files Browse the repository at this point in the history
* Add entrypoints

* Bump scaffold

* Add ES2021 and ES2022

---------

Co-authored-by: William Wong <compulim@hotmail.com>
Co-authored-by: @compulim <@compulim>
  • Loading branch information
compulim-workflow-bot[bot] and compulim authored Sep 25, 2023
1 parent b188066 commit e99cfe8
Show file tree
Hide file tree
Showing 13 changed files with 125 additions and 83 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ on:
paths-ignore:
- '.devcontainer/**'
- '.github/**'
workflow_dispatch: {}

jobs:
call-workflow:
permissions:
pages: write
contents: write
id-token: write
pages: write
secrets: inherit
uses: compulim/workflows/.github/workflows/continuous-deployment.yml@main
with:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Prepare release

on:
workflow_dispatch: {}

jobs:
call-workflow:
permissions:
contents: write
id-token: write
secrets: inherit
uses: compulim/workflows/.github/workflows/prepare-release.yml@main
7 changes: 4 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Publish release on push tag
name: Publish release

on:
push:
tags: 'v*'
release:
types: [created]

jobs:
call-workflow:
Expand All @@ -14,3 +14,4 @@ jobs:
uses: compulim/workflows/.github/workflows/publish-release.yml@main
with:
package-name: message-port-rpc
tag: ${{ github.ref_name }}
162 changes: 90 additions & 72 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions packages/integration-test/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
extends:
- ../../.eslintrc.react.yml
- ../../.eslintrc.jest.yml
2 changes: 2 additions & 0 deletions packages/integration-test/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules/
/package-lock.json
1 change: 1 addition & 0 deletions packages/integration-test/babel.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"presets": [
"@babel/preset-react",
[
"@babel/preset-env",
{
Expand Down
5 changes: 4 additions & 1 deletion packages/integration-test/jest.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"testMatch": ["**/__tests__/**/*.?([cm])[jt]s?(x)", "**/?(*.)+(spec|test).?([cm])[jt]s?(x)"],
"testMatch": [
"**/__tests__/**/*.?([cm])[jt]s?(x)",
"**/?(*.)+(spec|test).?([cm])[tj]s?(x)"
],
"transform": {
"\\.mjsx?$": ["babel-jest"]
}
Expand Down
3 changes: 2 additions & 1 deletion packages/integration-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"bump:auditfix": "npm audit fix || exit 0",
"bump:dev": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '.localPeerDependencies // {} as $L | .devDependencies // {} | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@latest\") | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
"bump:prod": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '.localPeerDependencies // {} as $L | .dependencies // {} | to_entries | map(select(.key as $K | $L | has($K) | not)) | map(.key + \"@latest\") | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
"precommit": "eslint --ext .js,.cjs,.mjs,.ts,.cts,.mts ./",
"precommit": "eslint --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts ./",
"test": "jest"
},
"author": "William Wong (https://github.com/compulim)",
Expand All @@ -24,6 +24,7 @@
"jest": "^29.6.4"
},
"dependencies": {
"@babel/preset-react": "^7.22.15",
"message-port-rpc": "^0.0.0-0"
}
}
4 changes: 2 additions & 2 deletions packages/message-port-rpc/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/.env
/*.tgz
/CHANGELOG.md
/lib
/lib/
/LICENSE
/node_modules
/node_modules/
/README.md
2 changes: 1 addition & 1 deletion packages/message-port-rpc/babel.jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{
"modules": "commonjs",
"targets": {
"node": "16"
"node": "18"
}
}
]
Expand Down
1 change: 0 additions & 1 deletion packages/pages/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/node_modules/
/package-lock.json
/public/static/
2 changes: 1 addition & 1 deletion packages/pages/src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"esModuleInterop": true,
"jsx": "react",
"lib": ["DOM", "ESNext"],
"lib": ["DOM", "ESNext", "WebWorker"],
"moduleResolution": "Bundler",
"noEmit": true,
"strict": true,
Expand Down

0 comments on commit e99cfe8

Please sign in to comment.