-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
18 lines (18 loc) · 935 Bytes
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
"name": "xpm-redirect",
"version": "0.0.1",
"private": true,
"scripts": {
"deploy": "wrangler deploy && npm run check",
"dev": "wrangler dev",
"build": "dart compile js --server-mode --no-source-maps -O4 main.dart -o main.js && rm *.js.deps",
"get": "dart pub get && npm install",
"check-cli": "curl -Ls -o /dev/null -w \"%{url_effective}\" https://xpm.link | grep -q \"https://raw.githubusercontent.com/verseles/xpm/main/installer.bash\" && exit 0 || exit 1",
"check-browser": "curl -LsA \"Chrome/99.0.4844.84 Safari/537.36\" -o /dev/null -w \"%{url_effective}\" https://xpm.link | grep -q \"https://github.com/verseles/xpm\" && exit 0 || exit 1",
"check-all": "npm run check-cli && npm run check-browser",
"check": "npm run check-all && echo '\\033[0;32mREDIRECT IS WORKING\\033[0m' && exit 0 || echo '\\033[0;31mREDIRECT IS NOT WORKING\\033[0m' && exit 1"
},
"devDependencies": {
"wrangler": "^3.0.0"
}
}