Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat init packages and ci #180

Merged
merged 6 commits into from
Dec 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: CI/CD

on:
push:
branches:
- main
- dev
- 'feat*'
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
environment: Production

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'


- name: dependencies cache
uses: actions/cache@v3
with:
path: |
~/.npm
~/.cache
~/node_modules
key: ${{ runner.os }}-dependencies-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-

- name: Debug NPM_TOKEN
run: |
echo "NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}"
echo "NPM_TOKEN_EMPTY: ${{ secrets.NPM_TOKEN_EMPTY }}"


- name: Yarn install
run: yarn install

- name: Run Packages Tests
run: |
ls -la
# yarn run test skip

- name: Build Packages
run: |
npx lerna exec --scope='@pagenote/*' --no-private --include-dependencies yarn build

- name: Set Git Identity
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"

#https://github.com/lerna/lerna/tree/main/libs/commands/version#semver-bump

# 开发阶段的版本号 预发布
- name: Lerna feature Version
if: startsWith(github.ref, 'refs/heads/feat')
run: |
npx lerna version prepatch --preid next --amend --conventional-commits --conventional-prerelease --yes

# 修订版本号
- name: Lerna dev Version
if: github.ref =='refs/heads/dev'
run: |
npx lerna version --no-private patch --yes

# 正式发布
- name: Lerna main Version
if: github.ref == 'refs/heads/main'
run: |
npx lerna version --no-private minor --yes

- name: Create .npmrc
run: echo 'registry=https://registry.npmjs.org' > ~/.npmrc && echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> ~/.npmrc

