npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@wisdomgarden/mobile-assets

v0.0.53

Published

host mobile assets

Downloads

25

Readme

Update assets flow

Add version records before uploading to the market

  1. ~~HiPaCloud~~飞书多维表格 Create a new version record and improve the release notes, need edit it manually.

  2. node scripts/add_market_apps_version.js Batch increase market version records

Update version info

一、modify version info json

  1. update version_update_android.json / version_update_ios.json(optional)
node scripts/update_app_version_md.js
// release note use markdown syntax
{
  "version": "2.0.8",
  "update_type": 1, // 0 force update
  "allow_lowest_version": "2.1.3", // if less than allow_lowest_version force update
  "app_store_url": "https://play.google.com/store/apps/details?id=com.wisdomgarden.trpc",
  "app_store_url_cn": "https://sj.qq.com/myapp/detail.htm?apkName=com.wisdomgarden.trpc", // only for android
  "release_note_en_us": "- IOS security zone adjustment\n- Repair job description is not displayed\n- Optimized job review logic\n- Fixed the problem that the default avatar was not displayed on the answering result page and the scoring page\n- Fix the interactive list, the students clicked and did not respond\n- Optimized the prompt information of interactive teaching materials\n- QR code sign-in failure page optimization\n- UI optimization",
  "release_note_zh_hans": "- IOS安全区域调整\n- 修复作业描述不显示\n- 作业批改逻辑优化\n- 修复抢答结果页和评分页面不显示默认头像\n- 修复互动列表,学生点击抢答无响应\n- 互动教材播放提示信息优化\n- 二维码签到失败页面优化\n- UI优化",
  "release_note_zh_hant": "- IOS安全區域調整\n- 修復作業描述不顯示問題\n- 作業批改邏輯優化\n- 修復搶答結果頁和評分頁面不顯示默認頭像問題\n- 修復互動列表,學生點擊搶答無反應問題\n- 互動教材播放提示文案優化\n- QR Code簽到失敗頁面優化\n- UI優化"
}
  1. update version_aligner.json(optional)
node scripts/update_version_aligner.cjs
// version_aligner.json use markdown syntax
// This json file records the correspondence between the mobile version and the web version
[
  {
    "mobileVersion": "xxx",
    "serverVersion": "xxx"
  }
]

二、upgrade package mobile-assets version

  1. check for errors then git commit git commit -m "update version file"
  2. node scripts/upgrade_version.js increase current project version number and add new tag
  3. git push && git push --tags push to GitHub, and Github Action publish it to npm @wisdomgarden/mobile-assets

三、refresh cdn

  1. after about 10 minutes, check jsDeliver package data util latest tag is same as package.json.version then bash scripts/refresh_cdn.sh refresh json file cdn cache
  2. preview release note. local use live server ./preview-release.html or Online from GitHub Pages

if update other file, edit refresh_cdn.sh, then run bash scripts/refresh_cdn.sh refresh it.

update privacy policy

  1. bash scripts/sync_privacy_files.sh
  2. goto [update version info] step 3
Upload zip file to Azure for TW

CMD: node ota/upload-to-azure.js qiniuZipUrl e.g. node ota/upload-to-azure.js https://mobile-download.tronclass.com.cn/mobile-2.0/ota/prod/2.2.9.1656581179.d71a7d06.zip

paremeter qiniuZipUrl: the latest ota zip file url on qiniu

Update tc-orgs-tool Ota Org Information

https://gitlab.tronclass.com.cn/lms/tc-orgs-tool

before

  • Clone git clone [email protected]:lms/tc-orgs-tool.git
  • Edit ota/.env.js set project path & LeanCloud API authorization information
  • Make sure OTAVersion prod env information correctly.
  • Run node ota/update-orgs-server-json.js
  • Goto tc-orgs-tool project, run python update_orgs.py