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{
"name": "links-detector",
"version": "0.1.0",
"private": true,
"author": {
"name": "Oleksii Trekhleb",
"url": "https://www.linkedin.com/in/trekhleb/"
},
"homepage": "https://trekhleb.github.io/links-detector/",
"scripts": {
"format:index": "prettier \"public/index.html\" --write",
"cp-wasm": "cp node_modules/@tensorflow/tfjs-backend-wasm/dist/tfjs-backend-wasm.wasm ./public/wasm",
"cp-wasm-simd": "cp node_modules/@tensorflow/tfjs-backend-wasm/dist/tfjs-backend-wasm-simd.wasm ./public/wasm",
"cp-wasm-simd-thread": "cp node_modules/@tensorflow/tfjs-backend-wasm/dist/tfjs-backend-wasm-threaded-simd.wasm ./public/wasm",
"build:wasm": "yarn cp-wasm && yarn cp-wasm-simd && yarn cp-wasm-simd-thread",
"build:style": "tailwind build src/styles/index.css -o src/styles/tailwind.css",
"build:pwa": "pwa-asset-generator src/icons/pwa/links-detector-logo-white.svg public/icons --manifest public/manifest.json --index public/index.html --background black --path \"%PUBLIC_URL%\" --scrape false --icon-only",
"postbuild:pwa": "yarn run format:index",
"build:assets": "yarn build:wasm && yarn build:style && yarn build:pwa",
"prebuild": "yarn build:assets",
"build": "react-scripts build",
"prestart": "yarn build:assets",
"start": "react-scripts start",
"start-https": "HTTPS=true yarn start",
"prestart-prod": "yarn build",
"start-prod": "serve -c serve.json -l 4000",
"test": "react-scripts test",
"eject": "react-scripts eject",
"lint": "eslint 'src/**/*.{js,ts,tsx}'",
"predeploy": "yarn build",
"deploy": "gh-pages -d ./build"
},
"dependencies": {
"@tensorflow/tfjs": "^2.4.0",
"@tensorflow/tfjs-backend-wasm": "^2.7.0",
"@tensorflow/tfjs-core": "^2.4.0",
"@testing-library/jest-dom": "^5.11.5",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"@types/gtag.js": "^0.0.3",
"@types/jest": "^26.0.15",
"@types/lodash": "^4.14.161",
"@types/node": "^14.14.5",
"@types/react": "^16.9.0",
"@types/react-dom": "^16.9.0",
"@types/react-helmet": "^6.1.0",
"@types/react-router-dom": "^5.1.5",
"@types/tesseract.js": "^0.0.2",
"history": "^4.10.1",
"lodash": "^4.17.20",
"react": "^17.0.1 ",
"react-dom": "^17.0.1",
"react-helmet": "^6.1.0",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.0",
"tailwindcss": "^1.8.10",
"tesseract.js": "^2.1.3",
"typescript": "~4.0.5",
"workbox-core": "^5.1.3",
"workbox-expiration": "^5.1.3",
"workbox-precaching": "^5.1.3",
"workbox-routing": "^5.1.3",
"workbox-strategies": "^5.1.3",
"workbox-cacheable-response": "^5.1.3",
"workbox-google-analytics": "^5.1.3"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^4.1.1",
"@typescript-eslint/parser": "^4.1.1",
"eslint-config-airbnb": "^18.2.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-react": "^7.20.6",
"eslint-plugin-react-hooks": "^4.1.2",
"gh-pages": "^3.1.0",
"prettier": "^2.1.2",
"pwa-asset-generator": "^3.2.3",
"serve": "^11.3.2"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}