add webpack config and tsconfig

pull/5370/head
Joseph Izang 2 years ago
parent c1d1449d29
commit eea4bd3d11
  1. 26
      apps/remixdocgen/project.json
  2. 23
      apps/remixdocgen/tsconfig.app.json
  3. 16
      apps/remixdocgen/tsconfig.json
  4. 0
      apps/remixdocgen/webpack.config.js

@ -4,7 +4,6 @@
"sourceRoot": "apps/remixdocgen/src", "sourceRoot": "apps/remixdocgen/src",
"projectType": "application", "projectType": "application",
"implicitDependencies": [ "implicitDependencies": [
"docgen"
], ],
"targets": { "targets": {
"build": { "build": {
@ -14,18 +13,17 @@
"options": { "options": {
"compiler": "babel", "compiler": "babel",
"outputPath": "dist/apps/remixdocgen", "outputPath": "dist/apps/remixdocgen",
"index": "apps/etherscan/src/index.html", "index": "apps/remixdocgen/src/index.html",
"baseHref": "/", "baseHref": "/",
"main": "apps/etherscan/src/main.tsx", "main": "apps/remixdocgen/src/main.tsx",
"polyfills": "apps/etherscan/src/polyfills.ts", "tsConfig": "apps/remixdocgen/tsconfig.app.json",
"tsConfig": "apps/etherscan/tsconfig.app.json",
"assets": [ "assets": [
"apps/etherscan/src/favicon.ico", "apps/remixdocgen/src/favicon.ico",
"apps/etherscan/src/assets" "apps/remixdocgen/src/assets"
], ],
"styles": ["apps/etherscan/src/styles.css"], "styles": ["apps/remixdocgen/src/styles.css"],
"scripts": [], "scripts": [],
"webpackConfig": "apps/etherscan/webpack.config.js" "webpackConfig": "apps/remixdocgen/webpack.config.js"
}, },
"configurations": { "configurations": {
"development": { "development": {
@ -33,8 +31,8 @@
"production": { "production": {
"fileReplacements": [ "fileReplacements": [
{ {
"replace": "apps/etherscan/src/environments/environment.ts", "replace": "apps/remixdocgen/src/environments/environment.ts",
"with": "apps/etherscan/src/environments/environment.prod.ts" "with": "apps/remixdocgen/src/environments/environment.prod.ts"
} }
] ]
} }
@ -44,16 +42,16 @@
"executor": "@nrwl/webpack:dev-server", "executor": "@nrwl/webpack:dev-server",
"defaultConfiguration": "development", "defaultConfiguration": "development",
"options": { "options": {
"buildTarget": "etherscan:build", "buildTarget": "remixdocgen:build",
"hmr": true "hmr": true
}, },
"configurations": { "configurations": {
"development": { "development": {
"buildTarget": "etherscan:build:development", "buildTarget": "remixdocgen:build:development",
"port": 6003 "port": 6003
}, },
"production": { "production": {
"buildTarget": "etherscan:build:production" "buildTarget": "remixdocgen:build:production"
} }
} }
} }

@ -0,0 +1,23 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": ["node"]
},
"files": [
"../../node_modules/@nrwl/react/typings/cssmodule.d.ts",
"../../node_modules/@nrwl/react/typings/image.d.ts"
],
"exclude": [
"jest.config.ts",
"**/*.spec.ts",
"**/*.test.ts",
"**/*.spec.tsx",
"**/*.test.tsx",
"**/*.spec.js",
"**/*.test.js",
"**/*.spec.jsx",
"**/*.test.jsx"
],
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
}

@ -0,0 +1,16 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"jsx": "react-jsx",
"allowJs": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true
},
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.app.json"
}
]
}
Loading…
Cancel
Save