Skip to content

Commit

Permalink
feat: 使用 @pacakge 自定义 helper 获取 package.json 内容
Browse files Browse the repository at this point in the history
  • Loading branch information
baran.wang authored and VirgilClyne committed Oct 12, 2024
1 parent 3b3ff85 commit 18799a1
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 21 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"name": "weatherkit",
"version": "1.8.12",
"displayName": " iRingo: 🌤 WeatherKit",
"description": "iOS 18 & macOS 15 & watchOS 11\n1.解锁全部天气功能\n2.替换空气质量数据\n3.添加下一小时降水数据",
"homepage": "https://github.com/NSRingo/WeatherKit/wiki",
"type": "module",
"repository": {
Expand All @@ -23,7 +25,7 @@
"author": "VirgilClyne",
"license": "Apache-2.0",
"devDependencies": {
"@iringo/arguments-builder": "^1.2.0",
"@iringo/arguments-builder": "^1.6.0",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
Expand Down
6 changes: 3 additions & 3 deletions template/loon.handlebars
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!name =  iRingo: 🌤 WeatherKit
#!desc = iOS 18 & macOS 15 & watchOS 11\n1.解锁全部天气功能\n2.替换空气质量数据\n3.添加下一小时降水数据
#!name = {{@package 'displayName'}}
#!desc = {{inline (@package 'description')}}
#!openUrl = http://boxjs.com/#/app/iRingo.WeatherKit
#!author = VirgilClyne[https://github.com/VirgilClyne], WordlessEcho[https://github.com/WordlessEcho]
#!homepage = https://github.com/NSRingo
#!manual = https://github.com/NSRingo/WeatherKit/wiki
#!manual = {{@package 'homepage'}}
#!icon = https://developer.apple.com/assets/elements/icons/weatherkit/weatherkit-128x128.png
#!tag =  iRingo
#!system = iOS, iPadOS, tvOS, macOS
Expand Down
4 changes: 2 additions & 2 deletions template/quantumultx.handlebars
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!name =  iRingo: 🌤 WeatherKit
#!desc = iOS 18 & macOS 15 & watchOS 11\n1.解锁全部天气功能\n2.替换空气质量数据\n3.添加下一小时降水数据
#!name = {{@package 'displayName'}}
#!desc = {{inline (@package 'description')}}
#!openUrl = http://boxjs.com/#/app/iRingo.WeatherKit
#!author = VirgilClyne[https://github.com/VirgilClyne], WordlessEcho[https://github.com/WordlessEcho]
#!homepage = https://github.com/NSRingo
Expand Down
11 changes: 5 additions & 6 deletions template/stash.handlebars
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: " iRingo: 🌤 WeatherKit"
name: "{{@package 'displayName'}}"
desc: |-
iOS 18 & macOS 15 & watchOS 11
1.解锁全部天气功能
2.替换空气质量数据
3.添加下一小时降水数据
{{#each (splitLines (@package 'description'))}}
{{this}}
{{/each}}
openUrl: "http://boxjs.com/#/app/iRingo.WeatherKit"
author: |-
VirgilClyne[https://github.com/VirgilClyne]
WordlessEcho[https://github.com/WordlessEcho]
homepage: "https://github.com/NSRingo"
manual: "https://github.com/NSRingo/WeatherKit/wiki"
manual: "{{@package 'homepage'}}"
icon: "https://developer.apple.com/assets/elements/icons/weatherkit/weatherkit-128x128.png"
category: " iRingo"
date: "{{now "yyyy-MM-dd HH:mm:ss"}}"
Expand Down
6 changes: 3 additions & 3 deletions template/surge.handlebars
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!name =  iRingo: 🌤 WeatherKit
#!desc = iOS 18 & macOS 15 & watchOS 11\n1.解锁全部天气功能\n2.替换空气质量数据\n3.添加下一小时降水数据
#!name = {{@package 'displayName'}}
#!desc = {{inline (@package 'description')}}
#!openUrl = http://boxjs.com/#/app/iRingo.WeatherKit
#!author = VirgilClyne[https://github.com/VirgilClyne], WordlessEcho[https://github.com/WordlessEcho]
#!homepage = https://github.com/NSRingo
#!manual = https://github.com/NSRingo/WeatherKit/wiki
#!manual = {{@package 'homepage'}}
#!icon = https://developer.apple.com/assets/elements/icons/weatherkit/weatherkit-128x128.png
#!category =  iRingo
#!arguments = {{{arguments}}}
Expand Down

0 comments on commit 18799a1

Please sign in to comment.