@showlotus/open-scriptable 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/package.json +17 -4
package/README.md
CHANGED
|
@@ -1 +1,17 @@
|
|
|
1
1
|
# Open-source Scriptable scripts for iOS
|
|
2
|
+
|
|
3
|
+
## 使用示例
|
|
4
|
+
|
|
5
|
+
```javascript
|
|
6
|
+
// 全局配置
|
|
7
|
+
const globalConfig = {
|
|
8
|
+
name: 'World',
|
|
9
|
+
};
|
|
10
|
+
// 加载脚本
|
|
11
|
+
const url = 'https://cdn.jsdelivr.net/npm/@showlotus/open-scriptable@0.1.0/dist/hello-world.js';
|
|
12
|
+
const code = await new Request(url).loadString();
|
|
13
|
+
// 执行脚本
|
|
14
|
+
eval(code);
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
<!--  -->
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@showlotus/open-scriptable",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Open-source Scriptable scripts for iOS",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Open-source Scriptable scripts for iOS Widgets",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@8.10.0",
|
|
7
7
|
"repository": {
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"open-source",
|
|
18
18
|
"ios",
|
|
19
19
|
"apple",
|
|
20
|
-
"scriptable-scripts"
|
|
20
|
+
"scriptable-scripts",
|
|
21
|
+
"widget"
|
|
21
22
|
],
|
|
22
23
|
"author": "showlotus <showlotus2000@gmail.com>",
|
|
23
24
|
"license": "MIT",
|
|
@@ -27,11 +28,23 @@
|
|
|
27
28
|
},
|
|
28
29
|
"devDependencies": {
|
|
29
30
|
"@types/node": "^24.9.2",
|
|
31
|
+
"husky": "^9.1.7",
|
|
32
|
+
"lint-staged": "^16.2.6",
|
|
33
|
+
"prettier": "^3.6.2",
|
|
30
34
|
"terser": "^5.44.0",
|
|
31
35
|
"vite": "^7.1.12"
|
|
32
36
|
},
|
|
37
|
+
"lint-staged": {
|
|
38
|
+
"*.{ts,js}": [
|
|
39
|
+
"prettier --write --ignore-unknown"
|
|
40
|
+
],
|
|
41
|
+
"*.{json,md}": [
|
|
42
|
+
"prettier --write --ignore-unknown"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
33
45
|
"scripts": {
|
|
34
46
|
"dev": "vite",
|
|
35
|
-
"build": "vite build"
|
|
47
|
+
"build": "vite build",
|
|
48
|
+
"lint-staged": "lint-staged"
|
|
36
49
|
}
|
|
37
50
|
}
|