Skip to content

Commit

Permalink
refactor: move example code into examples folders
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton authored Sep 17, 2024
2 parents 6131d06 + 01c65f5 commit afcc8f2
Show file tree
Hide file tree
Showing 118 changed files with 440 additions and 430 deletions.
30 changes: 0 additions & 30 deletions e2e/models-e2e/.eslintrc.json

This file was deleted.

30 changes: 0 additions & 30 deletions e2e/playground-e2e/.eslintrc.json

This file was deleted.

19 changes: 0 additions & 19 deletions e2e/playground-e2e/tsconfig.json

This file was deleted.

27 changes: 0 additions & 27 deletions e2e/playground-e2e/vite.config.ts

This file was deleted.

30 changes: 0 additions & 30 deletions e2e/utils-e2e/.eslintrc.json

This file was deleted.

19 changes: 0 additions & 19 deletions e2e/utils-e2e/tsconfig.json

This file was deleted.

26 changes: 0 additions & 26 deletions e2e/utils-e2e/tsconfig.spec.json

This file was deleted.

27 changes: 0 additions & 27 deletions e2e/utils-e2e/vite.config.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["../../.eslintrc.json", "../../.eslintrc.base.json"],
"extends": ["../../../.eslintrc.base.json", "../../../.eslintrc.base.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cli-e2e-original",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "projects/cli-e2e-original/test",
"projectType": "application",
"tags": ["type:e2e", "scope:internal", "type:example"],
Expand All @@ -12,7 +12,7 @@
"inputs": ["default", "^production"],
"outputs": ["{options.reportsDirectory}"],
"options": {
"reportsDirectory": "../../coverage/projects/cli-e2e-original"
"reportsDirectory": "../../../coverage/projects/cli-e2e-original"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"module": "esnext",
"forceConsistentCasingInFileNames": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"outDir": "../../../dist/out-tsc",
"types": [
"vitest/globals",
"vitest/importMeta",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"outDir": "../../../dist/out-tsc",
"types": [
"vitest/globals",
"vitest/importMeta",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';

export default defineConfig({
root: __dirname,
cacheDir: '../../node_modules/.vite/projects/cli-e2e-original',
cacheDir: '../../../node_modules/.vite/projects/cli-e2e-original',

plugins: [nxViteTsPaths()],

Expand All @@ -15,13 +15,13 @@ export default defineConfig({

test: {
globals: true,
cache: { dir: '../../node_modules/.vitest' },
cache: { dir: '../../../node_modules/.vitest' },
environment: 'node',
include: ['test/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
reporters: ['default'],
globalSetup: ['./setup/global-setup.ts'],
coverage: {
reportsDirectory: '../../coverage/projects/cli-e2e-original',
reportsDirectory: '../../../coverage/projects/cli-e2e-original',
provider: 'v8',
},
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["../../.eslintrc.json", "../../.eslintrc.base.json"],
"extends": ["../../../.eslintrc.base.json", "../../../.eslintrc.base.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cli-e2e",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "projects/cli-e2e/test",
"projectType": "application",
"tags": ["type:e2e", "type:e2e-vi", "npm-env"],
Expand All @@ -19,7 +19,7 @@
"inputs": ["default", "^production"],
"outputs": ["{options.reportsDirectory}"],
"options": {
"reportsDirectory": "../../coverage/projects/cli-e2e"
"reportsDirectory": "../../../coverage/projects/cli-e2e"
}
}
}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"module": "esnext",
"forceConsistentCasingInFileNames": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"outDir": "../../../dist/out-tsc",
"types": [
"vitest/globals",
"vitest/importMeta",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';

export default defineConfig({
root: __dirname,
cacheDir: '../../node_modules/.vite/projects/cli-e2e',
cacheDir: '../../../node_modules/.vite/projects/cli-e2e',

plugins: [nxViteTsPaths()],

Expand All @@ -15,12 +15,12 @@ export default defineConfig({

test: {
globals: true,
cache: { dir: '../../node_modules/.vitest' },
cache: { dir: '../../../node_modules/.vitest' },
environment: 'node',
include: ['test/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
reporters: ['default'],
coverage: {
reportsDirectory: '../../coverage/projects/cli-e2e',
reportsDirectory: '../../../coverage/projects/cli-e2e',
provider: 'v8',
},
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["../../.eslintrc.json", "../../.eslintrc.base.json"],
"extends": ["../../../.eslintrc.base.json", "../../../.eslintrc.base.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cli-static-e2e",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "projects/cli-static-e2e/test",
"projectType": "application",
"tags": ["type:e2e", "type:e2e-vi", "npm-env"],
Expand All @@ -20,7 +20,7 @@
"outputs": ["{options.reportsDirectory}"],
"options": {
"environmentRoot": "static-environments/user-lists",
"reportsDirectory": "../../coverage/projects/cli-static-e2e"
"reportsDirectory": "../../../coverage/projects/cli-static-e2e"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"module": "esnext",
"forceConsistentCasingInFileNames": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"outDir": "../../../dist/out-tsc",
"types": [
"vitest/globals",
"vitest/importMeta",
Expand Down
Loading

0 comments on commit afcc8f2

Please sign in to comment.