Skip to content

Commit

Permalink
rename projects ane examples folder
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed Sep 16, 2024
1 parent 9ca2617 commit 1630977
Show file tree
Hide file tree
Showing 115 changed files with 80 additions and 65 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cli-e2e-original",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "projects/cli-e2e-original/test",
"sourceRoot": "examples-e2e/cli-e2e-original/test",
"projectType": "application",
"tags": ["type:e2e", "scope:internal", "type:example"],
"implicitDependencies": ["cli"],
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cli-e2e",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "projects/cli-e2e/test",
"sourceRoot": "examples-e2e/cli-e2e/test",
"projectType": "application",
"tags": ["type:e2e", "type:e2e-vi", "npm-env"],
"implicitDependencies": ["cli"],
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cli-static-e2e",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "projects/cli-static-e2e/test",
"sourceRoot": "examples-e2e/cli-static-e2e/test",
"projectType": "application",
"tags": ["type:e2e", "type:e2e-vi", "npm-env"],
"implicitDependencies": ["cli"],
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "core-e2e",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "projects/core-e2e/test",
"sourceRoot": "examples-e2e/core-e2e/test",
"projectType": "application",
"tags": ["type:e2e", "type:e2e-vi", "npm-env"],
"implicitDependencies": ["core"],
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "models-e2e",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "projects/models-e2e/test",
"sourceRoot": "examples-e2e/models-e2e/test",
"projectType": "application",
"tags": ["type:e2e", "type:e2e-vi", "npm-env"],
"implicitDependencies": ["models"],
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "playground-e2e",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "projects/playground-e2e/test",
"sourceRoot": "examples-e2e/playground-e2e/test",
"projectType": "application",
"tags": ["type:e2e", "type:e2e-vi", "npm-env"],
"implicitDependencies": ["models", "utils", "core", "cli"],
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "utils-e2e",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "projects/utils-e2e/test",
"sourceRoot": "examples-e2e/utils-e2e/test",
"projectType": "application",
"tags": ["type:e2e", "type:e2e-vi", "npm-env"],
"implicitDependencies": ["utils"],
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions projects/cli/project.json → examples-projects/cli/project.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cli",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "projects/cli/src",
"sourceRoot": "examples-projects/cli/src",
"projectType": "application",
"release": {
"version": {
Expand All @@ -18,20 +18,20 @@
"executor": "@nx/esbuild:esbuild",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/projects/cli",
"main": "projects/cli/src/index.ts",
"tsConfig": "projects/cli/tsconfig.lib.json",
"assets": ["projects/cli/*.md"],
"outputPath": "dist/examples-projects/cli",
"main": "examples-projects/cli/src/index.ts",
"tsConfig": "examples-projects/cli/tsconfig.lib.json",
"assets": ["examples-projects/cli/*.md"],
"generatePackageJson": true,
"additionalEntryPoints": ["projects/cli/src/bin.ts"],
"additionalEntryPoints": ["examples-projects/cli/src/bin.ts"],
"format": ["esm"]
}
},
"unit-test": {
"executor": "@nx/vite:test",
"outputs": ["{options.reportsDirectory}"],
"options": {
"reportsDirectory": "../../coverage/projects/cli"
"reportsDirectory": "../../coverage/examples-projects/cli"
}
}
}
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ vi.mock('@org/core', async () => {
const actual = await vi.importActual<typeof import('@org/core')>('@org/core');
return {
...actual,
sortUserFile: vi.fn(async () => {}),
sortUserFile: vi.fn(async () => void 0),
};
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type CliArgs = {
filePath: string;
};

const NOOP_BUILDER = <T>(_: Argv<T>) => {};
const NOOP_BUILDER = <T>(_: Argv<T>) => void 0;
export function cli(args: string[]) {
return yargs(args)
.version(false)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
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/utils',
cacheDir: '../../node_modules/.vite/examples-projects/cli',

plugins: [nxViteTsPaths()],

Expand All @@ -20,7 +20,7 @@ export default defineConfig({
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
reporters: ['default'],
coverage: {
reportsDirectory: '../../coverage/projects/utils',
reportsDirectory: '../../coverage/examples-projects/cli',
provider: 'v8',
},
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "core",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "projects/core/src",
"sourceRoot": "examples-projects/core/src",
"projectType": "library",
"release": {
"version": {
Expand All @@ -18,10 +18,10 @@
"executor": "@nx/esbuild:esbuild",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/projects/core",
"main": "projects/core/src/index.ts",
"tsConfig": "projects/core/tsconfig.lib.json",
"assets": ["projects/core/*.md"],
"outputPath": "dist/examples-projects/core",
"main": "examples-projects/core/src/index.ts",
"tsConfig": "examples-projects/core/tsconfig.lib.json",
"assets": ["examples-projects/core/*.md"],
"generatePackageJson": true,
"format": ["esm"]
}
Expand All @@ -30,7 +30,7 @@
"executor": "@nx/vite:test",
"outputs": ["{options.reportsDirectory}"],
"options": {
"reportsDirectory": "../../coverage/projects/core"
"reportsDirectory": "../../coverage/examples-projects/core"
}
}
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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/core',
cacheDir: '../../node_modules/.vite/examples-projects/core',

plugins: [nxViteTsPaths()],

Expand All @@ -20,7 +20,7 @@ export default defineConfig({
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
reporters: ['default'],
coverage: {
reportsDirectory: '../../coverage/projects/core',
reportsDirectory: '../../coverage/examples-projects/core',
provider: 'v8',
},
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "models",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "projects/models/src",
"sourceRoot": "examples-projects/models/src",
"projectType": "library",
"release": {
"version": {
Expand All @@ -18,10 +18,10 @@
"executor": "@nx/esbuild:esbuild",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/projects/models",
"main": "projects/models/src/index.ts",
"tsConfig": "projects/models/tsconfig.lib.json",
"assets": ["projects/models/*.md"],
"outputPath": "dist/examples-projects/models",
"main": "examples-projects/models/src/index.ts",
"tsConfig": "examples-projects/models/tsconfig.lib.json",
"assets": ["examples-projects/models/*.md"],
"generatePackageJson": true,
"format": ["esm"]
}
Expand All @@ -30,7 +30,7 @@
"executor": "@nx/vite:test",
"outputs": ["{options.reportsDirectory}"],
"options": {
"reportsDirectory": "../../coverage/projects/models"
"reportsDirectory": "../../coverage/examples-projects/models"
}
}
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"declaration": true,
"types": ["node"]
},
"include": ["src/**/*.ts"],
"include": [
"src/**/*.ts"
],
"exclude": ["vite.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"]
}
File renamed without changes.
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',
cacheDir: '../../node_modules/.vite/examples-projects/models',

plugins: [nxViteTsPaths()],

Expand All @@ -20,7 +20,7 @@ export default defineConfig({
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
reporters: ['default'],
coverage: {
reportsDirectory: '../../coverage/projects/cli',
reportsDirectory: '../../coverage/examples-projects/models',
provider: 'v8',
},
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "utils",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "projects/utils/src",
"sourceRoot": "examples-projects/utils/src",
"projectType": "library",
"release": {
"version": {
Expand All @@ -18,10 +18,10 @@
"executor": "@nx/esbuild:esbuild",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/projects/utils",
"main": "projects/utils/src/index.ts",
"tsConfig": "projects/utils/tsconfig.lib.json",
"assets": ["projects/utils/*.md"],
"outputPath": "dist/examples-projects/utils",
"main": "examples-projects/utils/src/index.ts",
"tsConfig": "examples-projects/utils/tsconfig.lib.json",
"assets": ["examples-projects/utils/*.md"],
"generatePackageJson": true,
"format": ["esm"]
}
Expand All @@ -30,7 +30,7 @@
"executor": "@nx/vite:test",
"outputs": ["{options.reportsDirectory}"],
"options": {
"reportsDirectory": "../../coverage/projects/utils"
"reportsDirectory": "../../coverage/examples-projects/utils"
}
}
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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/models',
cacheDir: '../../node_modules/.vite/examples-projects/utils',

plugins: [nxViteTsPaths()],

Expand All @@ -20,7 +20,7 @@ export default defineConfig({
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
reporters: ['default'],
coverage: {
reportsDirectory: '../../coverage/projects/models',
reportsDirectory: '../../coverage/examples-projects/utils',
provider: 'v8',
},
},
Expand Down
2 changes: 1 addition & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
}
},
"plugins": [
"./e2e-examples/cli-e2e-original/tooling/original.plugin.ts",
"./examples-e2e/cli-e2e-original/tooling/original.plugin.ts",
"@org/build-env",
{
"plugin": "@nx/eslint/plugin",
Expand Down
9 changes: 8 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1630977

Please sign in to comment.