# https://github.com/lerna/lerna/tree/main/libs/commands/publish#readme
- name: Publish to NPM
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main'
run: |
npx lerna publish from-git --yes
env:
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
registry=https://registry.npm.taobao.org
canvas_binary_host_mirror=https://registry.npmmirror.com/-/binary/canvas
sass_binary_site=http://cdn.npm.taobao.org/dist/node-sass
2 changes: 1 addition & 1 deletion apps/web/.cache/3fdf1250-b41a-4e39-a387-4948be959ecd.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/web/.cache/author.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/web/.cache/cfd9af87-0210-4934-9e04-20bc708c4206.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/web/.cache/docs.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"id":"9ba20cf8-0ca1-4551-a93e-ca35f1064077","title":"站点地图"},{"id":"58a605be-aaf3-481a-af1a-ebb0a632b3b3","title":"工作居住证又该续期了"},{"id":"cfd9af87-0210-4934-9e04-20bc708c4206","title":"小而美的网页标记插件"},{"id":"0764216a-e635-4351-8314-0adafdc3ecf4","title":"PAGENOTE 的安装包【已废弃】"},{"id":"c62e7bf5-2a7d-43c6-818a-bf020cf4e06e","title":null,"path":"/release/0.28"},{"id":"3fdf1250-b41a-4e39-a387-4948be959ecd","title":null,"path":"/widget/404"},{"id":"b29f947e-1df6-4468-982e-e36e8ad1009c","title":null,"path":"/pro-plan"},{"id":"f304934c-4969-4297-864a-7c19cf3849b5","title":null,"path":"/release/0.27.5"},{"id":"e5106ae4-01a0-4d42-a976-33663d7035a1","title":null,"path":"/author"},{"id":"a661bcc2-9ff3-44d7-83d6-ce6fb2365d35","title":null,"path":"/welcome"},{"id":"f9c55128-801c-402b-817d-a19f002884ec","title":null,"path":"/enable-and-disable"},{"id":"0983443a-51b4-49dd-a7d0-ab98d5d5e9db","title":null,"path":"/no-cloud"},{"id":"3d2baccd-0973-44d8-8b43-4f532caeff4f","title":null,"path":"/blog/email-css"},{"id":"aaab185f-5ede-4bd0-8c5a-43c2ac478a37","title":null,"path":null},{"id":"915ba52d-75e3-4e3d-8918-220c82b0ee3d","title":null,"path":null},{"id":"aee3c465-c2a0-470b-8808-34c456f920f5","title":null,"path":null},{"id":"eced226c-6be2-4782-bfe6-bf62b0499205","title":null,"path":null},{"id":"0a4bfc38-348b-4eeb-b866-216534f9152c","title":null,"path":null},{"id":"7fbe3acf-efa1-489f-84e0-6298c8bd8ad3","title":null,"path":null},{"id":"6748f1bb-0fe3-426f-a4e3-1b68cb5fbbdb","title":null,"path":null},{"id":"e0359895-2f71-4772-a248-d23a0b4bd74b","title":null,"path":null},{"id":"4c8edcb8-bbc7-4234-ba0b-421b3a189f36","title":null,"path":null},{"id":"60bebcd4-b38d-4cc9-8bcf-6a18a02cac40","title":null,"path":null},{"id":"694d721c-fe9f-47e8-b964-c23a22ef3ab9","title":null,"path":null},{"id":"e9e32822-beef-46ff-a5db-350e963a899e","title":null,"path":null},{"id":"5588334e-8dd0-4e16-8d6f-5350ca665a02","title":null,"path":null},{"id":"2a762725-c462-4ac5-bc79-e2acfd68a24b","title":null,"path":null},{"id":"b28b892d-d780-4579-a9b6-13f3b046915b","title":null,"path":null},{"id":"28388002-352a-40da-aea6-39305afd85a6","title":null,"path":null},{"id":"284746d2-458a-4bb8-9aac-28372c617b99","title":null,"path":null},{"id":"12b82896-c51c-4863-b372-035146dc2f29","title":null,"path":null},{"id":"ab7af3cd-14e8-43bb-a246-2deb11423238","title":null,"path":null},{"id":"06863105-0f72-493a-94c3-76711982d466","title":null,"path":null},{"id":"51f37691-0ace-43e4-9c49-7c8863cc4993","title":null,"path":null},{"id":"d7861aa6-5588-4269-98f6-a17b1cfb95c8","title":null,"path":null},{"id":"753102c2-0dba-47f8-9469-67da548cf143","title":null,"path":null},{"id":"e3b644a0-518f-4810-bd98-4b8b2617bdd3","title":null,"path":null},{"id":"a5e1e936-d620-47c4-bf1a-a417125921c6","title":null,"path":null},{"id":"6bbcfbb4-7dfc-4fee-b469-253798b9a651","title":null},{"id":"c291c519-0790-4d29-840d-af76319fc17d","title":null,"path":null},{"id":"bca2ef1b-cd52-4696-b61d-c91fb2c40569","title":null},{"id":"235adb85-5806-41bf-9679-57883aff7bea","title":null},{"id":"2c603cff-ec49-4a11-b5f2-f9389ad5fdd0","title":null},{"id":"1a7275c3-cde5-4d0a-99a0-5da9c169d0a4","title":null,"path":null},{"id":"25627308-b485-4cf7-ac1b-65b33eaf0f37","title":null,"path":null},{"id":"10c96a45-0ab7-4006-b288-21ce3036b0a6","title":null,"path":null},{"id":"0aa54868-17fd-43fb-8e28-4b0c6be0ecd2","title":null,"path":null},{"id":"7ba7c5a3-d5d4-45a6-aad6-9c0339da8ead","title":null},{"id":"c9891d98-9fe7-4cb6-9762-d2c64b69ef9b","title":null,"path":null},{"id":"b897e266-6f2d-4f14-adab-1dbbff6bf3cd","title":null},{"id":"5e0e76c1-524b-4a54-9af6-85ad554d254f","title":null},{"id":"b2e67e7e-31cc-40ec-843c-a66cdfde05b9","title":null},{"id":"2f0c17a7-67e4-4fee-9293-1ec1eb06fee6","title":null},{"id":"9cbd0445-aaa8-4741-af57-fe11f5242e48","title":null},{"id":"305c4b4e-0ed6-4534-9e8a-eb3690c2f3e3","title":null},{"id":"b07c91eb-6da1-441d-a73b-5ecb79469705","title":null,"path":null},{"id":"c3ced5c3-a8dc-4d21-88a6-c8cd60df1a06","title":null,"path":"/author/repo"},{"id":"1d452a26-cb2b-48ea-836d-d623016b9afd","title":null,"path":null},{"id":"d993bb95-8366-4f74-8af3-327dc2ab6e23","title":null},{"id":"b1080080-e0b4-42d8-9c76-1ff68429a401","title":null,"path":null},{"id":"781cc734-3b44-44c8-b502-9ee3c3fd49ab","title":null,"path":null},{"id":"1cbedef7-9105-431c-a009-c2dc273ffdfb","title":null,"path":null},{"id":"e4058420-58d3-402d-bdbe-f39669cafb6d","title":null,"path":null},{"id":"69fbb335-7ced-48d3-96ac-e8d9ea988ea7","title":null},{"id":"9de44b27-de85-46f1-856c-ffe23f7b8381","title":null,"path":null},{"id":"9a579bae-c2a9-469b-b1fa-d4d5a35e8e12","title":null,"path":null},{"id":"3bcb2f84-5d7e-41ac-90da-fea92665a7cd","title":null,"path":null},{"id":"3ede4932-63fd-4a64-96de-bfcd995ab402","title":null},{"id":"5e8dfa9f-cbda-4b0c-8f56-f3331d5798e0","title":null},{"id":"f6a711d2-bd3e-42c9-881d-fd9ccf6268f6","title":null},{"id":"04067e95-9981-4dea-bd07-bcfc963d598e","title":null},{"id":"12f97ec8-a4ac-41b2-aaaa-7015dfa1beeb","title":null},{"id":"2acacc43-b85e-46ba-a645-76ebb14f51b1","title":null},{"id":"a219339a-09a7-4639-af4d-ec05c7fdc5e8","title":null},{"id":"d540b134-70fd-4440-bd8f-a1f307e42136","title":null},{"id":"eee47cca-a02d-46e6-8c4f-cf6c6f62eef1","title":null},{"id":"f4d5f30e-63f2-471d-adfc-1929439a54b7","title":null},{"id":"3d9bac74-2320-41c0-bb76-7d90b48743b2","title":null,"path":null},{"id":"83313279-3bc7-4b6f-9184-7900a7ad3013","title":null,"path":null},{"id":"fa3dd3df-3e31-43f1-84c5-4a8a3889f306","title":null,"path":null},{"id":"f927eefb-e6cb-4b0a-8f96-9777b69cfb87","title":null,"path":"/task/site-to-notion"},{"id":"e0b96687-c6be-42eb-99ef-fd8bda0be9c9","title":null,"path":null},{"id":"f54c32dc-754a-498c-aa9f-3450b3146904","title":null,"path":"new-manage"},{"id":"4bd76e5b-1f1b-4956-ad11-aae0f0458a22","title":null},{"id":"92ff9708-3509-40f6-aec3-da802a89d538","title":null},{"id":"1f8ede54-1453-452c-a462-ed8eab44e056","title":null},{"id":"60be217a-1bf2-45ef-9e29-1d481a2197c9","title":null},{"id":"b9d4b5ff-daad-415b-bf27-ece18caee506","title":null},{"id":"aec824b5-9b74-4a81-8e9d-d0d9f0239dd5","title":null},{"id":"ee2b6d3b-091a-478e-81a1-1a656433fde0","title":null},{"id":"66a2ee89-0eb7-477a-8fff-ef573f405c70","title":null},{"id":"977f9331-8864-415b-be64-4f6aef3de5f9","title":null},{"id":"fe96d34e-7c5b-43a3-aa35-1f92fb3b8a05","title":null},{"id":"5b564b0b-599d-4449-b46a-e3750c333874","title":null},{"id":"15f87b23-6df0-4afa-9f69-a6f0ad16ba01","title":null},{"id":"8412a8bc-0a7d-4bcf-9127-56b7b19bc454","title":null},{"id":"4144b787-d46e-47f9-bf56-150a18cbdfb5","title":null},{"id":"4ed708a3-5c2a-4df3-8c1d-a72ffaa22df9","title":null},{"id":"ac7905c4-868f-4c66-b8eb-69b806f14378","title":null},{"id":"c2c6f94f-162c-4d27-a568-81491fff67ce","title":null}]
[{"id":"6a735312-4e9d-4d49-a6a2-bed07acff3df","title":"把Notion当作 PAGENOTE 的数据库,存储数据[已废弃⚠️]"},{"id":"b7f758f3-1101-46c5-b9ef-1f29f76102cf","title":"配置"},{"id":"8013dcda-1e18-402f-8375-0af46f8d7fce","title":"辞不了的职"},{"id":"58a605be-aaf3-481a-af1a-ebb0a632b3b3","title":"工作居住证又该续期了"},{"id":"0764216a-e635-4351-8314-0adafdc3ecf4","title":"PAGENOTE 的安装包【已废弃】"},{"id":"7e493285-94b4-4142-8c5a-087206c989e1","title":"解放 control C"},{"id":"9ba20cf8-0ca1-4551-a93e-ca35f1064077","title":"站点地图"},{"id":"cfd9af87-0210-4934-9e04-20bc708c4206","title":"小而美的网页标记插件"},{"id":"42d2c3c3-3f48-4770-83ca-b8165f1e6d63","title":null},{"id":"c62e7bf5-2a7d-43c6-818a-bf020cf4e06e","title":null,"path":"/release/0.28"},{"id":"9034e547-f473-49b7-9b1d-76cca86c132e","title":null,"path":"/download"},{"id":"f304934c-4969-4297-864a-7c19cf3849b5","title":null,"path":"/release/0.27.5"},{"id":"bdc8dfa9-d384-4062-b1ad-34438bfc24a3","title":null,"path":null},{"id":"c5865cde-2ef5-4f36-9c0f-e2dce97f6a1c","title":null,"path":"/release"},{"id":"3fdf1250-b41a-4e39-a387-4948be959ecd","title":null,"path":"/widget/404"},{"id":"b29f947e-1df6-4468-982e-e36e8ad1009c","title":null,"path":"/pro-plan"},{"id":"e5106ae4-01a0-4d42-a976-33663d7035a1","title":null,"path":"/author"},{"id":"a661bcc2-9ff3-44d7-83d6-ce6fb2365d35","title":null,"path":"/welcome"},{"id":"f9c55128-801c-402b-817d-a19f002884ec","title":null,"path":"/enable-and-disable"},{"id":"0983443a-51b4-49dd-a7d0-ab98d5d5e9db","title":null,"path":"/no-cloud"},{"id":"1692abfe-6bd3-485f-a195-d13fb4659301","title":null,"path":"/privacy"},{"id":"3d2baccd-0973-44d8-8b43-4f532caeff4f","title":null,"path":"/blog/email-css"},{"id":"cf23ccbd-6b9d-4f0b-857f-561cbb7cddf0","title":null,"path":null},{"id":"aaab185f-5ede-4bd0-8c5a-43c2ac478a37","title":null,"path":null},{"id":"8e1b5b87-71e0-42c1-ac34-c259319557d2","title":null},{"id":"fca779b7-95c0-4b70-88aa-eabc345a7af8","title":null,"path":"/question"},{"id":"e5d356bf-66ce-48c0-9f45-38c69dff5ccc","title":null},{"id":"a1f8ff92-6077-4538-b35f-aa65c4e87eeb","title":null,"path":"/status"},{"id":"ddf8a5e2-0d88-408e-afb6-4cc5c72fcc7f","title":null,"path":"/expired"},{"id":"915ba52d-75e3-4e3d-8918-220c82b0ee3d","title":null,"path":null},{"id":"242a496b-2c57-486f-bfa5-3936a13e16f4","title":null,"path":"/bind-vip"},{"id":"96d0f3f4-fc3d-4b82-b38b-41d94dd8b339","title":null,"path":"/guide/shortcut"},{"id":"fda34ddd-7dd3-4a5c-9918-8cdcadaa6d12","title":null,"path":"/rate"},{"id":"b3d6cf07-fb8a-4c8c-91d1-d2c48169eed5","title":null,"path":"/shortcuts"},{"id":"926d543b-fad8-4818-952f-15bfc096c038","title":null,"path":"/uninstall"},{"id":"449f7171-8669-4087-a4a4-cff5852cf98d","title":null,"path":"/skills"},{"id":"98f1167c-3e07-4ee8-8971-cf33ce8c4df7","title":null,"path":"/versions"},{"id":"aee3c465-c2a0-470b-8808-34c456f920f5","title":null,"path":null},{"id":"eced226c-6be2-4782-bfe6-bf62b0499205","title":null,"path":null},{"id":"0a4bfc38-348b-4eeb-b866-216534f9152c","title":null,"path":null},{"id":"7fbe3acf-efa1-489f-84e0-6298c8bd8ad3","title":null,"path":null},{"id":"6748f1bb-0fe3-426f-a4e3-1b68cb5fbbdb","title":null,"path":null},{"id":"e0359895-2f71-4772-a248-d23a0b4bd74b","title":null,"path":null},{"id":"4c8edcb8-bbc7-4234-ba0b-421b3a189f36","title":null,"path":null},{"id":"60bebcd4-b38d-4cc9-8bcf-6a18a02cac40","title":null,"path":null},{"id":"694d721c-fe9f-47e8-b964-c23a22ef3ab9","title":null,"path":null},{"id":"e9e32822-beef-46ff-a5db-350e963a899e","title":null,"path":null},{"id":"5588334e-8dd0-4e16-8d6f-5350ca665a02","title":null,"path":null},{"id":"2a762725-c462-4ac5-bc79-e2acfd68a24b","title":null,"path":null},{"id":"b28b892d-d780-4579-a9b6-13f3b046915b","title":null,"path":null},{"id":"28388002-352a-40da-aea6-39305afd85a6","title":null,"path":null},{"id":"284746d2-458a-4bb8-9aac-28372c617b99","title":null,"path":null},{"id":"12b82896-c51c-4863-b372-035146dc2f29","title":null,"path":null},{"id":"ab7af3cd-14e8-43bb-a246-2deb11423238","title":null,"path":null},{"id":"06863105-0f72-493a-94c3-76711982d466","title":null,"path":null},{"id":"51f37691-0ace-43e4-9c49-7c8863cc4993","title":null,"path":null},{"id":"d7861aa6-5588-4269-98f6-a17b1cfb95c8","title":null,"path":null},{"id":"753102c2-0dba-47f8-9469-67da548cf143","title":null,"path":null},{"id":"e3b644a0-518f-4810-bd98-4b8b2617bdd3","title":null,"path":null},{"id":"a5e1e936-d620-47c4-bf1a-a417125921c6","title":null,"path":null},{"id":"ce1300d2-471b-4391-946b-d1a7c281758f","title":null,"path":null},{"id":"6bbcfbb4-7dfc-4fee-b469-253798b9a651","title":null},{"id":"c291c519-0790-4d29-840d-af76319fc17d","title":null,"path":null},{"id":"bca2ef1b-cd52-4696-b61d-c91fb2c40569","title":null},{"id":"5f3ce46d-f6ed-47fa-a6a9-1316ed211eb7","title":null,"path":"/install"},{"id":"defbcdc8-ea4d-4d91-b58d-70463a267a26","title":null,"path":"/items"},{"id":"4eae89de-d637-439d-9b4f-93b95cddd9f3","title":null,"path":"/donation"},{"id":"235adb85-5806-41bf-9679-57883aff7bea","title":null},{"id":"2c603cff-ec49-4a11-b5f2-f9389ad5fdd0","title":null},{"id":"1a7275c3-cde5-4d0a-99a0-5da9c169d0a4","title":null,"path":null},{"id":"25627308-b485-4cf7-ac1b-65b33eaf0f37","title":null,"path":null},{"id":"10c96a45-0ab7-4006-b288-21ce3036b0a6","title":null,"path":null},{"id":"2a43527b-16c0-4ec2-aa26-90dd4aa92293","title":null,"path":"/developer/project"},{"id":"80028db3-0815-4184-96e2-575bac9e9b98","title":null,"path":"/invite"},{"id":"0aa54868-17fd-43fb-8e28-4b0c6be0ecd2","title":null,"path":null},{"id":"7ba7c5a3-d5d4-45a6-aad6-9c0339da8ead","title":null},{"id":"c9891d98-9fe7-4cb6-9762-d2c64b69ef9b","title":null,"path":null},{"id":"b897e266-6f2d-4f14-adab-1dbbff6bf3cd","title":null},{"id":"5e0e76c1-524b-4a54-9af6-85ad554d254f","title":null},{"id":"b2e67e7e-31cc-40ec-843c-a66cdfde05b9","title":null},{"id":"2f0c17a7-67e4-4fee-9293-1ec1eb06fee6","title":null},{"id":"9cbd0445-aaa8-4741-af57-fe11f5242e48","title":null},{"id":"305c4b4e-0ed6-4534-9e8a-eb3690c2f3e3","title":null},{"id":"b07c91eb-6da1-441d-a73b-5ecb79469705","title":null,"path":null},{"id":"c3ced5c3-a8dc-4d21-88a6-c8cd60df1a06","title":null,"path":"/author/repo"},{"id":"1d452a26-cb2b-48ea-836d-d623016b9afd","title":null,"path":null},{"id":"d993bb95-8366-4f74-8af3-327dc2ab6e23","title":null},{"id":"b1080080-e0b4-42d8-9c76-1ff68429a401","title":null,"path":null},{"id":"781cc734-3b44-44c8-b502-9ee3c3fd49ab","title":null,"path":null},{"id":"1cbedef7-9105-431c-a009-c2dc273ffdfb","title":null,"path":null},{"id":"e4058420-58d3-402d-bdbe-f39669cafb6d","title":null,"path":null},{"id":"69fbb335-7ced-48d3-96ac-e8d9ea988ea7","title":null},{"id":"9de44b27-de85-46f1-856c-ffe23f7b8381","title":null,"path":null},{"id":"9a579bae-c2a9-469b-b1fa-d4d5a35e8e12","title":null,"path":null},{"id":"3bcb2f84-5d7e-41ac-90da-fea92665a7cd","title":null,"path":null},{"id":"3ede4932-63fd-4a64-96de-bfcd995ab402","title":null},{"id":"5e8dfa9f-cbda-4b0c-8f56-f3331d5798e0","title":null},{"id":"f6a711d2-bd3e-42c9-881d-fd9ccf6268f6","title":null},{"id":"04067e95-9981-4dea-bd07-bcfc963d598e","title":null},{"id":"12f97ec8-a4ac-41b2-aaaa-7015dfa1beeb","title":null}]
2 changes: 1 addition & 1 deletion apps/web/.cache/enable-and-disable.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/web/.cache/no-cloud.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/web/.cache/pro-plan.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/web/.cache/release.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/web/.cache/release/0.27.5.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/web/.cache/release/0.28.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/web/.cache/welcome.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/web/.cache/widget/404.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions apps/web/hooks/useOfflineHtml.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import useSWR from 'swr'
import extApi from '@pagenote/shared/lib/pagenote-api'
import { TableSchemaBasicFields } from '@pagenote/shared/lib/extApi'
import {TableSchemaBasicFields} from '@pagenote/shared/lib/extApi'

