mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 21:03:03 -05:00
feat(doc): move todo-list
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": ["../../.eslintrc.json"],
|
||||
"extends": ["../../../.eslintrc.json"],
|
||||
"ignorePatterns": ["!**/*"],
|
||||
"overrides": [
|
||||
{
|
||||
@@ -5,7 +5,7 @@
|
||||
### Run Application
|
||||
|
||||
```bash
|
||||
npx nx serve testing-todos-list
|
||||
npx nx serve test-todos-list
|
||||
```
|
||||
|
||||
### Documentation and Instruction
|
||||
12
apps/test/todos-list/cypress/support/component-index.html
Normal file
12
apps/test/todos-list/cypress/support/component-index.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||
<title>testing-todos-list Components App</title>
|
||||
</head>
|
||||
<body>
|
||||
<div data-cy-root></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,7 +1,7 @@
|
||||
/* eslint-disable */
|
||||
export default {
|
||||
displayName: 'testing-todos-list',
|
||||
preset: '../../jest.preset.js',
|
||||
displayName: 'test-todos-list',
|
||||
preset: '../../../jest.preset.js',
|
||||
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
|
||||
transform: {
|
||||
'^.+\\.(ts|mjs|js|html)$': [
|
||||
@@ -1,26 +1,26 @@
|
||||
{
|
||||
"name": "testing-todos-list",
|
||||
"$schema": "../node_modules/nx/schemas/project-schema.json",
|
||||
"name": "test-todos-list",
|
||||
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
|
||||
"projectType": "application",
|
||||
"sourceRoot": "apps/testing-todos-list/src",
|
||||
"sourceRoot": "apps/test/todos-list/src",
|
||||
"prefix": "app",
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@angular-devkit/build-angular:browser",
|
||||
"outputs": ["{options.outputPath}"],
|
||||
"options": {
|
||||
"outputPath": "dist/apps/testing-todos-list",
|
||||
"index": "apps/testing-todos-list/src/index.html",
|
||||
"main": "apps/testing-todos-list/src/main.ts",
|
||||
"outputPath": "dist/apps/test/todos-list",
|
||||
"index": "apps/test/todos-list/src/index.html",
|
||||
"main": "apps/test/todos-list/src/main.ts",
|
||||
"polyfills": ["zone.js"],
|
||||
"tsConfig": "apps/testing-todos-list/tsconfig.app.json",
|
||||
"tsConfig": "apps/test/todos-list/tsconfig.app.json",
|
||||
"inlineStyleLanguage": "scss",
|
||||
"assets": [
|
||||
"apps/testing-todos-list/src/favicon.ico",
|
||||
"apps/testing-todos-list/src/assets"
|
||||
"apps/test/todos-list/src/favicon.ico",
|
||||
"apps/test/todos-list/src/assets"
|
||||
],
|
||||
"styles": [
|
||||
"apps/testing-todos-list/src/styles.scss",
|
||||
"apps/test/todos-list/src/styles.scss",
|
||||
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css"
|
||||
],
|
||||
"scripts": []
|
||||
@@ -56,10 +56,10 @@
|
||||
"executor": "@angular-devkit/build-angular:dev-server",
|
||||
"configurations": {
|
||||
"production": {
|
||||
"browserTarget": "testing-todos-list:build:production"
|
||||
"browserTarget": "test-todos-list:build:production"
|
||||
},
|
||||
"development": {
|
||||
"browserTarget": "testing-todos-list:build:development"
|
||||
"browserTarget": "test-todos-list:build:development"
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "development"
|
||||
@@ -67,7 +67,7 @@
|
||||
"extract-i18n": {
|
||||
"executor": "@angular-devkit/build-angular:extract-i18n",
|
||||
"options": {
|
||||
"browserTarget": "testing-todos-list:build"
|
||||
"browserTarget": "test-todos-list:build"
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
@@ -75,8 +75,8 @@
|
||||
"outputs": ["{options.outputFile}"],
|
||||
"options": {
|
||||
"lintFilePatterns": [
|
||||
"apps/testing-todos-list/**/*.ts",
|
||||
"apps/testing-todos-list/**/*.html"
|
||||
"apps/test/todos-list/**/*.ts",
|
||||
"apps/test/todos-list/**/*.html"
|
||||
]
|
||||
}
|
||||
},
|
||||
@@ -84,7 +84,7 @@
|
||||
"executor": "@nx/jest:jest",
|
||||
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
||||
"options": {
|
||||
"jestConfig": "apps/testing-todos-list/jest.config.ts",
|
||||
"jestConfig": "apps/test/todos-list/jest.config.ts",
|
||||
"passWithNoTests": true
|
||||
},
|
||||
"configurations": {
|
||||
@@ -97,10 +97,10 @@
|
||||
"component-test": {
|
||||
"executor": "@nx/cypress:cypress",
|
||||
"options": {
|
||||
"cypressConfig": "apps/testing-todos-list/cypress.config.ts",
|
||||
"cypressConfig": "apps/test/todos-list/cypress.config.ts",
|
||||
"testingType": "component",
|
||||
"skipServe": true,
|
||||
"devServerTarget": "testing-todos-list:build"
|
||||
"devServerTarget": "test-todos-list:build"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
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"],
|
||||
@@ -25,7 +25,7 @@
|
||||
"path": "./cypress/tsconfig.json"
|
||||
}
|
||||
],
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"angularCompilerOptions": {
|
||||
"enableI18nLegacyMessageIdFormat": false,
|
||||
"strictInjectionParameters": true,
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"outDir": "../../../dist/out-tsc",
|
||||
"module": "commonjs",
|
||||
"types": ["jest", "node", "@testing-library/jest-dom"]
|
||||
},
|
||||
@@ -1,13 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<title>testing-todos-list Components App</title>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div data-cy-root></div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user