mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 21:03:03 -05:00
feat(doc): move overload
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": ["../../.eslintrc.json"],
|
||||
"extends": ["../../../.eslintrc.json"],
|
||||
"ignorePatterns": ["!**/*"],
|
||||
"overrides": [
|
||||
{
|
||||
@@ -5,9 +5,9 @@
|
||||
### Run Application
|
||||
|
||||
```bash
|
||||
npx nx serve overload`
|
||||
npx nx serve typescript-overload`
|
||||
```
|
||||
|
||||
### Documentation and Instruction
|
||||
|
||||
Challenge documentation is [here](https://angular-challenges.vercel.app/challenges/typescript/15-overload-fn/).
|
||||
Challenge documentation is [here](https://angular-challenges.vercel.app/challenges/typescript/15-typescript-overload-fn/).
|
||||
@@ -1,22 +1,25 @@
|
||||
{
|
||||
"name": "overload",
|
||||
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
||||
"name": "typescript-overload",
|
||||
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
|
||||
"projectType": "application",
|
||||
"sourceRoot": "apps/overload/src",
|
||||
"sourceRoot": "apps/typescript/overload/src",
|
||||
"prefix": "app",
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@angular-devkit/build-angular:browser",
|
||||
"outputs": ["{options.outputPath}"],
|
||||
"options": {
|
||||
"outputPath": "dist/apps/overload",
|
||||
"index": "apps/overload/src/index.html",
|
||||
"main": "apps/overload/src/main.ts",
|
||||
"outputPath": "dist/apps/typescript/overload",
|
||||
"index": "apps/typescript/overload/src/index.html",
|
||||
"main": "apps/typescript/overload/src/main.ts",
|
||||
"polyfills": ["zone.js"],
|
||||
"tsConfig": "apps/overload/tsconfig.app.json",
|
||||
"tsConfig": "apps/typescript/overload/tsconfig.app.json",
|
||||
"inlineStyleLanguage": "scss",
|
||||
"assets": ["apps/overload/src/favicon.ico", "apps/overload/src/assets"],
|
||||
"styles": ["apps/overload/src/styles.scss"],
|
||||
"assets": [
|
||||
"apps/typescript/overload/src/favicon.ico",
|
||||
"apps/typescript/overload/src/assets"
|
||||
],
|
||||
"styles": ["apps/typescript/overload/src/styles.scss"],
|
||||
"scripts": []
|
||||
},
|
||||
"configurations": {
|
||||
@@ -50,10 +53,10 @@
|
||||
"executor": "@angular-devkit/build-angular:dev-server",
|
||||
"configurations": {
|
||||
"production": {
|
||||
"browserTarget": "overload:build:production"
|
||||
"browserTarget": "typescript-overload:build:production"
|
||||
},
|
||||
"development": {
|
||||
"browserTarget": "overload:build:development"
|
||||
"browserTarget": "typescript-overload:build:development"
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "development"
|
||||
@@ -61,14 +64,17 @@
|
||||
"extract-i18n": {
|
||||
"executor": "@angular-devkit/build-angular:extract-i18n",
|
||||
"options": {
|
||||
"browserTarget": "overload:build"
|
||||
"browserTarget": "typescript-overload:build"
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nx/linter:eslint",
|
||||
"outputs": ["{options.outputFile}"],
|
||||
"options": {
|
||||
"lintFilePatterns": ["apps/overload/**/*.ts", "apps/overload/**/*.html"]
|
||||
"lintFilePatterns": [
|
||||
"apps/typescript/overload/**/*.ts",
|
||||
"apps/typescript/overload/**/*.html"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"outDir": "../../../dist/out-tsc",
|
||||
"types": []
|
||||
},
|
||||
"files": ["src/main.ts"],
|
||||
@@ -19,7 +19,7 @@
|
||||
"path": "./tsconfig.editor.json"
|
||||
}
|
||||
],
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"angularCompilerOptions": {
|
||||
"enableI18nLegacyMessageIdFormat": false,
|
||||
"strictInjectionParameters": true,
|
||||
@@ -3,7 +3,7 @@ title: 🟠 Function Overload
|
||||
description: Challenge 15 is about creating overload functions
|
||||
author: Thomas Laforge
|
||||
challengeNumber: 15
|
||||
command: overload
|
||||
command: typescript-overload
|
||||
blogLink: https://medium.com/ngconf/function-overloading-in-typescript-8236706b2c05
|
||||
sidebar:
|
||||
order: 115
|
||||
|
||||
Reference in New Issue
Block a user