{"id":16394047,"url":"https://github.com/2214962083/ios-scriptable-tsx","last_synced_at":"2025-07-28T16:32:54.706Z","repository":{"id":55165298,"uuid":"314511269","full_name":"2214962083/ios-scriptable-tsx","owner":"2214962083","description":"在 vscode 上使用 typescript 和 jsx 开发 ios 小组件的小框架.基于 Scriptable app.","archived":false,"fork":false,"pushed_at":"2021-01-06T09:35:58.000Z","size":515,"stargazers_count":128,"open_issues_count":3,"forks_count":22,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-11-18T16:45:49.958Z","etag":null,"topics":["ios","ios-widget","jsx","scriptable","scriptable-object","tsx","typescript","vscode","widget"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/2214962083.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-20T09:49:37.000Z","updated_at":"2024-10-03T13:14:27.000Z","dependencies_parsed_at":"2022-08-14T14:21:20.228Z","dependency_job_id":null,"html_url":"https://github.com/2214962083/ios-scriptable-tsx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2214962083%2Fios-scriptable-tsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2214962083%2Fios-scriptable-tsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2214962083%2Fios-scriptable-tsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2214962083%2Fios-scriptable-tsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2214962083","download_url":"https://codeload.github.com/2214962083/ios-scriptable-tsx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227513312,"owners_count":17782633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","ios-widget","jsx","scriptable","scriptable-object","tsx","typescript","vscode","widget"],"created_at":"2024-10-11T04:54:47.086Z","updated_at":"2024-12-03T14:19:18.567Z","avatar_url":"https://github.com/2214962083.png","language":"JavaScript","readme":"\u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/2214962083/ios-scriptable-tsx\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg width=\"100\" src=\"https://p.pstatp.com/origin/1383f0000b2ce54d280a2\" alt=\"ios-scriptable-tsx logo\" style=\"border-radius: 30px;\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003c!-- package.json 版本 --\u003e\n  \u003ca href=\"https://github.com/2214962083/ios-scriptable-tsx\"\u003e\u003cimg src=\"https://img.shields.io/github/package-json/v/2214962083/ios-scriptable-tsx\" alt=\"Version\"\u003e\u003c/a\u003e\n  \u003c!-- star数量 --\u003e\n  \u003ca href=\"https://github.com/2214962083/ios-scriptable-tsx\"\u003e\u003cimg src=\"https://img.shields.io/github/stars/2214962083/ios-scriptable-tsx\" alt=\"Github stars\"\u003e\u003c/a\u003e\n  \u003c!-- issues --\u003e\n  \u003ca href=\"https://github.com/2214962083/ios-scriptable-tsx/issues\"\u003e\u003cimg src=\"https://img.shields.io/github/issues/2214962083/ios-scriptable-tsx\" alt=\"Issues\"\u003e\u003c/a\u003e\n  \u003c!-- 仓库大小 --\u003e\n  \u003ca href=\"https://github.com/2214962083/ios-scriptable-tsx\"\u003e\u003cimg src=\"https://img.shields.io/github/repo-size/2214962083/ios-scriptable-tsx\" alt=\"Repo size\"\u003e\u003c/a\u003e\n  \u003c!-- 语言 --\u003e\n  \u003ca href=\"https://github.com/2214962083/ios-scriptable-tsx\"\u003e\u003cimg src=\"https://img.shields.io/github/languages/top/2214962083/ios-scriptable-tsx\" alt=\"Language\"\u003e\u003c/a\u003e\n  \u003c!-- 最后一次提交时间 --\u003e\n  \u003ca href=\"https://github.com/2214962083/ios-scriptable-tsx\"\u003e\u003cimg src=\"https://img.shields.io/github/last-commit/2214962083/ios-scriptable-tsx\" alt=\"Last commit date\"\u003e\u003c/a\u003e\n  \u003c!-- 证书 --\u003e\n  \u003ca href=\"https://github.com/2214962083/ios-scriptable-tsx/blob/master/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/2214962083/ios-scriptable-tsx\" alt=\"License\"\u003e\u003c/a\u003e\n  \u003c!-- package.json 关键词 --\u003e\n  \u003ca href=\"https://github.com/2214962083/ios-scriptable-tsx\"\u003e\u003cimg src=\"https://img.shields.io/github/package-json/keywords/2214962083/ios-scriptable-tsx\" alt=\"Keywords\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003ch2 align=\"center\"\u003eios-scriptable-tsx\u003c/h2\u003e\n\n\u003cbr/\u003e\u003cbr/\u003e\n\n## 介绍\n\n本项目旨在给 `Scriptable` 开发者提供舒适的开发体验,  `Scriptable` 是 ios 上一个用 js 开发桌面小组件的 app ，如果你还没安装，可以[点我下载](https://apps.apple.com/us/app/scriptable/id1405459188)\n\n\u003cbr/\u003e\n\n`ios-scriptable-tsx` 是一个二次封装 `Scriptable` 官方 api 的开发框架，它具有以下特点：\n\n\u003cbr/\u003e\n\n**1. 支持在 pc 开发，支持实时监听修改、编译同步到手机运行。**\n\n\u003cbr/\u003e\n\n**2. 支持使用 typescript 和 tsx 开发小组件，支持 api 类型提示、自动补全。**\n\n\u003cbr/\u003e\n\n**3. 支持打包混淆、加密 js。**\n\n\u003cbr/\u003e\n\n**4. 支持远程输出 console 日志到 pc 的命令窗口。**\n\n\u003cbr/\u003e\n\n**5. 支持环境变量定义，打包时自动替换环境变量为预设值。**\n\n\u003cbr/\u003e\n\n**6. 常用函数封装，使用更便捷。**\n\n\u003cbr/\u003e\n\n## 使用\n\n1. 先克隆本仓库\n\n    ```bash\n    git clone https://github.com/2214962083/ios-scriptable-tsx.git\n    ```\n\n\u003cbr/\u003e\n\n2. 进入到 `ios-scriptable-tsx` 目录里，执行 `npm install` 安装依赖\n   \n\n\u003cbr/\u003e\n\n3. 打开 vscode 愉快开发，打包入口文件默认是 `./src/index.ts`\n   \n\n\u003cbr/\u003e\n\n4. 执行 `npm run build` 打包到 `./dist` 文件夹\n\n\u003cbr/\u003e\n\n## 文档\n- [快速上手](./docs/quick-start.md#quick-start)\n- [命令说明](./docs/quick-start.md#command-introduction)\n- [项目目录说明和配置指南](./docs/config.md#config-introduction)\n  - [项目目录说明](./docs/config.md#project-dir-introduction)\n  - [打包配置](./docs/config.md#scriptable-config)\n  - [其他配置](./docs/config.md#others-config)\n  - [环境变量](./docs/config.md#env-config)\n- [JSX 组件](./docs/widget-element.md#jsx-element)\n  - [wbox 盒子组件](./docs/widget-element.md#wbox)\n  - [wstack 容器组件](./docs/widget-element.md#wstack)\n  - [wimage 图片组件](./docs/widget-element.md#wimage)\n  - [wspacer 空格占位组件](./docs/widget-element.md#wspacer)\n  - [wtext 文字组件](./docs/widget-element.md#wtext)\n  - [wdate 日期组件](./docs/widget-element.md#wdate)\n- [常用函数封装](https://github.com/2214962083/ios-scriptable-tsx/blob/master/src/lib/help.ts)\n- [常见问题](./docs/questions.md)\n- [Scriptable 官方 api 文档](https://docs.scriptable.app/)\u003cbr/\u003e\u003cbr/\u003e\n\n## 讨论\n\n- [Scriptable 官方论坛](https://talk.automators.fm/c/scriptable/13)\u003cbr/\u003e\u003cbr/\u003e\n\n## 项目参考\n\n- [「小件件」开发框架](https://github.com/im3x/Scriptables)\n- [Scriptable](https://github.com/dompling/Scriptable)\n- [Transparent-Scriptable-Widget](https://github.com/mzeryck/Transparent-Scriptable-Widget)\u003cbr/\u003e\u003cbr/\u003e\n\n## 许可证\n\n[MIT](https://opensource.org/licenses/MIT)\n\nCopyright (c) 2020-present, Yang xiaoming\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2214962083%2Fios-scriptable-tsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2214962083%2Fios-scriptable-tsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2214962083%2Fios-scriptable-tsx/lists"}