From 544838ef9f8cad34546e8b08e6e3a4d37ee7f4d6 Mon Sep 17 00:00:00 2001 From: Daniel Harvey Date: Sun, 2 Jun 2024 15:05:28 +0800 Subject: [PATCH] chore: Move test apps into apps/ folder --- {libs => apps}/testapp1-commonjs/.eslintrc.json | 0 {libs => apps}/testapp1-commonjs/README.md | 0 {libs => apps}/testapp1-commonjs/package.json | 0 {libs => apps}/testapp1-commonjs/project.json | 10 +++++----- {libs => apps}/testapp1-commonjs/src/index.ts | 2 +- .../testapp1-commonjs/src/lib/testapp1-commonjs.ts | 0 {libs => apps}/testapp1-commonjs/tsconfig.json | 0 {libs => apps}/testapp1-commonjs/tsconfig.lib.json | 0 {libs => apps}/testapp2-esm/.eslintrc.json | 0 {libs => apps}/testapp2-esm/README.md | 0 {libs => apps}/testapp2-esm/package.json | 0 {libs => apps}/testapp2-esm/project.json | 10 +++++----- {libs => apps}/testapp2-esm/src/index.ts | 0 {libs => apps}/testapp2-esm/src/lib/testapp2-esm.ts | 0 {libs => apps}/testapp2-esm/tsconfig.json | 0 {libs => apps}/testapp2-esm/tsconfig.lib.json | 0 tsconfig.base.json | 4 ++-- 17 files changed, 13 insertions(+), 13 deletions(-) rename {libs => apps}/testapp1-commonjs/.eslintrc.json (100%) rename {libs => apps}/testapp1-commonjs/README.md (100%) rename {libs => apps}/testapp1-commonjs/package.json (100%) rename {libs => apps}/testapp1-commonjs/project.json (70%) rename {libs => apps}/testapp1-commonjs/src/index.ts (55%) rename {libs => apps}/testapp1-commonjs/src/lib/testapp1-commonjs.ts (100%) rename {libs => apps}/testapp1-commonjs/tsconfig.json (100%) rename {libs => apps}/testapp1-commonjs/tsconfig.lib.json (100%) rename {libs => apps}/testapp2-esm/.eslintrc.json (100%) rename {libs => apps}/testapp2-esm/README.md (100%) rename {libs => apps}/testapp2-esm/package.json (100%) rename {libs => apps}/testapp2-esm/project.json (72%) rename {libs => apps}/testapp2-esm/src/index.ts (100%) rename {libs => apps}/testapp2-esm/src/lib/testapp2-esm.ts (100%) rename {libs => apps}/testapp2-esm/tsconfig.json (100%) rename {libs => apps}/testapp2-esm/tsconfig.lib.json (100%) diff --git a/libs/testapp1-commonjs/.eslintrc.json b/apps/testapp1-commonjs/.eslintrc.json similarity index 100% rename from libs/testapp1-commonjs/.eslintrc.json rename to apps/testapp1-commonjs/.eslintrc.json diff --git a/libs/testapp1-commonjs/README.md b/apps/testapp1-commonjs/README.md similarity index 100% rename from libs/testapp1-commonjs/README.md rename to apps/testapp1-commonjs/README.md diff --git a/libs/testapp1-commonjs/package.json b/apps/testapp1-commonjs/package.json similarity index 100% rename from libs/testapp1-commonjs/package.json rename to apps/testapp1-commonjs/package.json diff --git a/libs/testapp1-commonjs/project.json b/apps/testapp1-commonjs/project.json similarity index 70% rename from libs/testapp1-commonjs/project.json rename to apps/testapp1-commonjs/project.json index a8c6d26..f1b8351 100644 --- a/libs/testapp1-commonjs/project.json +++ b/apps/testapp1-commonjs/project.json @@ -1,7 +1,7 @@ { "name": "testapp1-commonjs", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "libs/testapp1-commonjs/src", + "sourceRoot": "apps/testapp1-commonjs/src", "projectType": "library", "tags": [], "targets": { @@ -9,10 +9,10 @@ "executor": "@nx/js:tsc", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/libs/testapp1-commonjs", - "main": "libs/testapp1-commonjs/src/index.ts", - "tsConfig": "libs/testapp1-commonjs/tsconfig.lib.json", - "assets": ["libs/testapp1-commonjs/*.md"] + "outputPath": "dist/apps/testapp1-commonjs", + "main": "apps/testapp1-commonjs/src/index.ts", + "tsConfig": "apps/testapp1-commonjs/tsconfig.lib.json", + "assets": ["apps/testapp1-commonjs/*.md"] } }, "test-js-node": { diff --git a/libs/testapp1-commonjs/src/index.ts b/apps/testapp1-commonjs/src/index.ts similarity index 55% rename from libs/testapp1-commonjs/src/index.ts rename to apps/testapp1-commonjs/src/index.ts index 3f07bda..7611cfa 100644 --- a/libs/testapp1-commonjs/src/index.ts +++ b/apps/testapp1-commonjs/src/index.ts @@ -1,4 +1,4 @@ -import { testapp1Commonjs } from "./lib/testapp1-commonjs"; +import { testapp1Commonjs } from './lib/testapp1-commonjs'; (async function() { console.log('TEST', await testapp1Commonjs()); diff --git a/libs/testapp1-commonjs/src/lib/testapp1-commonjs.ts b/apps/testapp1-commonjs/src/lib/testapp1-commonjs.ts similarity index 100% rename from libs/testapp1-commonjs/src/lib/testapp1-commonjs.ts rename to apps/testapp1-commonjs/src/lib/testapp1-commonjs.ts diff --git a/libs/testapp1-commonjs/tsconfig.json b/apps/testapp1-commonjs/tsconfig.json similarity index 100% rename from libs/testapp1-commonjs/tsconfig.json rename to apps/testapp1-commonjs/tsconfig.json diff --git a/libs/testapp1-commonjs/tsconfig.lib.json b/apps/testapp1-commonjs/tsconfig.lib.json similarity index 100% rename from libs/testapp1-commonjs/tsconfig.lib.json rename to apps/testapp1-commonjs/tsconfig.lib.json diff --git a/libs/testapp2-esm/.eslintrc.json b/apps/testapp2-esm/.eslintrc.json similarity index 100% rename from libs/testapp2-esm/.eslintrc.json rename to apps/testapp2-esm/.eslintrc.json diff --git a/libs/testapp2-esm/README.md b/apps/testapp2-esm/README.md similarity index 100% rename from libs/testapp2-esm/README.md rename to apps/testapp2-esm/README.md diff --git a/libs/testapp2-esm/package.json b/apps/testapp2-esm/package.json similarity index 100% rename from libs/testapp2-esm/package.json rename to apps/testapp2-esm/package.json diff --git a/libs/testapp2-esm/project.json b/apps/testapp2-esm/project.json similarity index 72% rename from libs/testapp2-esm/project.json rename to apps/testapp2-esm/project.json index c211e49..0299f25 100644 --- a/libs/testapp2-esm/project.json +++ b/apps/testapp2-esm/project.json @@ -1,7 +1,7 @@ { "name": "testapp2-esm", "$schema": "../../node_modules/nx/schemas/project-schema.json", - "sourceRoot": "libs/testapp2-esm/src", + "sourceRoot": "apps/testapp2-esm/src", "projectType": "library", "tags": [], "targets": { @@ -9,10 +9,10 @@ "executor": "@nx/js:tsc", "outputs": ["{options.outputPath}"], "options": { - "outputPath": "dist/libs/testapp2-esm", - "main": "libs/testapp2-esm/src/index.ts", - "tsConfig": "libs/testapp2-esm/tsconfig.lib.json", - "assets": ["libs/testapp2-esm/*.md"] + "outputPath": "dist/apps/testapp2-esm", + "main": "apps/testapp2-esm/src/index.ts", + "tsConfig": "apps/testapp2-esm/tsconfig.lib.json", + "assets": ["apps/testapp2-esm/*.md"] } }, "test-js-node": { diff --git a/libs/testapp2-esm/src/index.ts b/apps/testapp2-esm/src/index.ts similarity index 100% rename from libs/testapp2-esm/src/index.ts rename to apps/testapp2-esm/src/index.ts diff --git a/libs/testapp2-esm/src/lib/testapp2-esm.ts b/apps/testapp2-esm/src/lib/testapp2-esm.ts similarity index 100% rename from libs/testapp2-esm/src/lib/testapp2-esm.ts rename to apps/testapp2-esm/src/lib/testapp2-esm.ts diff --git a/libs/testapp2-esm/tsconfig.json b/apps/testapp2-esm/tsconfig.json similarity index 100% rename from libs/testapp2-esm/tsconfig.json rename to apps/testapp2-esm/tsconfig.json diff --git a/libs/testapp2-esm/tsconfig.lib.json b/apps/testapp2-esm/tsconfig.lib.json similarity index 100% rename from libs/testapp2-esm/tsconfig.lib.json rename to apps/testapp2-esm/tsconfig.lib.json diff --git a/tsconfig.base.json b/tsconfig.base.json index ba1539a..54a0f96 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -16,8 +16,8 @@ "baseUrl": ".", "paths": { "@harves/nx-node-esm-plugin": ["libs/nx-node-esm-plugin/src/index.ts"], - "@harves/testapp1-commonjs": ["libs/testapp1-commonjs/src/index.ts"], - "@harves/testapp2-esm": ["libs/testapp2-esm/src/index.ts"], + "@harves/testapp1-commonjs": ["apps/testapp1-commonjs/src/index.ts"], + "@harves/testapp2-esm": ["apps/testapp2-esm/src/index.ts"], "@harves/testlib1-commonjs": ["libs/testlib1-commonjs/src/index.ts"], "@harves/testlib2-esm": ["libs/testlib2-esm/src/index.ts"], "@nx-node-esm-plugin/node-runner": ["libs/node-runner/src/index.ts"]