Watch-on-LBRY/package.json
Kevin Raoofi 9f8e521fa6 URL parsing for app redirects
URL parsing logic is basically a straight port of how lbryio/lbry-sdk
parses lbry URLs. While there's a lot more going on, it should be
easier to follow what they're doing this way.

Also, added some light unit tests for the URL parsing using jest.
Which, of course, needed a babel config.

With this, tabOnUpdated was able to be rewritten more elegantly to
handle redirects as it delegates a lot of the work to utilities now.
2020-10-13 05:39:47 -04:00

37 lines
1.2 KiB
JSON

{
"name": "watch-on-lbry",
"version": "1.5.4",
"license": "GPL-3.0",
"scripts": {
"build:assets": "cpx \"src/**/*.{json,png}\" dist/",
"watch:assets": "cpx --watch -v \"src/**/*.{json,png}\" dist/",
"build:parcel": "cross-env NODE_ENV=production parcel build --no-source-maps \"src/scripts/*.{js,ts}\" \"src/**/*.html\"",
"watch:parcel": "parcel watch --no-hmr --no-source-maps \"src/scripts/*.{js,ts}\" \"src/**/*.html\"",
"build": "npm-run-all -l -p build:parcel build:assets",
"watch": "npm-run-all -l -p watch:parcel watch:assets",
"start:chrome": "web-ext run -t chromium --source-dir ./dist",
"start:firefox": "web-ext run --source-dir ./dist",
"test": "jest"
},
"browserslist": [
">1%",
"not ie > 0"
],
"dependencies": {},
"devDependencies": {
"@babel/preset-typescript": "^7.10.4",
"@types/chrome": "0.0.124",
"@types/lodash": "^4.14.162",
"cpx": "^1.5.0",
"cross-env": "^7.0.2",
"@types/jest": "^26.0.14",
"jest": "^26.5.3",
"lodash": "^4.17.20",
"npm-run-all": "^4.1.5",
"parcel-bundler": "^1.12.4",
"braces": ">=2.3.1",
"node-forge": ">=0.10.0",
"typescript": "^4.0.3",
"web-ext": "^5.2.0"
}
}