From 3b60961f3875ca763893f1be2d63f304a83dd9d1 Mon Sep 17 00:00:00 2001 From: Maksim Sinik Date: Thu, 6 Feb 2020 12:27:59 +0100 Subject: [PATCH] feat: add analyze script --- package.json | 5 +++-- tsconfig.json | 27 +++++++++------------------ 2 files changed, 12 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index 99c77f2074..c809f0144f 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,6 @@ "author": "Jack Meyer", "contributors": [ "Maksim Sinik", - "Michael J Feher", "Stefano Casasola" ], "devDependencies": { @@ -65,8 +64,8 @@ "@types/react-router": "~5.1.2", "@types/react-router-dom": "~5.1.0", "@types/redux-mock-store": "~1.0.1", - "@typescript-eslint/parser": "~2.19.0", "@typescript-eslint/eslint-plugin": "~2.19.0", + "@typescript-eslint/parser": "~2.19.0", "commitizen": "~4.0.3", "commitlint-config-cz": "~0.13.0", "coveralls": "~3.0.9", @@ -92,9 +91,11 @@ "prettier": "~1.19.1", "redux-mock-store": "~1.5.4", "semantic-release": "~15.14.0", + "source-map-explorer": "^2.2.2", "ts-jest": "~24.3.0" }, "scripts": { + "analyze": "source-map-explorer 'build/static/js/*.js'", "commit": "npx git-cz", "start": "react-scripts start", "build": "react-scripts build", diff --git a/tsconfig.json b/tsconfig.json index c302bea1a3..408f737883 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,41 +8,32 @@ "dist" ], "compilerOptions": { + "moduleResolution": "node", "target": "es5", "module": "esnext", + "outDir": "build", "lib": [ "dom", "esnext" ], - "importHelpers": true, - "sourceMap": true, - "rootDir": "./", "strict": true, - "pretty": true, + "esModuleInterop": true, + "sourceMap": true, "removeComments": true, "newLine": "lf", - "noImplicitAny": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "strictPropertyInitialization": true, - "noImplicitThis": true, - "alwaysStrict": true, "noUnusedLocals": true, "noUnusedParameters": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, - "emitDecoratorMetadata": false, - "experimentalDecorators": false, - "moduleResolution": "node", + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, + "importHelpers": true, "jsx": "react", - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, "baseUrl": "./src", "allowJs": true, "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "resolveJsonModule": true, "noEmit": true, - "isolatedModules": true + "isolatedModules": true, + "allowSyntheticDefaultImports": true } }