2021-04-09 12:29:59 +02:00
|
|
|
{
|
|
|
|
"name": "telegram-t",
|
2022-04-01 21:01:52 +02:00
|
|
|
"version": "1.40.0",
|
2021-04-09 12:29:59 +02:00
|
|
|
"description": "",
|
|
|
|
"main": "index.js",
|
|
|
|
"scripts": {
|
2022-02-25 21:52:32 +01:00
|
|
|
"dev": "cross-env APP_ENV=development webpack serve --env mode=dev --env isDevServer --mode development --config ./webpack.config.js",
|
2021-08-03 00:31:12 +02:00
|
|
|
"build": "webpack --mode production",
|
2022-02-20 12:39:30 +01:00
|
|
|
"build:staging": "rm -rf dist/ && APP_ENV=staging APP_VERSION=$(npm run print_version --silent) npm run build && ./deploy/copy_to_dist.sh",
|
2021-06-14 19:04:10 +02:00
|
|
|
"build:production": "npm i && rm -rf dist/ && APP_VERSION=$(npm run inc_version --silent) APP_ENV=production npm run build && ./deploy/copy_to_dist.sh",
|
2021-06-21 15:41:19 +02:00
|
|
|
"deploy:production": "npm run build:production && git add -A && git commit -a -m '[Build]' --no-verify && git push",
|
2022-02-20 12:39:30 +01:00
|
|
|
"print_version": "node -p -e \"require('./package.json').version\"",
|
2021-06-14 18:45:39 +02:00
|
|
|
"inc_version": "echo $((`cat .patch-version` + 1)) > .patch-version && echo \"$(node -p -e \"require('./package.json').version.match(/^\\d+\\.\\d+/)[0]\").$(cat .patch-version)\"",
|
2022-03-05 18:06:26 +01:00
|
|
|
"check": "tsc && stylelint \"**/*.{css,scss}\" && eslint . --ext .ts,.tsx --ignore-pattern src/lib/gramjs",
|
|
|
|
"check:fix": "npm run check -- --fix",
|
2021-04-09 12:29:59 +02:00
|
|
|
"gramjs:tl": "node ./src/lib/gramjs/tl/generateModules.js",
|
2022-01-05 17:45:53 +01:00
|
|
|
"gramjs:lint:fix": "eslint ./src/lib/gramjs --fix",
|
2021-08-17 00:54:14 +02:00
|
|
|
"test": "cross-env APP_ENV=test jest --verbose --forceExit",
|
|
|
|
"prepare": "husky install"
|
2021-04-09 12:29:59 +02:00
|
|
|
},
|
|
|
|
"engines": {
|
2022-01-25 04:24:22 +01:00
|
|
|
"node": "^16.13",
|
2022-04-01 20:43:00 +02:00
|
|
|
"npm": "^8.5.2"
|
2021-04-09 12:29:59 +02:00
|
|
|
},
|
|
|
|
"husky": {
|
|
|
|
"hooks": {
|
2021-07-15 20:50:22 +02:00
|
|
|
"pre-commit": "tsc && lint-staged"
|
2021-04-09 12:29:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"lint-staged": {
|
2022-02-11 15:13:07 +01:00
|
|
|
"*.{ts,tsx,js}": "eslint --fix",
|
|
|
|
"*.{css,scss}": "stylelint --fix"
|
2021-04-09 12:29:59 +02:00
|
|
|
},
|
|
|
|
"author": "Alexander Zinchuk (alexander@zinchuk.com)",
|
|
|
|
"license": "GPL-3.0-or-later",
|
|
|
|
"devDependencies": {
|
2022-03-19 21:18:43 +01:00
|
|
|
"@babel/core": "^7.17.5",
|
2022-02-02 22:48:08 +01:00
|
|
|
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
|
|
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
|
2021-08-16 13:21:20 +02:00
|
|
|
"@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3",
|
2022-02-02 22:48:08 +01:00
|
|
|
"@babel/preset-env": "^7.16.11",
|
|
|
|
"@babel/preset-react": "^7.16.7",
|
|
|
|
"@babel/preset-typescript": "^7.16.7",
|
2022-03-19 21:18:43 +01:00
|
|
|
"@peculiar/webcrypto": "^1.3.2",
|
2022-02-11 15:13:05 +01:00
|
|
|
"@testing-library/jest-dom": "^5.16.2",
|
2021-08-16 13:21:20 +02:00
|
|
|
"@types/croppie": "^2.6.1",
|
2022-03-19 21:18:43 +01:00
|
|
|
"@types/jest": "^27.4.1",
|
|
|
|
"@types/react": "^17.0.40",
|
|
|
|
"@types/react-dom": "^17.0.13",
|
2022-02-02 22:48:08 +01:00
|
|
|
"@types/wicg-mediasession": "^1.1.3",
|
2022-03-19 21:18:43 +01:00
|
|
|
"@typescript-eslint/eslint-plugin": "^5.14.0",
|
|
|
|
"@typescript-eslint/parser": "^5.14.0",
|
2022-02-02 22:48:08 +01:00
|
|
|
"@webpack-cli/serve": "^1.6.1",
|
|
|
|
"autoprefixer": "^10.4.2",
|
|
|
|
"babel-loader": "^8.2.3",
|
2021-04-09 12:29:59 +02:00
|
|
|
"browserlist": "^1.0.1",
|
|
|
|
"buffer": "^6.0.3",
|
2021-08-16 13:21:20 +02:00
|
|
|
"cross-env": "^7.0.3",
|
2022-03-19 21:18:43 +01:00
|
|
|
"css-loader": "^6.7.1",
|
2022-02-02 22:48:08 +01:00
|
|
|
"css-minimizer-webpack-plugin": "^3.4.1",
|
2022-02-11 15:13:05 +01:00
|
|
|
"dotenv": "^16.0.0",
|
2022-03-19 21:18:43 +01:00
|
|
|
"eslint": "^8.10.0",
|
|
|
|
"eslint-config-airbnb": "^19.0.4",
|
|
|
|
"eslint-config-airbnb-typescript": "^16.1.1",
|
2022-02-02 22:48:08 +01:00
|
|
|
"eslint-config-react-app": "^7.0.0",
|
|
|
|
"eslint-import-resolver-webpack": "^0.13.2",
|
|
|
|
"eslint-plugin-flowtype": "^8.0.3",
|
|
|
|
"eslint-plugin-import": "^2.25.4",
|
|
|
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
2021-04-09 12:29:59 +02:00
|
|
|
"eslint-plugin-no-async-without-await": "^1.2.0",
|
|
|
|
"eslint-plugin-no-null": "^1.0.2",
|
2022-03-19 21:18:43 +01:00
|
|
|
"eslint-plugin-react": "^7.29.3",
|
2022-02-02 22:48:08 +01:00
|
|
|
"eslint-plugin-react-hooks": "^4.3.0",
|
2022-02-11 15:13:05 +01:00
|
|
|
"eslint-plugin-teactn": "git+https://github.com/korenskoy/eslint-plugin-teactn#c2c39dd005d58c07c24c4361de804dce1c6261b5",
|
2022-02-20 12:39:30 +01:00
|
|
|
"git-revision-webpack-plugin": "^5.0.0",
|
2022-02-02 22:48:08 +01:00
|
|
|
"html-webpack-plugin": "^5.5.0",
|
|
|
|
"husky": "^7.0.4",
|
2022-03-19 21:18:43 +01:00
|
|
|
"jest": "^27.5.1",
|
2021-10-22 12:49:27 +02:00
|
|
|
"jest-raw-loader": "^1.0.1",
|
2022-03-19 21:18:43 +01:00
|
|
|
"lint-staged": "^12.3.5",
|
|
|
|
"mini-css-extract-plugin": "^2.6.0",
|
2022-02-02 22:48:08 +01:00
|
|
|
"postcss-loader": "^6.2.1",
|
2022-03-19 21:18:43 +01:00
|
|
|
"postcss-modules": "^4.3.1",
|
2021-08-16 13:21:20 +02:00
|
|
|
"react": "^17.0.2",
|
2022-02-02 22:48:08 +01:00
|
|
|
"replace-in-file": "^6.3.2",
|
2022-03-19 21:18:43 +01:00
|
|
|
"sass": "^1.49.9",
|
|
|
|
"sass-loader": "^12.6.0",
|
2022-02-02 22:48:08 +01:00
|
|
|
"style-loader": "^3.3.1",
|
2022-03-19 21:18:43 +01:00
|
|
|
"stylelint": "^14.5.3",
|
2022-02-11 15:13:07 +01:00
|
|
|
"stylelint-config-recommended-scss": "^5.0.2",
|
2022-02-20 12:39:06 +01:00
|
|
|
"stylelint-declaration-block-no-ignored-properties": "^2.5.0",
|
|
|
|
"stylelint-group-selectors": "^1.0.8",
|
|
|
|
"stylelint-high-performance-animation": "^1.6.0",
|
2022-03-19 21:18:43 +01:00
|
|
|
"typescript": "^4.6.2",
|
|
|
|
"webpack": "^5.70.0",
|
2022-02-02 22:48:08 +01:00
|
|
|
"webpack-bundle-analyzer": "^4.5.0",
|
|
|
|
"webpack-cli": "^4.9.2",
|
2022-02-11 15:13:05 +01:00
|
|
|
"webpack-dev-server": "^4.7.4",
|
2021-08-16 13:21:20 +02:00
|
|
|
"webpack-merge": "^5.8.0"
|
2021-04-09 12:29:59 +02:00
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"@cryptography/aes": "^0.1.1",
|
2022-02-02 22:48:08 +01:00
|
|
|
"async-mutex": "^0.3.2",
|
2021-08-16 13:21:20 +02:00
|
|
|
"big-integer": "github:painor/BigInteger.js",
|
|
|
|
"croppie": "^2.6.5",
|
2022-04-01 20:43:00 +02:00
|
|
|
"emoji-data-ios": "git+https://github.com/korenskoy/emoji-data-ios#54443d1938ec1c157e74d2a95e9103dcb3f5c6dd",
|
2021-08-16 13:21:20 +02:00
|
|
|
"events": "^3.3.0",
|
2022-02-02 22:48:08 +01:00
|
|
|
"idb-keyval": "^6.1.0",
|
2022-04-01 20:43:24 +02:00
|
|
|
"music-metadata-browser": "^2.5.5",
|
2021-06-30 03:46:36 +02:00
|
|
|
"opus-recorder": "github:Ajaxy/opus-recorder",
|
2021-08-16 13:21:20 +02:00
|
|
|
"os-browserify": "^0.3.0",
|
|
|
|
"pako": "^2.0.4",
|
|
|
|
"path-browserify": "^1.0.1",
|
2022-04-01 20:43:24 +02:00
|
|
|
"process": "^0.11.10",
|
2022-03-25 13:14:51 +01:00
|
|
|
"qr-code-styling": "github:zubiden/qr-code-styling#10f7cf3",
|
2021-08-16 13:21:20 +02:00
|
|
|
"websocket": "^1.0.34"
|
2022-03-25 13:14:51 +01:00
|
|
|
},
|
|
|
|
"optionalDependencies": {
|
|
|
|
"fsevents": "2.1.2"
|
2021-04-09 12:29:59 +02:00
|
|
|
}
|
|
|
|
}
|