-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(template): [release-minor] polish create-blocklet template (#325)
* chore(ci): update ci version * chore(deps): update deps * chore(deps): update template deps * chore(deps): update zx & bumpp * chore(deps): update missing deps * chore(ci): update ci deps * chore(create): update react-static templace * chore(templace): update template html file viewport * chore(template): update clean script * chore(template): update react-dapp template * chore(template): update react-dapp-ts templat * chore(remplate): update prepare scripts * chore(template): update express-api template * chore(template): update nestjs-api template * chore(template): update solidjs-static template * chore(template): update solidjs-dapp template * chore(template): update vue-static template * chore(deps): update eslint-config-prettier version * chore(template): update vue-dapp template * chore(template): update svelte-static template * chore(template): update svelte-dapp template * chore(template): update todo-list-example template * chore(template): update dapp bundle mode -> compact * chore(style): update prettier config * chore(deps): update deps * chore(create): eslint should work with create-app * chore(template): tweak template info * chore(template): update template doc link * chore(template): update blocklet specVersion * chore(template): polish template details * chore(template): remove svelte template eslint config * chore(template): update template docs link * chore: update root bump-version script * chore(release): v0.8.0 * chore(deps): update deps * chore(template): update template author
- Loading branch information
1 parent
504845c
commit 37fa5f9
Showing
270 changed files
with
5,893 additions
and
5,176 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
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 |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
changed-files: ${{ toJSON(steps.changed-files-docs.outputs) }} | ||
bump-version: ${{ steps.changed-files-docs.outputs.only_changed == 'false' }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get changed files in the docs folder | ||
|
@@ -23,77 +23,22 @@ jobs: | |
files: | | ||
website/** | ||
upload: | ||
if: "! contains(toJSON(github.event.commits.*.message), '[skip actions]')" | ||
needs: check-files | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: latest | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
cache: 'pnpm' | ||
|
||
- run: npm add -g @antfu/ni | ||
- run: nci | ||
|
||
# - name: Deploy Page Site | ||
# uses: blocklet/action-workflow@v1 | ||
# with: | ||
# skip-deps: false | ||
# skip-bundle: false | ||
# skip-upload: true | ||
# skip-deploy: false | ||
# skip-release: true | ||
# deploy-app-did: zNKkQuRidtsBVskb8oDXKVh5PpM5uD5PKxim | ||
# deploy-mount-point: / | ||
# bundle-command: nr bundle | ||
# working-directory: website/pages | ||
# server-endpoint: ${{ secrets.XMARK_NODE_ENDPOINT }} | ||
# server-access-key: ${{ secrets.XMARK_NODE_ACCESS_KEY }} | ||
# server-access-secret: ${{ secrets.XMARK_NODE_ACCESS_SECRET }} | ||
# slack-webhook: ${{ secrets.SLACK_WEBHOOK }} | ||
|
||
# - name: Deploy Docs Site | ||
# uses: blocklet/action-workflow@v1 | ||
# with: | ||
# skip-deps: true | ||
# skip-bundle: false | ||
# skip-upload: true | ||
# skip-deploy: false | ||
# skip-release: true | ||
# deploy-app-did: zNKkQuRidtsBVskb8oDXKVh5PpM5uD5PKxim | ||
# deploy-mount-point: /docs | ||
# bundle-command: nr bundle | ||
# working-directory: website/docs | ||
# server-endpoint: ${{ secrets.XMARK_NODE_ENDPOINT }} | ||
# server-access-key: ${{ secrets.XMARK_NODE_ACCESS_KEY }} | ||
# server-access-secret: ${{ secrets.XMARK_NODE_ACCESS_SECRET }} | ||
# slack-webhook: ${{ secrets.SLACK_WEBHOOK }} | ||
|
||
publish: | ||
if: needs.check-files.outputs.bump-version == 'true' | ||
runs-on: ubuntu-latest | ||
needs: | ||
- check-files | ||
- upload | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GIT_HUB_TOKEN }} | ||
- uses: pnpm/action-setup@v2.0.1 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: latest | ||
- uses: actions/setup-node@v2 | ||
version: 9 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
node-version: '20' | ||
cache: 'pnpm' | ||
- run: npm add -g @antfu/ni | ||
- run: nci | ||
|
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 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,28 +1,28 @@ | ||
{ | ||
"name": "create-blocklet", | ||
"private": true, | ||
"version": "0.7.9", | ||
"version": "0.8.0", | ||
"description": "", | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"scripts": { | ||
"prepare": "npx simple-git-hooks", | ||
"debug": "node packages/create-app/index.js", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"bump-version": "zx --quiet scripts/bump-version.mjs", | ||
"update:deps": "pnpm -r exec taze -r -n '/arcblock|ocap|abtnode|blocklet|did-connect|did-comment|nedb/' -w", | ||
"update:deps": "pnpm -r exec npx taze -r -n '/arcblock|ocap|abtnode|blocklet|did-connect|did-comment|nedb/' -w", | ||
"preinstall": "npx only-allow pnpm", | ||
"publish-plugins": "zx --quiet scripts/publish-plugins.mjs" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
"bumpp": "^7.2.0", | ||
"taze": "^0.13.0", | ||
"zx": "^7.2.3" | ||
"bumpp": "^9.4.1", | ||
"zx": "^8.1.3" | ||
}, | ||
"devDependencies": { | ||
"simple-git-hooks": "^2.11.1" | ||
}, | ||
"resolutions": { | ||
"@blocklet/sdk": "^1.16.20", | ||
"vite": "^5.0.10", | ||
"vite-plugin-blocklet": "^0.7.1", | ||
"vite-plugin-node-polyfills": "^0.17.0" | ||
"simple-git-hooks": { | ||
"pre-commit": "pnpm -r 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
templates |
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
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 |
---|---|---|
|
@@ -14,6 +14,7 @@ build | |
dist | ||
dist-ssr | ||
.blocklet | ||
.next | ||
|
||
# local env files | ||
*.local | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* eslint-disable no-console */ | ||
|
||
import { rimrafSync } from 'rimraf'; | ||
|
||
console.log('clean .blocklet folder'); | ||
rimrafSync('.blocklet'); | ||
console.log('clean .blocklet folder done!'); |
Oops, something went wrong.