From 4a5d36ff6192eeb884df3eee6fcecd1fd16b3232 Mon Sep 17 00:00:00 2001 From: keuller Date: Fri, 24 Feb 2023 11:42:18 +0000 Subject: [PATCH] fix: linter reference incorrect the linter for demo-app was incorrect pointing out to packages folder indead of apps. BREAKING CHANGE: N --- apps/demo-app/.eslintrc.json | 2 +- apps/demo-app/project.json | 18 +++++++++--------- apps/demo-app/vite.config.ts | 4 ++-- package.json | 1 - 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/apps/demo-app/.eslintrc.json b/apps/demo-app/.eslintrc.json index 1a101b0..c30cf47 100644 --- a/apps/demo-app/.eslintrc.json +++ b/apps/demo-app/.eslintrc.json @@ -7,7 +7,7 @@ ], "parser": "@typescript-eslint/parser", "parserOptions": { - "project": ["packages/demo-app/tsconfig.*?.json"], + "project": ["apps/demo-app/tsconfig.*?.json"], "ecmaVersion": 2021, "sourceType": "module", "ecmaFeatures": { diff --git a/apps/demo-app/project.json b/apps/demo-app/project.json index b3b7db8..505eec7 100644 --- a/apps/demo-app/project.json +++ b/apps/demo-app/project.json @@ -2,7 +2,7 @@ "name": "demo-app", "$schema": "../../node_modules/nx/schemas/project-schema.json", "projectType": "application", - "sourceRoot": "packages/demo-app/src", + "sourceRoot": "apps/demo-app/src", "targets": { "build": { "executor": "qwik-nx:build", @@ -11,7 +11,7 @@ "demo-app:build.client", "demo-app:build.ssr" ], - "outputPath": "dist/packages/demo-app" + "outputPath": "dist/apps/demo-app" }, "configurations": { "preview": {} @@ -20,15 +20,15 @@ "build.client": { "executor": "@nrwl/vite:build", "options": { - "outputPath": "dist/packages/demo-app", - "configFile": "packages/demo-app/vite.config.ts" + "outputPath": "dist/apps/demo-app", + "configFile": "apps/demo-app/vite.config.ts" } }, "build.ssr": { "executor": "@nrwl/vite:build", "defaultConfiguration": "preview", "options": { - "outputPath": "dist/packages/demo-app" + "outputPath": "dist/apps/demo-app" }, "configurations": { "preview": { @@ -45,10 +45,10 @@ }, "test": { "executor": "@nrwl/vite:test", - "outputs": ["../../coverage/packages/demo-app"], + "outputs": ["../../coverage/apps/demo-app"], "options": { "passWithNoTests": true, - "reportsDirectory": "../../coverage/packages/demo-app" + "reportsDirectory": "../../coverage/apps/demo-app" } }, "serve": { @@ -62,14 +62,14 @@ "executor": "nx:run-commands", "options": { "command": "node --inspect-brk ../../node_modules/vite/bin/vite.js --mode ssr --force", - "cwd": "packages/demo-app" + "cwd": "apps/demo-app" } }, "lint": { "executor": "@nrwl/linter:eslint", "outputs": ["{options.outputFile}"], "options": { - "lintFilePatterns": ["packages/demo-app/**/*.{ts,tsx,js,jsx}"] + "lintFilePatterns": ["apps/demo-app/**/*.{ts,tsx,js,jsx}"] } } }, diff --git a/apps/demo-app/vite.config.ts b/apps/demo-app/vite.config.ts index b1517ca..0e0e768 100644 --- a/apps/demo-app/vite.config.ts +++ b/apps/demo-app/vite.config.ts @@ -10,10 +10,10 @@ export default defineConfig({ qwikCity(), qwikVite({ client: { - outDir: '../../dist/packages/demo-app/client', + outDir: '../../dist/apps/demo-app/client', }, ssr: { - outDir: '../../dist/packages/demo-app/server', + outDir: '../../dist/apps/demo-app/server', }, }), tsconfigPaths({ root: '../../' }), diff --git a/package.json b/package.json index 19a3cc5..9b2fa7c 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,6 @@ "version": "0.0.1", "license": "MIT", "scripts": { - "lint": "nx affected:lint --base=last-release", "commit": "pnpx git-cz --disable-emoji", "test": "nx test qwik-flow" },