From 6157a5757a3a153d16ad97367aa636c109e769b2 Mon Sep 17 00:00:00 2001 From: Pavel <14926950+prichodko@users.noreply.github.com> Date: Fri, 25 Feb 2022 00:02:30 +0100 Subject: [PATCH] Remove unused files and cleanup package.json (#230) * Remove unused files * Cleanup package.json scripts and deps * Reorder package.json fields --- packages/status-core/.prettierignore | 2 -- packages/status-core/package.json | 40 +++++++++++++-------------- packages/status-react/.mocharc.json | 6 ---- packages/status-react/.prettierignore | 2 -- packages/status-react/buf.gen.yaml | 6 ---- packages/status-react/buf.yaml | 5 ---- packages/status-react/package.json | 38 ++++++++----------------- 7 files changed, 30 insertions(+), 69 deletions(-) delete mode 100644 packages/status-core/.prettierignore delete mode 100644 packages/status-react/.mocharc.json delete mode 100644 packages/status-react/.prettierignore delete mode 100644 packages/status-react/buf.gen.yaml delete mode 100644 packages/status-react/buf.yaml diff --git a/packages/status-core/.prettierignore b/packages/status-core/.prettierignore deleted file mode 100644 index 996c3a3..0000000 --- a/packages/status-core/.prettierignore +++ /dev/null @@ -1,2 +0,0 @@ -# package.json is formatted by package managers, so we ignore it here -package.json diff --git a/packages/status-core/package.json b/packages/status-core/package.json index 3e1158f..4808764 100644 --- a/packages/status-core/package.json +++ b/packages/status-core/package.json @@ -18,29 +18,13 @@ "prebuild": "rm -rf dist", "build": "parcel build", "build:types": "tsc --emitDeclarationOnly", - "fix": "run-s 'fix:*'", - "fix:lint": "eslint src --ext .ts --fix", - "test": "run-s 'test:*'", - "test:lint": "eslint src --ext .ts", - "test:unit": "mocha", + "typecheck": "tsc --noEmit", + "lint": "eslint src", + "format": "prettier --write src", + "test": "mocha", "proto": "run-s 'proto:*'", "proto:lint": "buf lint", - "proto:build": "buf generate", - "typecheck": "tsc --noEmit" - }, - "devDependencies": { - "@types/bn.js": "^5.1.0", - "@types/chai": "^4.2.22", - "@types/elliptic": "^6.4.14", - "@types/mocha": "^9.0.0", - "@types/pbkdf2": "^3.1.0", - "@types/secp256k1": "^4.0.3", - "@types/uuid": "^8.3.3", - "chai": "^4.3.4", - "mocha": "^9.1.1", - "npm-run-all": "^4.1.5", - "ts-node": "^10.2.1", - "ts-proto": "^1.83.0" + "proto:build": "buf generate" }, "dependencies": { "bn.js": "^5.2.0", @@ -55,5 +39,19 @@ "protobufjs": "^6.11.2", "secp256k1": "^4.0.2", "uuid": "^8.3.2" + }, + "devDependencies": { + "@types/bn.js": "^5.1.0", + "@types/chai": "^4.2.22", + "@types/elliptic": "^6.4.14", + "@types/mocha": "^9.0.0", + "@types/pbkdf2": "^3.1.0", + "@types/secp256k1": "^4.0.3", + "@types/uuid": "^8.3.3", + "chai": "^4.3.4", + "mocha": "^9.1.1", + "npm-run-all": "^4.1.5", + "ts-node": "^10.2.1", + "ts-proto": "^1.83.0" } } diff --git a/packages/status-react/.mocharc.json b/packages/status-react/.mocharc.json deleted file mode 100644 index b65763d..0000000 --- a/packages/status-react/.mocharc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extension": ["ts"], - "spec": "src/**/*.spec.ts", - "require": "ts-node/register", - "exit": true -} diff --git a/packages/status-react/.prettierignore b/packages/status-react/.prettierignore deleted file mode 100644 index 996c3a3..0000000 --- a/packages/status-react/.prettierignore +++ /dev/null @@ -1,2 +0,0 @@ -# package.json is formatted by package managers, so we ignore it here -package.json diff --git a/packages/status-react/buf.gen.yaml b/packages/status-react/buf.gen.yaml deleted file mode 100644 index 40edf96..0000000 --- a/packages/status-react/buf.gen.yaml +++ /dev/null @@ -1,6 +0,0 @@ -version: v1beta1 - -plugins: - - name: ts_proto - out: ./src/proto - opt: grpc_js,esModuleInterop=true diff --git a/packages/status-react/buf.yaml b/packages/status-react/buf.yaml deleted file mode 100644 index c7b2d89..0000000 --- a/packages/status-react/buf.yaml +++ /dev/null @@ -1,5 +0,0 @@ -version: v1beta1 - -build: - roots: - - ./proto diff --git a/packages/status-react/package.json b/packages/status-react/package.json index 7210b65..4260994 100644 --- a/packages/status-react/package.json +++ b/packages/status-react/package.json @@ -19,33 +19,9 @@ "prebuild": "rm -rf dist", "build": "parcel build", "build:types": "tsc --emitDeclarationOnly", - "fix": "run-s 'fix:*'", - "fix:lint": "eslint './{src,test}/**/*.{ts,tsx}' --fix", - "test": "run-s 'test:*'", - "test:lint": "eslint './{src,test}/**/*.{ts,tsx}'", - "proto": "run-s 'proto:*'", - "proto:lint": "buf lint", - "proto:build": "buf generate", - "typecheck": "tsc --noEmit" - }, - "devDependencies": { - "@types/chai": "^4.2.21", - "@types/emoji-mart": "^3.0.6", - "@types/hcaptcha__react-hcaptcha": "^0.1.5", - "@types/mocha": "^9.0.0", - "@types/node": "^16.9.6", - "@types/qrcode.react": "^1.0.2", - "@types/react": "^17.0.16", - "@types/styled-components": "^5.1.12", - "chai": "^4.3.4", - "copyfiles": "^2.4.1", - "jsdom": "^16.7.0", - "jsdom-global": "^3.0.2", - "mocha": "^9.0.3", - "npm-run-all": "^4.1.5", - "npm-watch": "^0.11.0", - "rimraf": "^3.0.2", - "ts-node": "^10.1.0" + "typecheck": "tsc --noEmit", + "lint": "eslint src", + "format": "prettier --write src" }, "dependencies": { "@status-im/core": "^0.0.0", @@ -59,5 +35,13 @@ "react-dom": "^17.0.2", "react-is": "^17.0.2", "styled-components": "^5.3.1" + }, + "devDependencies": { + "@types/emoji-mart": "^3.0.6", + "@types/hcaptcha__react-hcaptcha": "^0.1.5", + "@types/node": "^16.9.6", + "@types/qrcode.react": "^1.0.2", + "@types/react": "^17.0.16", + "@types/styled-components": "^5.1.12" } }