diff --git a/README.md b/README.md index 8f4ef8c1..7aa16db4 100644 --- a/README.md +++ b/README.md @@ -16,15 +16,17 @@ Production usage: - `nx run cli-e2e:e2e` - setup environment and then run E2E tests for `cli-e2e` -Debug full environment setup: +Debug full environment in 1 setup: - `nx run cli-e2e:setup-env` - setup environment for `cli-e2e` -- `nx run cli-e2e:setup-env --keepServerRunning` - keeps verdaccio running after setup + - `nx run cli-e2e:setup-env --keepServerRunning` - keeps verdaccio running after setup +- `nx run cli-e2e:stop-verdaccio` - stops the verdaccio server for `cli-e2e` Debug full environment in 2 steps: - `nx run cli-e2e:bootstrap-env` - setup folders and starts verdaccio for `cli-e2e` - `nx run cli-e2e:install-env` - bootstraps and installs all dependencies for `cli-e2e` +- `nx run cli-e2e:stop-verdaccio` - stops the verdaccio server for `cli-e2e` Debug packages: diff --git a/nx.json b/nx.json index 2f8ff601..52ad0555 100644 --- a/nx.json +++ b/nx.json @@ -83,7 +83,13 @@ "./e2e-examples/cli-e2e-env/tooling/env.plugin.ts", "./e2e-examples/cli-e2e-graph/tooling/graph.plugin.ts", "./e2e-examples/cli-e2e-pretarget/tooling/pretarget.plugin.ts", - "@org/build-env" + "@org/build-env", + { + "plugin": "@nx/eslint/plugin", + "options": { + "targetName": "lint" + } + } ], "release": { "version": { diff --git a/static-environments/user-lists/.eslintrc.json b/static-environments/user-lists/.eslintrc.json new file mode 100644 index 00000000..8d4e2111 --- /dev/null +++ b/static-environments/user-lists/.eslintrc.json @@ -0,0 +1,18 @@ +{ + "extends": ["../../.eslintrc.base.json"], + "ignorePatterns": ["!**/*"], + "overrides": [ + { + "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], + "rules": {} + }, + { + "files": ["*.ts", "*.tsx"], + "rules": {} + }, + { + "files": ["*.js", "*.jsx"], + "rules": {} + } + ] +} diff --git a/static-environments/user-lists/project.json b/static-environments/user-lists/project.json new file mode 100644 index 00000000..a0755cb4 --- /dev/null +++ b/static-environments/user-lists/project.json @@ -0,0 +1,8 @@ +{ + "name": "user-lists", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "projects/user-lists/src", + "projectType": "library", + "tags": [], + "targets": {} +} diff --git a/static-environments/user-lists/src/lib/sorted-users.json b/static-environments/user-lists/src/lib/sorted-users.json new file mode 100644 index 00000000..188e0b5b --- /dev/null +++ b/static-environments/user-lists/src/lib/sorted-users.json @@ -0,0 +1,8 @@ +[ + { + "name": "Alice" + }, + { + "name": "Michael" + } +] diff --git a/static-environments/user-lists/src/lib/unsorted-users.json b/static-environments/user-lists/src/lib/unsorted-users.json new file mode 100644 index 00000000..7d10c530 --- /dev/null +++ b/static-environments/user-lists/src/lib/unsorted-users.json @@ -0,0 +1,8 @@ +[ + { + "name": "Michael" + }, + { + "name": "Alice" + } +] diff --git a/static-environments/user-lists/tsconfig.json b/static-environments/user-lists/tsconfig.json new file mode 100644 index 00000000..db7b5666 --- /dev/null +++ b/static-environments/user-lists/tsconfig.json @@ -0,0 +1,19 @@ +{ + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "module": "commonjs", + "forceConsistentCasingInFileNames": true, + "strict": true, + "noImplicitOverride": true, + "noPropertyAccessFromIndexSignature": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true + }, + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.lib.json" + } + ] +} diff --git a/static-environments/user-lists/tsconfig.lib.json b/static-environments/user-lists/tsconfig.lib.json new file mode 100644 index 00000000..faa09cc1 --- /dev/null +++ b/static-environments/user-lists/tsconfig.lib.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "declaration": true, + "types": ["node"] + }, + "include": ["src/**/*.ts"], + "exclude": ["src/**/*.spec.ts", "src/**/*.test.ts"] +}