Skip to content

Commit

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

* Add @babel/preset-react

---------

Co-authored-by: @compulim <@compulim>
Co-authored-by: William Wong <compulim@hotmail.com>
  • Loading branch information
compulim-workflow-bot[bot] and compulim authored Sep 25, 2023
1 parent c2ac5ee commit 15e31a8
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 10 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: use-ref-from
tag: ${{ github.ref_name }}
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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
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
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 @@ -19,6 +19,7 @@
"devDependencies": {
"@babel/core": "^7.22.17",
"@babel/preset-env": "^7.22.15",
"@babel/preset-react": "^7.22.15",
"@testing-library/react": "^14.0.0",
"@types/react": "^18.2.21",
"jest": "^29.6.4",
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
4 changes: 2 additions & 2 deletions packages/use-ref-from/.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/use-ref-from/babel.jest.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@babel/preset-env",
{
"modules": "commonjs",
"targets": { "node": "16" }
"targets": { "node": "18" }
}
]
],
Expand Down

0 comments on commit 15e31a8

Please sign in to comment.