Add api-test-app using NX node generator
This commit is contained in:
parent
752f7e914c
commit
1fbd65053c
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"extends": ["../../.eslintrc.json"],
|
||||
"ignorePatterns": ["!**/*"],
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": ["*.ts", "*.tsx"],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": ["*.js", "*.jsx"],
|
||||
"rules": {}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
export const environment = {
|
||||
production: false,
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
export const environment = {
|
||||
production: true,
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
console.log('Hello World!')
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"module": "commonjs",
|
||||
"types": ["node"]
|
||||
},
|
||||
"exclude": ["**/*.spec.ts", "**/*.spec.js"],
|
||||
"include": ["**/*.ts", "**/*.js"]
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.app.json"
|
||||
}
|
||||
],
|
||||
"compilerOptions": {
|
||||
"allowJs": true
|
||||
}
|
||||
}
|
3
nx.json
3
nx.json
|
@ -36,6 +36,9 @@
|
|||
"api": {
|
||||
"tags": []
|
||||
},
|
||||
"api-test-app": {
|
||||
"tags": []
|
||||
},
|
||||
"curriculum": {
|
||||
"tags": []
|
||||
},
|
||||
|
|
|
@ -79,6 +79,7 @@
|
|||
"@nrwl/eslint-plugin-nx": "^12.10.0",
|
||||
"@nrwl/jest": "12.10.0",
|
||||
"@nrwl/linter": "12.10.0",
|
||||
"@nrwl/node": "12.10.0",
|
||||
"@nrwl/react": "12.10.0",
|
||||
"@nrwl/react-native": "^12.10.0",
|
||||
"@nrwl/tao": "12.10.0",
|
||||
|
|
|
@ -49,6 +49,49 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"api-test-app": {
|
||||
"root": "apps/api-test-app",
|
||||
"sourceRoot": "apps/api-test-app/src",
|
||||
"projectType": "application",
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@nrwl/node:build",
|
||||
"outputs": ["{options.outputPath}"],
|
||||
"options": {
|
||||
"outputPath": "dist/apps/api-test-app",
|
||||
"main": "apps/api-test-app/src/main.js",
|
||||
"tsConfig": "apps/api-test-app/tsconfig.app.json",
|
||||
"assets": ["apps/api-test-app/src/assets"]
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"optimization": true,
|
||||
"extractLicenses": true,
|
||||
"inspect": false,
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "apps/api-test-app/src/environments/environment.js",
|
||||
"with": "apps/api-test-app/src/environments/environment.prod.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"serve": {
|
||||
"executor": "@nrwl/node:execute",
|
||||
"options": {
|
||||
"buildTarget": "api-test-app:build"
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nrwl/linter:eslint",
|
||||
"outputs": ["{options.outputFile}"],
|
||||
"options": {
|
||||
"lintFilePatterns": ["apps/api-test-app/**/*.js"]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"api": {
|
||||
"root": "libs/api",
|
||||
"sourceRoot": "libs/api",
|
||||
|
|
40
yarn.lock
40
yarn.lock
|
@ -1823,6 +1823,33 @@
|
|||
tmp "~0.2.1"
|
||||
tslib "^2.0.0"
|
||||
|
||||
"@nrwl/node@12.10.0":
|
||||
version "12.10.0"
|
||||
resolved "https://registry.yarnpkg.com/@nrwl/node/-/node-12.10.0.tgz#1065dfb0bea758d7c1e2f89a00c97e191408be86"
|
||||
integrity sha512-21bBgDOhmUs3o7oqjfb78weRevh7lk+5ZIWE4n6o+x/AYx4iXPn8mUQFnIfl7smRRVfuRh0GnqZg7BEy8fj+sg==
|
||||
dependencies:
|
||||
"@nrwl/devkit" "12.10.0"
|
||||
"@nrwl/jest" "12.10.0"
|
||||
"@nrwl/linter" "12.10.0"
|
||||
"@nrwl/workspace" "12.10.0"
|
||||
chalk "4.1.0"
|
||||
circular-dependency-plugin "5.2.0"
|
||||
copy-webpack-plugin "6.4.1"
|
||||
fork-ts-checker-webpack-plugin "6.2.10"
|
||||
fs-extra "^9.1.0"
|
||||
glob "7.1.4"
|
||||
license-webpack-plugin "2.3.15"
|
||||
rxjs "^6.5.4"
|
||||
rxjs-for-await "0.0.2"
|
||||
source-map-support "0.5.19"
|
||||
tree-kill "1.2.2"
|
||||
ts-loader "5.4.5"
|
||||
tsconfig-paths-webpack-plugin "3.4.1"
|
||||
tslib "^2.0.0"
|
||||
webpack "4.46.0"
|
||||
webpack-merge "4.2.1"
|
||||
webpack-node-externals "1.7.2"
|
||||
|
||||
"@nrwl/react-native@^12.10.0":
|
||||
version "12.10.0"
|
||||
resolved "https://registry.yarnpkg.com/@nrwl/react-native/-/react-native-12.10.0.tgz#bff464f7cd8db50b0f0dc002dd8dd07922b4150e"
|
||||
|
@ -13316,6 +13343,14 @@ source-map-resolve@^0.6.0:
|
|||
atob "^2.1.2"
|
||||
decode-uri-component "^0.2.0"
|
||||
|
||||
source-map-support@0.5.19:
|
||||
version "0.5.19"
|
||||
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61"
|
||||
integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==
|
||||
dependencies:
|
||||
buffer-from "^1.0.0"
|
||||
source-map "^0.6.0"
|
||||
|
||||
source-map-support@^0.5.16, source-map-support@^0.5.17, source-map-support@^0.5.6, source-map-support@~0.5.12, source-map-support@~0.5.20:
|
||||
version "0.5.20"
|
||||
resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.20.tgz"
|
||||
|
@ -14125,6 +14160,11 @@ tr46@^2.1.0:
|
|||
dependencies:
|
||||
punycode "^2.1.1"
|
||||
|
||||
tree-kill@1.2.2:
|
||||
version "1.2.2"
|
||||
resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc"
|
||||
integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==
|
||||
|
||||
truncate-utf8-bytes@^1.0.0:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz"
|
||||
|
|
Loading…
Reference in New Issue