export default function useOfflineHtml() {
// TODO key 发生变化后, 缓存仍然存在,没有被销毁,有内存泄漏的问题
Expand Down Expand Up @@ -31,7 +31,8 @@ export default function useOfflineHtml() {
}
)
.then(function (res) {
return res.data
return res.data as unknown as
Record<string, TableSchemaBasicFields & { name?: string }[]>
})
}

Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@
"react-router-dom": "^6.6.1",
"sass": "^1.62.0",
"tailwindcss": "^3.2.4",
"typescript": "4.8.4"
"typescript": "^5.3.3"
}
}
11 changes: 11 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "independent",
"npmClient": "yarn",
"ignoreChanges": ["**/__fixtures__/**", "**/__tests__/**", "**/*.md"],
"command": {
"publish": {
"allowBranch": ["main","dev","feat*"]
}
}
}
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prepare": "husky install",
"test": "yarn workspaces run test",
"prepare": "echo 'skip husky install'",
"dev": "yarn workspaces run dev",
"build": "yarn workspaces run build",
"dev-web": "lerna run --scope=pagenote-web --include-dependencies dev",
"build": "lerna run --scope=pagenote-web --include-dependencies build",
"lint": "yarn workspaces run lint"
},
"engines": {
Expand All @@ -21,8 +22,8 @@
"apps/*"
],
"devDependencies": {
"lerna": "^8.0.1",
"husky": "8.0.0",
"next": "^13.5.3",
"typescript": "^5.3.3"
},
"license": "ISC"
Expand Down
1 change: 1 addition & 0 deletions packages/bridge/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
lib
dist
21 changes: 21 additions & 0 deletions packages/bridge/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 rowthan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
9 changes: 6 additions & 3 deletions packages/bridge/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
{
"private": true,
"name": "@pagenote/bridge",
"version": "1.0.0",
"version": "1.0.2-alpha.0",
"description": "",
"main": "src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "echo \"skip: no test specified\"",
"build": "rm -rf lib && tsc -p tsconfig.json",
"prepare": "yarn run build",
"dev": "tsc --watch -p tsconfig.json",
"lint": "echo \"skip\""
},
"files": ["lib/**"],
"files": [
"dist/**"
],
"devDependencies": {
"@types/chrome": "0.0.177"
},
Expand Down
Loading