-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
123 lines (123 loc) · 5.82 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"$template": "22.13.7",
"name": "type-scriptable",
"version": "23.4.1",
"description": "Write type-safe, concise, continuously-deployed Scriptable apps. Scriptable for iOS and iPadOS lets users author JavaScript procedures invokable by Apple Shortcuts, Share Sheet or Widgets, useful for home and device automation.",
"repository": "github:jimmy-zhening-luo/scriptable",
"license": "MIT",
"private": true,
"engineStrict": true,
"engines": {
"node": ">=22.13.1",
"npm": ">=10.9.0"
},
"peerDependenciesMeta": {},
"dependencies": {},
"devDependencies": {
"@types/chai": "^5.0.1",
"@types/mocha": "^10.0.10",
"chai": "^5.1.2",
"eslint": "~9.19.0",
"linted": "~26.3.0",
"mocha": "^11.1.0",
"npm-run-all": "^4.1.5",
"rexreplace": "^7.1.12",
"run-script-os": "^1.1.6",
"ts-add-js-extension": "^1.6.5",
"typescript": "^5.7.3"
},
"type": "module",
"main": "",
"types": "",
"config": {
"language": "ts",
"rewrite": "true",
"lint": "true"
},
"scripts": {
"build": "run-os",
"build:default": "npm run rebuild+lint+test -- $npm_package_config_language $npm_package_config_lint default",
"build:windows": "npm run rebuild+lint+test -- %npm_package_config_language% %npm_package_config_lint% windows",
"rebuild+lint+test": "run-s \"clean:{1}:{3}\" \"compile:{1}:*\" \"lint:{2}\" \"test:{1}\" --",
"clean:ts:default": "rm -rf dist",
"clean:ts:windows": "cmd /c if exist dist rmdir /s /q dist",
"clean:svelte:default": "rm -rf build .svelte-kit",
"clean:svelte:windows": "run-s clean:svelte:windows:*",
"clean:svelte:windows:build": "cmd /c if exist build rmdir /s /q build",
"clean:svelte:windows:kit": "cmd /c if exist .svelte-kit rmdir /s /q .svelte-kit",
"compile:ts:compile": "tsc",
"compile:ts:rewrite": "run-os",
"compile:ts:rewrite:default": "npm run compile:ts:rewrite+condition:$npm_package_config_rewrite",
"compile:ts:rewrite:windows": "npm run compile:ts:rewrite+condition:%npm_package_config_rewrite%",
"compile:ts:rewrite+condition:true": "ts-add-js-extension --dir=dist",
"compile:ts:rewrite+condition:false": "echo \"Skip rewrite TypeScript imports (fix=false)\"",
"compile:svelte:sync": "svelte-kit sync",
"compile:svelte:check": "svelte-check --tsconfig ./tsconfig.json",
"compile:svelte:compile": "vite build",
"lint": "npm run build",
"lint:true": "run-os",
"lint:true:default": "run-s lint:scope:global:* \"lint:scope:$npm_package_config_language\"",
"lint:true:windows": "run-s lint:scope:global:* \"lint:scope:%npm_package_config_language%\"",
"lint:false": "(npm run lint:true) || (echo \"Skipped linting (lint=false)\")",
"lint:scope:global:configs": "npm run linter -- {*,.github/**/*}.{json,jsonc,yml,yaml,js,cjs,mjs,ts,cts,mts}",
"lint:scope:global:code": "npm run linter -- {src,tests,static,typings}/**/*.{html,js,cjs,mjs,ts,cts,mts}",
"lint:scope:ts": "echo \"Linting `ts`\"",
"lint:scope:svelte": "npm run linter -- {src,tests,static}/**/*.svelte",
"linter": "eslint --cache --fix",
"postbuild": "echo \"Build (+lint) complete.\"",
"pretest": "npm run build",
"test": "",
"test:ts": "mocha",
"test:svelte": "",
"start": "run-os",
"start:default": "npm run start+os:$npm_package_config_language",
"start:windows": "npm run start+os:%npm_package_config_language%",
"start+os:ts": "node .",
"start+os:svelte": "vite preview",
"prestart": "npm test",
"prepublishOnly": "npm test",
"postpublish": "run-os",
"postpublish:default": "if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi",
"postpublish:windows": "cmd /c for /f \"delims=-\" %a in (\"%npm_package_version%\") do if \"%a\" == \"%npm_package_version%\" npm dist-tag add \"%npm_package_name%@%npm_package_version%\" latest",
"predeploy": "npm test",
"deploy": "run-s deploy:*",
"deploy:rm": "run-os",
"deploy:rm:default": "rm -rf packed",
"deploy:rm:windows": "cmd /c if exist packed rmdir /s /q packed",
"deploy:mk": "mkdir packed",
"deploy:copy": "run-os",
"deploy:copy:default": "cp -r dist/* packed",
"deploy:copy:windows": "cmd /c xcopy /e /k /h /i \"./dist\" \"packed\"",
"deploy:filter": "run-os",
"deploy:filter:default": "find packed -type f \\( -name \"*.tsbuildinfo\" -or -name \"*.d.ts\" -or -name \"*.map\" -or -name \"*.spec.js\" \\) -delete",
"deploy:filter:windows": "cmd /c del /s /q packed\\*.tsbuildinfo packed\\*.d.ts packed\\*.map packed\\*.spec.js",
"deploy:sed": "run-s deploy:sed:**",
"deploy:sed:prepend:app:header-strict": "rr \"^(\\/\\/ icon-color: [-a-z]+; icon-glyph: [-a-z]+;(?:\\s\\/\\/ share-sheet-inputs: [- ,a-z]+;)?)(.+)$\" \"// Variables used by Scriptable.\\n// These must be at the very top of the file. Do not edit.\\n€1\\n\\x22use strict\\x22;\\n€2\" -M -s -I -u \"packed/*.js\"",
"deploy:sed:prepend:lib:strict": "rr \"^((?!\\/\\/ Variables used by Scriptable\\.\\s).+)$\" \"\\x22use strict\\x22;\\n€1\" -M -s -I -u \"packed/**/*.js\"",
"deploy:sed:resolve:import": "rr \"import ([-_a-zA-Z0-9]+) from (.+);$\" \"const €1 = importModule(€2);\" -I -u \"packed/**/*.js\"",
"deploy:sed:resolve:export": "rr \"export default \" \"module.exports = \" -L -I \"packed/**/*.js\"",
"deploy:sed:delete:sourcemap": "rr \"^\\/\\/# sourceMappingURL=.+\\.map$\" \"\" -I -u \"packed/**/*.js\""
},
"publishConfig": {
"access": "public",
"tag": "next"
},
"mocha": {
"spec": [
"dist/**/*.spec.js"
]
},
"keywords": [
"scriptable",
"ios",
"ipados",
"iphone",
"ipad",
"apple",
"shortcuts",
"widget",
"automation",
"typescript"
],
"author": "Jimmy Zhening Luo <1450044+jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
}