diff --git a/packages/storybook/src/generators/configuration/__snapshots__/configuration-nested.spec.ts.snap b/packages/storybook/src/generators/configuration/__snapshots__/configuration-nested.spec.ts.snap index 3d512dd68b36ef..a59ae5d7191555 100644 --- a/packages/storybook/src/generators/configuration/__snapshots__/configuration-nested.spec.ts.snap +++ b/packages/storybook/src/generators/configuration/__snapshots__/configuration-nested.spec.ts.snap @@ -67,13 +67,7 @@ exports[`@nrwl/storybook:configuration for workspaces with Root project basic fu export const rootMain: StorybookConfig = { stories: [], - addons: ['@storybook/addon-essentials'], - // webpackFinal: async (config, { configType }) => { - // // Make whatever fine-grained changes you need that should apply to all storybook configs - - // // Return the altered config - // return config; - // }, + addons: ['@storybook/addon-essentials'] }; " `; diff --git a/packages/storybook/src/generators/configuration/__snapshots__/configuration-v7.spec.ts.snap b/packages/storybook/src/generators/configuration/__snapshots__/configuration-v7.spec.ts.snap new file mode 100644 index 00000000000000..0fdc0affd153c1 --- /dev/null +++ b/packages/storybook/src/generators/configuration/__snapshots__/configuration-v7.spec.ts.snap @@ -0,0 +1,2279 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`@nrwl/storybook:configuration for Storybook v7 basic functionalities should generate TS config for project if root config is TS 1`] = ` +"import { rootMain } from '../../../.storybook/main'; + +import type { StorybookConfig, Options } from '@storybook/core-common'; + + + +const config: StorybookConfig = { + ...rootMain, + stories: [ + ...rootMain.stories, + '../**/*.stories.@(js|jsx|ts|tsx|mdx)' ], + addons: [...(rootMain.addons || []) + + ], + webpackFinal: async (config, { configType }: Options) => { + // apply any global webpack configs that might have been specified in .storybook/main.ts + if (rootMain.webpackFinal) { + config = await rootMain.webpackFinal(config, { configType } as Options); + } + + // add your own webpack tweaks if needed + + return config; + }, + framework: { + name: '@storybook/angular', + options: {}, + }, + docs: { + autodocs: true, + }, +}; + +module.exports = config; +" +`; + +exports[`@nrwl/storybook:configuration for Storybook v7 basic functionalities should generate TypeScript Configuration files 1`] = ` +Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "name": "test-ui-lib", + "projectType": "library", + "root": "libs/test-ui-lib", + "sourceRoot": "libs/test-ui-lib/src", + "tags": Array [], + "targets": Object { + "build-storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@storybook/angular:build-storybook", + "options": Object { + "browserTarget": "test-ui-lib:build-storybook", + "compodoc": false, + "configDir": "libs/test-ui-lib/.storybook", + "outputDir": "dist/storybook/test-ui-lib", + }, + "outputs": Array [ + "{options.outputDir}", + ], + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "libs/test-ui-lib/**/*.ts", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@storybook/angular:start-storybook", + "options": Object { + "browserTarget": "test-ui-lib:build-storybook", + "compodoc": false, + "configDir": "libs/test-ui-lib/.storybook", + "port": 4400, + }, + }, + "test": Object { + "executor": "@nrwl/jest:jest", + "options": Object { + "jestConfig": "libs/test-ui-lib/jest.config.ts", + "passWithNoTests": true, + }, + "outputs": Array [ + "{workspaceRoot}/coverage/{projectRoot}", + ], + }, + }, +} +`; + +exports[`@nrwl/storybook:configuration for Storybook v7 basic functionalities should generate TypeScript Configuration files 2`] = ` +"import type { StorybookConfig } from '@storybook/core-common'; + +export const rootMain: StorybookConfig = { + stories: [], + addons: ['@storybook/addon-essentials'] +}; +" +`; + +exports[`@nrwl/storybook:configuration for Storybook v7 basic functionalities should generate TypeScript Configuration files 3`] = ` +"{ + \\"extends\\": \\"../tsconfig.json\\", + \\"compilerOptions\\": { + \\"emitDecoratorMetadata\\": true + + }, + + \\"exclude\\": [\\"../**/*.spec.ts\\" ], + \\"include\\": [ + \\"../src/**/*.stories.ts\\", + \\"../src/**/*.stories.js\\", + \\"../src/**/*.stories.jsx\\", + \\"../src/**/*.stories.tsx\\", + \\"../src/**/*.stories.mdx\\", + \\"*.ts\\", + \\"*.js\\"] +} +" +`; + +exports[`@nrwl/storybook:configuration for Storybook v7 basic functionalities should generate TypeScript Configuration files 4`] = ` +"import { rootMain } from '../../../.storybook/main'; + +import type { StorybookConfig, Options } from '@storybook/core-common'; + + + +const config: StorybookConfig = { + ...rootMain, + stories: [ + ...rootMain.stories, + '../**/*.stories.@(js|jsx|ts|tsx|mdx)' ], + addons: [...(rootMain.addons || []) + + ], + webpackFinal: async (config, { configType }: Options) => { + // apply any global webpack configs that might have been specified in .storybook/main.ts + if (rootMain.webpackFinal) { + config = await rootMain.webpackFinal(config, { configType } as Options); + } + + // add your own webpack tweaks if needed + + return config; + }, + framework: { + name: '@storybook/angular', + options: {}, + }, + docs: { + autodocs: true, + }, +}; + +module.exports = config; +" +`; + +exports[`@nrwl/storybook:configuration for Storybook v7 basic functionalities should have the proper typings 1`] = ` +"{ + \\"extends\\": \\"../tsconfig.json\\", + \\"compilerOptions\\": { + \\"emitDecoratorMetadata\\": true + , \\"outDir\\": \\"\\" + }, + \\"files\\": [ + \\"../../../node_modules/@nrwl/react/typings/styled-jsx.d.ts\\", + \\"../../../node_modules/@nrwl/react/typings/cssmodule.d.ts\\", + \\"../../../node_modules/@nrwl/react/typings/image.d.ts\\" + ], + \\"exclude\\": [\\"../**/*.spec.ts\\" , \\"../**/*.spec.js\\", \\"../**/*.spec.tsx\\", \\"../**/*.spec.jsx\\"], + \\"include\\": [ + \\"../src/**/*.stories.ts\\", + \\"../src/**/*.stories.js\\", + \\"../src/**/*.stories.jsx\\", + \\"../src/**/*.stories.tsx\\", + \\"../src/**/*.stories.mdx\\", + \\"*.js\\"] +} +" +`; + +exports[`@nrwl/storybook:configuration for Storybook v7 generate Storybook configuration for all types of projects should have updated all their target configurations correctly 1`] = ` +Map { + "main-vite" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "application", + "root": "apps/main-vite", + "sourceRoot": "apps/main-vite/src", + "tags": Array [], + "targets": Object { + "build": Object { + "configurations": Object { + "development": Object { + "mode": "development", + }, + "production": Object { + "mode": "production", + }, + }, + "defaultConfiguration": "production", + "executor": "@nrwl/vite:build", + "options": Object { + "outputPath": "dist/apps/main-vite", + }, + "outputs": Array [ + "{options.outputPath}", + ], + }, + "build-storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:build", + "options": Object { + "configDir": "apps/main-vite/.storybook", + "outputDir": "dist/storybook/main-vite", + }, + "outputs": Array [ + "{options.outputDir}", + ], + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/main-vite/**/*.{ts,tsx,js,jsx}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "serve": Object { + "configurations": Object { + "development": Object { + "buildTarget": "main-vite:build:development", + "hmr": true, + }, + "production": Object { + "buildTarget": "main-vite:build:production", + "hmr": false, + }, + }, + "defaultConfiguration": "development", + "executor": "@nrwl/vite:dev-server", + "options": Object { + "buildTarget": "main-vite:build", + }, + }, + "storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:storybook", + "options": Object { + "configDir": "apps/main-vite/.storybook", + "port": 4400, + }, + }, + "test": Object { + "executor": "@nrwl/vite:test", + "options": Object { + "passWithNoTests": true, + "reportsDirectory": "../../coverage/apps/main-vite", + }, + "outputs": Array [ + "coverage/apps/main-vite", + ], + }, + }, + }, + "main-vite-e2e" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "implicitDependencies": Array [ + "main-vite", + ], + "projectType": "application", + "root": "apps/main-vite-e2e", + "sourceRoot": "apps/main-vite-e2e/src", + "tags": Array [], + "targets": Object { + "e2e": Object { + "configurations": Object { + "production": Object { + "devServerTarget": "main-vite:serve:production", + }, + }, + "executor": "@nrwl/cypress:cypress", + "options": Object { + "cypressConfig": "apps/main-vite-e2e/cypress.config.ts", + "devServerTarget": "main-vite:serve:development", + "testingType": "e2e", + }, + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/main-vite-e2e/**/*.{js,ts}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + }, + }, + "main-vite-ts" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "application", + "root": "apps/main-vite-ts", + "sourceRoot": "apps/main-vite-ts/src", + "tags": Array [], + "targets": Object { + "build": Object { + "configurations": Object { + "development": Object { + "mode": "development", + }, + "production": Object { + "mode": "production", + }, + }, + "defaultConfiguration": "production", + "executor": "@nrwl/vite:build", + "options": Object { + "outputPath": "dist/apps/main-vite-ts", + }, + "outputs": Array [ + "{options.outputPath}", + ], + }, + "build-storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:build", + "options": Object { + "configDir": "apps/main-vite-ts/.storybook", + "outputDir": "dist/storybook/main-vite-ts", + }, + "outputs": Array [ + "{options.outputDir}", + ], + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/main-vite-ts/**/*.{ts,tsx,js,jsx}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "serve": Object { + "configurations": Object { + "development": Object { + "buildTarget": "main-vite-ts:build:development", + "hmr": true, + }, + "production": Object { + "buildTarget": "main-vite-ts:build:production", + "hmr": false, + }, + }, + "defaultConfiguration": "development", + "executor": "@nrwl/vite:dev-server", + "options": Object { + "buildTarget": "main-vite-ts:build", + }, + }, + "storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:storybook", + "options": Object { + "configDir": "apps/main-vite-ts/.storybook", + "port": 4400, + }, + }, + "test": Object { + "executor": "@nrwl/vite:test", + "options": Object { + "passWithNoTests": true, + "reportsDirectory": "../../coverage/apps/main-vite-ts", + }, + "outputs": Array [ + "coverage/apps/main-vite-ts", + ], + }, + }, + }, + "main-vite-ts-e2e" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "implicitDependencies": Array [ + "main-vite-ts", + ], + "projectType": "application", + "root": "apps/main-vite-ts-e2e", + "sourceRoot": "apps/main-vite-ts-e2e/src", + "tags": Array [], + "targets": Object { + "e2e": Object { + "configurations": Object { + "production": Object { + "devServerTarget": "main-vite-ts:serve:production", + }, + }, + "executor": "@nrwl/cypress:cypress", + "options": Object { + "cypressConfig": "apps/main-vite-ts-e2e/cypress.config.ts", + "devServerTarget": "main-vite-ts:serve:development", + "testingType": "e2e", + }, + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/main-vite-ts-e2e/**/*.{js,ts}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + }, + }, + "main-webpack" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "application", + "root": "apps/main-webpack", + "sourceRoot": "apps/main-webpack/src", + "tags": Array [], + "targets": Object { + "build": Object { + "configurations": Object { + "development": Object { + "extractLicenses": false, + "optimization": false, + "sourceMap": true, + "vendorChunk": true, + }, + "production": Object { + "extractLicenses": true, + "fileReplacements": Array [ + Object { + "replace": "apps/main-webpack/src/environments/environment.ts", + "with": "apps/main-webpack/src/environments/environment.prod.ts", + }, + ], + "namedChunks": false, + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "vendorChunk": false, + }, + }, + "defaultConfiguration": "production", + "executor": "@nrwl/webpack:webpack", + "options": Object { + "assets": Array [ + "apps/main-webpack/src/favicon.ico", + "apps/main-webpack/src/assets", + ], + "baseHref": "/", + "compiler": "babel", + "index": "apps/main-webpack/src/index.html", + "main": "apps/main-webpack/src/main.tsx", + "outputPath": "dist/apps/main-webpack", + "polyfills": "apps/main-webpack/src/polyfills.ts", + "scripts": Array [], + "styles": Array [ + "apps/main-webpack/src/styles.css", + ], + "tsConfig": "apps/main-webpack/tsconfig.app.json", + "webpackConfig": "@nrwl/react/plugins/webpack", + }, + "outputs": Array [ + "{options.outputPath}", + ], + }, + "build-storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:build", + "options": Object { + "configDir": "apps/main-webpack/.storybook", + "outputDir": "dist/storybook/main-webpack", + }, + "outputs": Array [ + "{options.outputDir}", + ], + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/main-webpack/**/*.{ts,tsx,js,jsx}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "serve": Object { + "configurations": Object { + "development": Object { + "buildTarget": "main-webpack:build:development", + }, + "production": Object { + "buildTarget": "main-webpack:build:production", + "hmr": false, + }, + }, + "defaultConfiguration": "development", + "executor": "@nrwl/webpack:dev-server", + "options": Object { + "buildTarget": "main-webpack:build", + "hmr": true, + }, + }, + "storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:storybook", + "options": Object { + "configDir": "apps/main-webpack/.storybook", + "port": 4400, + }, + }, + "test": Object { + "executor": "@nrwl/jest:jest", + "options": Object { + "jestConfig": "apps/main-webpack/jest.config.ts", + "passWithNoTests": true, + }, + "outputs": Array [ + "{workspaceRoot}/coverage/{projectRoot}", + ], + }, + }, + }, + "main-webpack-e2e" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "implicitDependencies": Array [ + "main-webpack", + ], + "projectType": "application", + "root": "apps/main-webpack-e2e", + "sourceRoot": "apps/main-webpack-e2e/src", + "tags": Array [], + "targets": Object { + "e2e": Object { + "configurations": Object { + "production": Object { + "devServerTarget": "main-webpack:serve:production", + }, + }, + "executor": "@nrwl/cypress:cypress", + "options": Object { + "cypressConfig": "apps/main-webpack-e2e/cypress.config.ts", + "devServerTarget": "main-webpack:serve:development", + "testingType": "e2e", + }, + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/main-webpack-e2e/**/*.{js,ts}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + }, + }, + "my-plugin" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "library", + "root": "libs/my-plugin", + "sourceRoot": "libs/my-plugin/src", + "tags": Array [], + "targets": Object { + "build": Object { + "executor": "@nrwl/js:tsc", + "options": Object { + "assets": Array [ + "libs/my-plugin/*.md", + Object { + "glob": "**/!(*.ts)", + "input": "./libs/my-plugin/src", + "output": "./src", + }, + Object { + "glob": "**/*.d.ts", + "input": "./libs/my-plugin/src", + "output": "./src", + }, + Object { + "glob": "generators.json", + "input": "./libs/my-plugin", + "output": ".", + }, + Object { + "glob": "executors.json", + "input": "./libs/my-plugin", + "output": ".", + }, + ], + "main": "libs/my-plugin/src/index.ts", + "outputPath": "dist/libs/my-plugin", + "tsConfig": "libs/my-plugin/tsconfig.lib.json", + }, + "outputs": Array [ + "{options.outputPath}", + ], + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "libs/my-plugin/**/*.ts", + "libs/my-plugin/generators.json", + "libs/my-plugin/executors.json", + "libs/my-plugin/package.json", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "test": Object { + "executor": "@nrwl/jest:jest", + "options": Object { + "jestConfig": "libs/my-plugin/jest.config.ts", + "passWithNoTests": true, + }, + "outputs": Array [ + "{workspaceRoot}/coverage/{projectRoot}", + ], + }, + }, + }, + "my-plugin-e2e" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "implicitDependencies": Array [ + "my-plugin", + ], + "projectType": "application", + "root": "apps/my-plugin-e2e", + "sourceRoot": "apps/my-plugin-e2e/src", + "tags": Array [], + "targets": Object { + "e2e": Object { + "executor": "@nrwl/nx-plugin:e2e", + "options": Object { + "jestConfig": "apps/my-plugin-e2e/jest.config.ts", + "target": "my-plugin:build", + }, + }, + }, + }, + "mylib" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "library", + "root": "libs/mylib", + "sourceRoot": "libs/mylib/src", + "tags": Array [], + "targets": Object { + "build": Object { + "executor": "@imported-libs/my-plugin:build", + }, + }, + }, + "nextapp" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "application", + "root": "apps/nextapp", + "sourceRoot": "apps/nextapp", + "tags": Array [], + "targets": Object { + "build": Object { + "configurations": Object { + "development": Object { + "outputPath": "apps/nextapp", + }, + "production": Object {}, + }, + "defaultConfiguration": "production", + "executor": "@nrwl/next:build", + "options": Object { + "outputPath": "dist/apps/nextapp", + "root": "apps/nextapp", + }, + "outputs": Array [ + "{options.outputPath}", + ], + }, + "build-storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:build", + "options": Object { + "configDir": "apps/nextapp/.storybook", + "outputDir": "dist/storybook/nextapp", + }, + "outputs": Array [ + "{options.outputDir}", + ], + }, + "export": Object { + "executor": "@nrwl/next:export", + "options": Object { + "buildTarget": "nextapp:build:production", + }, + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/nextapp/**/*.{ts,tsx,js,jsx}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "serve": Object { + "configurations": Object { + "development": Object { + "buildTarget": "nextapp:build:development", + "dev": true, + }, + "production": Object { + "buildTarget": "nextapp:build:production", + "dev": false, + }, + }, + "defaultConfiguration": "development", + "executor": "@nrwl/next:server", + "options": Object { + "buildTarget": "nextapp:build", + "dev": true, + }, + }, + "storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:storybook", + "options": Object { + "configDir": "apps/nextapp/.storybook", + "port": 4400, + }, + }, + "test": Object { + "executor": "@nrwl/jest:jest", + "options": Object { + "jestConfig": "apps/nextapp/jest.config.ts", + "passWithNoTests": true, + }, + "outputs": Array [ + "{workspaceRoot}/coverage/{projectRoot}", + ], + }, + }, + }, + "nextapp-e2e" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "implicitDependencies": Array [ + "nextapp", + ], + "projectType": "application", + "root": "apps/nextapp-e2e", + "sourceRoot": "apps/nextapp-e2e/src", + "tags": Array [], + "targets": Object { + "e2e": Object { + "configurations": Object { + "production": Object { + "devServerTarget": "nextapp:serve:production", + }, + }, + "executor": "@nrwl/cypress:cypress", + "options": Object { + "cypressConfig": "apps/nextapp-e2e/cypress.config.ts", + "devServerTarget": "nextapp:serve:development", + "testingType": "e2e", + }, + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/nextapp-e2e/**/*.{js,ts}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + }, + }, + "ngapp" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "prefix": "imported-libs", + "projectType": "application", + "root": "apps/ngapp", + "sourceRoot": "apps/ngapp/src", + "tags": Array [], + "targets": Object { + "build": Object { + "configurations": Object { + "development": Object { + "buildOptimizer": false, + "extractLicenses": false, + "namedChunks": true, + "optimization": false, + "sourceMap": true, + "vendorChunk": true, + }, + "production": Object { + "budgets": Array [ + Object { + "maximumError": "1mb", + "maximumWarning": "500kb", + "type": "initial", + }, + Object { + "maximumError": "4kb", + "maximumWarning": "2kb", + "type": "anyComponentStyle", + }, + ], + "outputHashing": "all", + }, + }, + "defaultConfiguration": "production", + "executor": "@angular-devkit/build-angular:browser", + "options": Object { + "assets": Array [ + "apps/ngapp/src/favicon.ico", + "apps/ngapp/src/assets", + ], + "index": "apps/ngapp/src/index.html", + "main": "apps/ngapp/src/main.ts", + "outputPath": "dist/apps/ngapp", + "polyfills": Array [ + "zone.js", + ], + "scripts": Array [], + "styles": Array [ + "apps/ngapp/src/styles.css", + ], + "tsConfig": "apps/ngapp/tsconfig.app.json", + }, + "outputs": Array [ + "{options.outputPath}", + ], + }, + "build-storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@storybook/angular:build-storybook", + "options": Object { + "browserTarget": "ngapp:build", + "compodoc": false, + "configDir": "apps/ngapp/.storybook", + "outputDir": "dist/storybook/ngapp", + }, + "outputs": Array [ + "{options.outputDir}", + ], + }, + "extract-i18n": Object { + "executor": "@angular-devkit/build-angular:extract-i18n", + "options": Object { + "browserTarget": "ngapp:build", + }, + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/ngapp/**/*.ts", + "apps/ngapp/**/*.html", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "serve": Object { + "configurations": Object { + "development": Object { + "browserTarget": "ngapp:build:development", + }, + "production": Object { + "browserTarget": "ngapp:build:production", + }, + }, + "defaultConfiguration": "development", + "executor": "@angular-devkit/build-angular:dev-server", + }, + "storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@storybook/angular:start-storybook", + "options": Object { + "browserTarget": "ngapp:build", + "compodoc": false, + "configDir": "apps/ngapp/.storybook", + "port": 4400, + }, + }, + "test": Object { + "executor": "@nrwl/jest:jest", + "options": Object { + "jestConfig": "apps/ngapp/jest.config.ts", + "passWithNoTests": true, + }, + "outputs": Array [ + "{workspaceRoot}/coverage/{projectRoot}", + ], + }, + }, + }, + "ngapp-e2e" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "implicitDependencies": Array [ + "ngapp", + ], + "projectType": "application", + "root": "apps/ngapp-e2e", + "sourceRoot": "apps/ngapp-e2e/src", + "tags": Array [], + "targets": Object { + "e2e": Object { + "configurations": Object { + "production": Object { + "devServerTarget": "ngapp:serve:production", + }, + }, + "executor": "@nrwl/cypress:cypress", + "options": Object { + "cypressConfig": "apps/ngapp-e2e/cypress.config.ts", + "devServerTarget": "ngapp:serve:development", + "testingType": "e2e", + }, + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/ngapp-e2e/**/*.{js,ts}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + }, + }, + "nglib" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "prefix": "imported-libs", + "projectType": "library", + "root": "libs/nglib", + "sourceRoot": "libs/nglib/src", + "tags": Array [], + "targets": Object { + "build-storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@storybook/angular:build-storybook", + "options": Object { + "browserTarget": "nglib:build-storybook", + "compodoc": false, + "configDir": "libs/nglib/.storybook", + "outputDir": "dist/storybook/nglib", + }, + "outputs": Array [ + "{options.outputDir}", + ], + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "libs/nglib/**/*.ts", + "libs/nglib/**/*.html", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@storybook/angular:start-storybook", + "options": Object { + "browserTarget": "nglib:build-storybook", + "compodoc": false, + "configDir": "libs/nglib/.storybook", + "port": 4400, + }, + }, + "test": Object { + "executor": "@nrwl/jest:jest", + "options": Object { + "jestConfig": "libs/nglib/jest.config.ts", + "passWithNoTests": true, + }, + "outputs": Array [ + "{workspaceRoot}/coverage/{projectRoot}", + ], + }, + }, + }, + "nglib-e2e" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "implicitDependencies": Array [ + "nglib", + ], + "projectType": "application", + "root": "apps/nglib-e2e", + "sourceRoot": "apps/nglib-e2e/src", + "tags": Array [], + "targets": Object { + "e2e": Object { + "configurations": Object { + "ci": Object { + "devServerTarget": "nglib:storybook:ci", + }, + }, + "executor": "@nrwl/cypress:cypress", + "options": Object { + "cypressConfig": "apps/nglib-e2e/cypress.config.ts", + "devServerTarget": "nglib:storybook", + "testingType": "e2e", + }, + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/nglib-e2e/**/*.{js,ts}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + }, + }, + "react-rollup" => Object { + "projectType": "library", + "root": "libs/react-rollup", + "sourceRoot": "libs/react-rollup/src", + "tags": Array [], + "targets": Object { + "build": Object { + "executor": "@nrwl/rollup:rollup", + "options": Object { + "assets": Array [ + Object { + "glob": "libs/react-rollup/README.md", + "input": ".", + "output": ".", + }, + ], + "compiler": "babel", + "entryFile": "libs/react-rollup/src/index.ts", + "external": Array [ + "react/jsx-runtime", + ], + "outputPath": "dist/libs/react-rollup", + "project": "libs/react-rollup/package.json", + "rollupConfig": "@nrwl/react/plugins/bundle-rollup", + "tsConfig": "libs/react-rollup/tsconfig.lib.json", + }, + "outputs": Array [ + "{options.outputPath}", + ], + }, + "build-storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:build", + "options": Object { + "configDir": "libs/react-rollup/.storybook", + "outputDir": "dist/storybook/react-rollup", + }, + "outputs": Array [ + "{options.outputDir}", + ], + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "libs/react-rollup/**/*.{ts,tsx,js,jsx}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:storybook", + "options": Object { + "configDir": "libs/react-rollup/.storybook", + "port": 4400, + }, + }, + "test": Object { + "executor": "@nrwl/jest:jest", + "options": Object { + "jestConfig": "libs/react-rollup/jest.config.ts", + "passWithNoTests": true, + }, + "outputs": Array [ + "{workspaceRoot}/coverage/{projectRoot}", + ], + }, + }, + }, + "react-rollup-2" => Object { + "projectType": "library", + "root": "libs/react-rollup-2", + "sourceRoot": "libs/react-rollup-2/src", + "tags": Array [], + "targets": Object { + "build": Object { + "executor": "@nrwl/rollup:rollup", + "options": Object { + "assets": Array [ + Object { + "glob": "libs/react-rollup-2/README.md", + "input": ".", + "output": ".", + }, + ], + "compiler": "babel", + "entryFile": "libs/react-rollup-2/src/index.ts", + "external": Array [ + "react/jsx-runtime", + ], + "outputPath": "dist/libs/react-rollup-2", + "project": "libs/react-rollup-2/package.json", + "rollupConfig": "@nrwl/react/plugins/bundle-rollup", + "tsConfig": "libs/react-rollup-2/tsconfig.lib.json", + }, + "outputs": Array [ + "{options.outputPath}", + ], + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "libs/react-rollup-2/**/*.{ts,tsx,js,jsx}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "test": Object { + "executor": "@nrwl/jest:jest", + "options": Object { + "jestConfig": "libs/react-rollup-2/jest.config.ts", + "passWithNoTests": true, + }, + "outputs": Array [ + "{workspaceRoot}/coverage/{projectRoot}", + ], + }, + }, + }, + "react-rollup-e2e" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "implicitDependencies": Array [ + "react-rollup", + ], + "projectType": "application", + "root": "apps/react-rollup-e2e", + "sourceRoot": "apps/react-rollup-e2e/src", + "tags": Array [], + "targets": Object { + "e2e": Object { + "configurations": Object { + "ci": Object { + "devServerTarget": "react-rollup:storybook:ci", + }, + }, + "executor": "@nrwl/cypress:cypress", + "options": Object { + "cypressConfig": "apps/react-rollup-e2e/cypress.config.ts", + "devServerTarget": "react-rollup:storybook", + "testingType": "e2e", + }, + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/react-rollup-e2e/**/*.{js,ts}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + }, + }, + "react-swc" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "application", + "root": "apps/react-swc", + "sourceRoot": "apps/react-swc/src", + "tags": Array [], + "targets": Object { + "build": Object { + "configurations": Object { + "development": Object { + "extractLicenses": false, + "optimization": false, + "sourceMap": true, + "vendorChunk": true, + }, + "production": Object { + "extractLicenses": true, + "fileReplacements": Array [ + Object { + "replace": "apps/react-swc/src/environments/environment.ts", + "with": "apps/react-swc/src/environments/environment.prod.ts", + }, + ], + "namedChunks": false, + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "vendorChunk": false, + }, + }, + "defaultConfiguration": "production", + "executor": "@nrwl/webpack:webpack", + "options": Object { + "assets": Array [ + "apps/react-swc/src/favicon.ico", + "apps/react-swc/src/assets", + ], + "baseHref": "/", + "compiler": "swc", + "index": "apps/react-swc/src/index.html", + "main": "apps/react-swc/src/main.tsx", + "outputPath": "dist/apps/react-swc", + "scripts": Array [], + "styles": Array [ + "apps/react-swc/src/styles.css", + ], + "tsConfig": "apps/react-swc/tsconfig.app.json", + "webpackConfig": "apps/react-swc/webpack.config.js", + }, + "outputs": Array [ + "{options.outputPath}", + ], + }, + "build-storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:build", + "options": Object { + "configDir": "apps/react-swc/.storybook", + "outputDir": "dist/storybook/react-swc", + }, + "outputs": Array [ + "{options.outputDir}", + ], + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/react-swc/**/*.{ts,tsx,js,jsx}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "serve": Object { + "configurations": Object { + "development": Object { + "buildTarget": "react-swc:build:development", + }, + "production": Object { + "buildTarget": "react-swc:build:production", + "hmr": false, + }, + }, + "defaultConfiguration": "development", + "executor": "@nrwl/webpack:dev-server", + "options": Object { + "buildTarget": "react-swc:build", + "hmr": true, + }, + }, + "storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:storybook", + "options": Object { + "configDir": "apps/react-swc/.storybook", + "port": 4400, + }, + }, + "test": Object { + "executor": "@nrwl/jest:jest", + "options": Object { + "jestConfig": "apps/react-swc/jest.config.ts", + "passWithNoTests": true, + }, + "outputs": Array [ + "{workspaceRoot}/coverage/{projectRoot}", + ], + }, + }, + }, + "react-swc-e2e" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "implicitDependencies": Array [ + "react-swc", + ], + "projectType": "application", + "root": "apps/react-swc-e2e", + "sourceRoot": "apps/react-swc-e2e/src", + "tags": Array [], + "targets": Object { + "e2e": Object { + "configurations": Object { + "production": Object { + "devServerTarget": "react-swc:serve:production", + }, + }, + "executor": "@nrwl/cypress:cypress", + "options": Object { + "cypressConfig": "apps/react-swc-e2e/cypress.config.ts", + "devServerTarget": "react-swc:serve:development", + "testingType": "e2e", + }, + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/react-swc-e2e/**/*.{js,ts}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + }, + }, + "react-vite" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "library", + "root": "libs/react-vite", + "sourceRoot": "libs/react-vite/src", + "tags": Array [], + "targets": Object { + "build": Object { + "configurations": Object { + "development": Object { + "mode": "development", + }, + "production": Object { + "mode": "production", + }, + }, + "defaultConfiguration": "production", + "executor": "@nrwl/vite:build", + "options": Object { + "outputPath": "dist/libs/react-vite", + }, + "outputs": Array [ + "{options.outputPath}", + ], + }, + "build-storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:build", + "options": Object { + "configDir": "libs/react-vite/.storybook", + "outputDir": "dist/storybook/react-vite", + }, + "outputs": Array [ + "{options.outputDir}", + ], + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "libs/react-vite/**/*.{ts,tsx,js,jsx}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:storybook", + "options": Object { + "configDir": "libs/react-vite/.storybook", + "port": 4400, + }, + }, + "test": Object { + "executor": "@nrwl/vite:test", + "options": Object { + "passWithNoTests": true, + "reportsDirectory": "../../coverage/libs/react-vite", + }, + "outputs": Array [ + "coverage/libs/react-vite", + ], + }, + }, + }, + "react-vite-2" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "library", + "root": "libs/react-vite-2", + "sourceRoot": "libs/react-vite-2/src", + "tags": Array [], + "targets": Object { + "build": Object { + "configurations": Object { + "development": Object { + "mode": "development", + }, + "production": Object { + "mode": "production", + }, + }, + "defaultConfiguration": "production", + "executor": "@nrwl/vite:build", + "options": Object { + "outputPath": "dist/libs/react-vite-2", + }, + "outputs": Array [ + "{options.outputPath}", + ], + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "libs/react-vite-2/**/*.{ts,tsx,js,jsx}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "test": Object { + "executor": "@nrwl/vite:test", + "options": Object { + "passWithNoTests": true, + "reportsDirectory": "../../coverage/libs/react-vite-2", + }, + "outputs": Array [ + "coverage/libs/react-vite-2", + ], + }, + }, + }, + "react-vite-e2e" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "implicitDependencies": Array [ + "react-vite", + ], + "projectType": "application", + "root": "apps/react-vite-e2e", + "sourceRoot": "apps/react-vite-e2e/src", + "tags": Array [], + "targets": Object { + "e2e": Object { + "configurations": Object { + "ci": Object { + "devServerTarget": "react-vite:storybook:ci", + }, + }, + "executor": "@nrwl/cypress:cypress", + "options": Object { + "cypressConfig": "apps/react-vite-e2e/cypress.config.ts", + "devServerTarget": "react-vite:storybook", + "testingType": "e2e", + }, + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/react-vite-e2e/**/*.{js,ts}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + }, + }, + "reapp" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "application", + "root": "apps/reapp", + "sourceRoot": "apps/reapp/src", + "tags": Array [], + "targets": Object { + "build": Object { + "configurations": Object { + "development": Object { + "mode": "development", + }, + "production": Object { + "mode": "production", + }, + }, + "defaultConfiguration": "production", + "executor": "@nrwl/vite:build", + "options": Object { + "outputPath": "dist/apps/reapp", + }, + "outputs": Array [ + "{options.outputPath}", + ], + }, + "build-storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:build", + "options": Object { + "configDir": "apps/reapp/.storybook", + "outputDir": "dist/storybook/reapp", + "uiFramework": "@storybook/react", + }, + "outputs": Array [ + "{options.outputDir}", + ], + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/reapp/**/*.{ts,tsx,js,jsx}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "serve": Object { + "configurations": Object { + "development": Object { + "buildTarget": "reapp:build:development", + "hmr": true, + }, + "production": Object { + "buildTarget": "reapp:build:production", + "hmr": false, + }, + }, + "defaultConfiguration": "development", + "executor": "@nrwl/vite:dev-server", + "options": Object { + "buildTarget": "reapp:build", + }, + }, + "storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:storybook", + "options": Object { + "configDir": "apps/reapp/.storybook", + "port": 4400, + "uiFramework": "@storybook/react", + }, + }, + "test": Object { + "executor": "@nrwl/vite:test", + "options": Object { + "passWithNoTests": true, + "reportsDirectory": "../../coverage/apps/reapp", + }, + "outputs": Array [ + "coverage/apps/reapp", + ], + }, + }, + }, + "reapp-e2e" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "implicitDependencies": Array [ + "reapp", + ], + "projectType": "application", + "root": "apps/reapp-e2e", + "sourceRoot": "apps/reapp-e2e/src", + "tags": Array [], + "targets": Object { + "e2e": Object { + "configurations": Object { + "production": Object { + "devServerTarget": "reapp:serve:production", + }, + }, + "executor": "@nrwl/cypress:cypress", + "options": Object { + "cypressConfig": "apps/reapp-e2e/cypress.config.ts", + "devServerTarget": "reapp:serve:development", + "testingType": "e2e", + }, + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/reapp-e2e/**/*.{js,ts}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + }, + }, + "reappw" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "application", + "root": "apps/reappw", + "sourceRoot": "apps/reappw/src", + "tags": Array [], + "targets": Object { + "build": Object { + "configurations": Object { + "development": Object { + "extractLicenses": false, + "optimization": false, + "sourceMap": true, + "vendorChunk": true, + }, + "production": Object { + "extractLicenses": true, + "fileReplacements": Array [ + Object { + "replace": "apps/reappw/src/environments/environment.ts", + "with": "apps/reappw/src/environments/environment.prod.ts", + }, + ], + "namedChunks": false, + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "vendorChunk": false, + }, + }, + "defaultConfiguration": "production", + "executor": "@nrwl/webpack:webpack", + "options": Object { + "assets": Array [ + "apps/reappw/src/favicon.ico", + "apps/reappw/src/assets", + ], + "baseHref": "/", + "compiler": "babel", + "index": "apps/reappw/src/index.html", + "main": "apps/reappw/src/main.tsx", + "outputPath": "dist/apps/reappw", + "scripts": Array [], + "styles": Array [ + "apps/reappw/src/styles.css", + ], + "tsConfig": "apps/reappw/tsconfig.app.json", + "webpackConfig": "@nrwl/react/plugins/webpack", + }, + "outputs": Array [ + "{options.outputPath}", + ], + }, + "build-storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:build", + "options": Object { + "configDir": "apps/reappw/.storybook", + "outputDir": "dist/storybook/reappw", + "uiFramework": "@storybook/react", + }, + "outputs": Array [ + "{options.outputDir}", + ], + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/reappw/**/*.{ts,tsx,js,jsx}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "serve": Object { + "configurations": Object { + "development": Object { + "buildTarget": "reappw:build:development", + }, + "production": Object { + "buildTarget": "reappw:build:production", + "hmr": false, + }, + }, + "defaultConfiguration": "development", + "executor": "@nrwl/webpack:dev-server", + "options": Object { + "buildTarget": "reappw:build", + "hmr": true, + }, + }, + "storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:storybook", + "options": Object { + "configDir": "apps/reappw/.storybook", + "port": 4400, + "uiFramework": "@storybook/react", + }, + }, + "test": Object { + "executor": "@nrwl/jest:jest", + "options": Object { + "jestConfig": "apps/reappw/jest.config.ts", + "passWithNoTests": true, + }, + "outputs": Array [ + "{workspaceRoot}/coverage/{projectRoot}", + ], + }, + }, + }, + "reappw-e2e" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "implicitDependencies": Array [ + "reappw", + ], + "projectType": "application", + "root": "apps/reappw-e2e", + "sourceRoot": "apps/reappw-e2e/src", + "tags": Array [], + "targets": Object { + "e2e": Object { + "configurations": Object { + "production": Object { + "devServerTarget": "reappw:serve:production", + }, + }, + "executor": "@nrwl/cypress:cypress", + "options": Object { + "cypressConfig": "apps/reappw-e2e/cypress.config.ts", + "devServerTarget": "reappw:serve:development", + "testingType": "e2e", + }, + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/reappw-e2e/**/*.{js,ts}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + }, + }, + "utils-one" => Object { + "$schema": "../../../node_modules/nx/schemas/project-schema.json", + "projectType": "library", + "root": "libs/utils/one", + "sourceRoot": "libs/utils/one/src", + "tags": Array [], + "targets": Object { + "build": Object { + "executor": "@nrwl/webpack:webpack", + "options": Object { + "assets": Array [], + "main": "libs/utils/one/src/index.ts", + "outputPath": "dist/libs/utils/one", + "tsConfig": "libs/utils/one/tsconfig.lib.json", + }, + "outputs": Array [ + "{options.outputPath}", + ], + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "libs/utils/one/**/*.ts", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "test": Object { + "executor": "@nrwl/jest:jest", + "options": Object { + "jestConfig": "libs/utils/one/jest.config.ts", + "passWithNoTests": true, + }, + "outputs": Array [ + "{workspaceRoot}/coverage/{projectRoot}", + ], + }, + }, + }, + "utils-three-vite" => Object { + "$schema": "../../../node_modules/nx/schemas/project-schema.json", + "projectType": "library", + "root": "libs/utils/three-vite", + "sourceRoot": "libs/utils/three-vite/src", + "tags": Array [], + "targets": Object { + "build": Object { + "executor": "@nrwl/vite:build", + "options": Object { + "outputPath": "dist/libs/utils/three-vite", + }, + "outputs": Array [ + "{options.outputPath}", + ], + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "libs/utils/three-vite/**/*.ts", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "test": Object { + "executor": "@nrwl/jest:jest", + "options": Object { + "jestConfig": "libs/utils/three-vite/jest.config.ts", + "passWithNoTests": true, + }, + "outputs": Array [ + "{workspaceRoot}/coverage/{projectRoot}", + ], + }, + }, + }, + "utils-two" => Object { + "$schema": "../../../node_modules/nx/schemas/project-schema.json", + "projectType": "library", + "root": "libs/utils/two", + "sourceRoot": "libs/utils/two/src", + "tags": Array [], + "targets": Object { + "build": Object { + "executor": "@nrwl/webpack:webpack", + "options": Object { + "assets": Array [], + "main": "libs/utils/two/src/index.ts", + "outputPath": "dist/libs/utils/two", + "tsConfig": "libs/utils/two/tsconfig.lib.json", + }, + "outputs": Array [ + "{options.outputPath}", + ], + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "libs/utils/two/**/*.ts", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "test": Object { + "executor": "@nrwl/jest:jest", + "options": Object { + "jestConfig": "libs/utils/two/jest.config.ts", + "passWithNoTests": true, + }, + "outputs": Array [ + "{workspaceRoot}/coverage/{projectRoot}", + ], + }, + }, + }, + "wv1" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "application", + "root": "apps/wv1", + "sourceRoot": "apps/wv1/src", + "tags": Array [], + "targets": Object { + "build": Object { + "configurations": Object { + "development": Object { + "mode": "development", + }, + "production": Object { + "mode": "production", + }, + }, + "defaultConfiguration": "production", + "executor": "@nrwl/vite:build", + "options": Object { + "outputPath": "dist/apps/wv1", + }, + "outputs": Array [ + "{options.outputPath}", + ], + }, + "build-storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:build", + "options": Object { + "configDir": "apps/wv1/.storybook", + "outputDir": "dist/storybook/wv1", + }, + "outputs": Array [ + "{options.outputDir}", + ], + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/wv1/**/*.ts", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "serve": Object { + "configurations": Object { + "development": Object { + "buildTarget": "wv1:build:development", + "hmr": true, + }, + "production": Object { + "buildTarget": "wv1:build:production", + "hmr": false, + }, + }, + "defaultConfiguration": "development", + "executor": "@nrwl/vite:dev-server", + "options": Object { + "buildTarget": "wv1:build", + }, + }, + "storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:storybook", + "options": Object { + "configDir": "apps/wv1/.storybook", + "port": 4400, + }, + }, + "test": Object { + "executor": "@nrwl/jest:jest", + "options": Object { + "jestConfig": "apps/wv1/jest.config.ts", + "passWithNoTests": true, + }, + "outputs": Array [ + "{workspaceRoot}/coverage/{projectRoot}", + ], + }, + }, + }, + "wv1-e2e" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "implicitDependencies": Array [ + "wv1", + ], + "projectType": "application", + "root": "apps/wv1-e2e", + "sourceRoot": "apps/wv1-e2e/src", + "tags": Array [], + "targets": Object { + "e2e": Object { + "configurations": Object { + "production": Object { + "devServerTarget": "wv1:serve:production", + }, + }, + "executor": "@nrwl/cypress:cypress", + "options": Object { + "cypressConfig": "apps/wv1-e2e/cypress.config.ts", + "devServerTarget": "wv1:serve:development", + "testingType": "e2e", + }, + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/wv1-e2e/**/*.{js,ts}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + }, + }, + "ww1" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "application", + "root": "apps/ww1", + "sourceRoot": "apps/ww1/src", + "tags": Array [], + "targets": Object { + "build": Object { + "configurations": Object { + "production": Object { + "extractLicenses": true, + "fileReplacements": Array [ + Object { + "replace": "apps/ww1/src/environments/environment.ts", + "with": "apps/ww1/src/environments/environment.prod.ts", + }, + ], + "namedChunks": false, + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "vendorChunk": false, + }, + }, + "defaultConfiguration": "production", + "executor": "@nrwl/webpack:webpack", + "options": Object { + "assets": Array [ + "apps/ww1/src/favicon.ico", + "apps/ww1/src/assets", + ], + "baseHref": "/", + "compiler": "babel", + "index": "apps/ww1/src/index.html", + "main": "apps/ww1/src/main.ts", + "outputPath": "dist/apps/ww1", + "scripts": Array [], + "styles": Array [ + "apps/ww1/src/styles.css", + ], + "tsConfig": "apps/ww1/tsconfig.app.json", + "webpackConfig": "apps/ww1/webpack.config.js", + }, + "outputs": Array [ + "{options.outputPath}", + ], + }, + "build-storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:build", + "options": Object { + "configDir": "apps/ww1/.storybook", + "outputDir": "dist/storybook/ww1", + }, + "outputs": Array [ + "{options.outputDir}", + ], + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/ww1/**/*.ts", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + "serve": Object { + "configurations": Object { + "production": Object { + "buildTarget": "ww1:build:production", + }, + }, + "executor": "@nrwl/webpack:dev-server", + "options": Object { + "buildTarget": "ww1:build", + }, + }, + "storybook": Object { + "configurations": Object { + "ci": Object { + "quiet": true, + }, + }, + "executor": "@nrwl/storybook:storybook", + "options": Object { + "configDir": "apps/ww1/.storybook", + "port": 4400, + }, + }, + "test": Object { + "executor": "@nrwl/jest:jest", + "options": Object { + "jestConfig": "apps/ww1/jest.config.ts", + "passWithNoTests": true, + }, + "outputs": Array [ + "{workspaceRoot}/coverage/{projectRoot}", + ], + }, + }, + }, + "ww1-e2e" => Object { + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "implicitDependencies": Array [ + "ww1", + ], + "projectType": "application", + "root": "apps/ww1-e2e", + "sourceRoot": "apps/ww1-e2e/src", + "tags": Array [], + "targets": Object { + "e2e": Object { + "configurations": Object { + "production": Object { + "devServerTarget": "ww1:serve:production", + }, + }, + "executor": "@nrwl/cypress:cypress", + "options": Object { + "cypressConfig": "apps/ww1-e2e/cypress.config.ts", + "devServerTarget": "ww1:serve", + "testingType": "e2e", + }, + }, + "lint": Object { + "executor": "@nrwl/linter:eslint", + "options": Object { + "lintFilePatterns": Array [ + "apps/ww1-e2e/**/*.{js,ts}", + ], + }, + "outputs": Array [ + "{options.outputFile}", + ], + }, + }, + }, +} +`; diff --git a/packages/storybook/src/generators/configuration/configuration-v7.spec.ts b/packages/storybook/src/generators/configuration/configuration-v7.spec.ts new file mode 100644 index 00000000000000..d0ac1823acf4b5 --- /dev/null +++ b/packages/storybook/src/generators/configuration/configuration-v7.spec.ts @@ -0,0 +1,379 @@ +import { + addProjectConfiguration, + getProjects, + NxJsonConfiguration, + ProjectConfiguration, + readJson, + readProjectConfiguration, + Tree, + updateJson, + writeJson, +} from '@nrwl/devkit'; +import { + createTreeWithEmptyV1Workspace, + createTreeWithEmptyWorkspace, +} from '@nrwl/devkit/testing'; + +import { Linter } from '@nrwl/linter'; +import { libraryGenerator } from '@nrwl/workspace/generators'; +import { TsConfig } from '../../utils/utilities'; +import { storybook7Version } from '../../utils/versions'; +import configurationGenerator from './configuration'; +import * as variousProjects from './test-configs/various-projects.json'; + +describe('@nrwl/storybook:configuration for Storybook v7', () => { + describe('basic functionalities', () => { + let tree: Tree; + + beforeEach(async () => { + tree = createTreeWithEmptyWorkspace({ layout: 'apps-libs' }); + updateJson(tree, 'nx.json', (json) => { + json.namedInputs = { + production: ['default'], + }; + return json; + }); + await libraryGenerator(tree, { + name: 'test-ui-lib', + standaloneConfig: false, + }); + writeJson(tree, 'package.json', { + devDependencies: { + '@storybook/addon-essentials': storybook7Version, + '@storybook/react': storybook7Version, + }, + }); + }); + + it('should generate TypeScript Configuration files', async () => { + await configurationGenerator(tree, { + name: 'test-ui-lib', + uiFramework: '@storybook/angular', + standaloneConfig: false, + tsConfiguration: true, + storybook7betaConfiguration: true, + storybook7UiFramework: '@storybook/angular', + }); + const project = readProjectConfiguration(tree, 'test-ui-lib'); + expect(project).toMatchSnapshot(); + + expect(tree.read('.storybook/main.ts', 'utf-8')).toMatchSnapshot(); + expect( + tree.read('libs/test-ui-lib/.storybook/tsconfig.json', 'utf-8') + ).toMatchSnapshot(); + expect( + tree.read('libs/test-ui-lib/.storybook/main.ts', 'utf-8') + ).toMatchSnapshot(); + expect( + tree.exists('libs/test-ui-lib/.storybook/preview.ts') + ).toBeTruthy(); + }); + + it('should not update root files after generating them once', async () => { + await configurationGenerator(tree, { + name: 'test-ui-lib', + uiFramework: '@storybook/angular', + standaloneConfig: false, + storybook7betaConfiguration: true, + storybook7UiFramework: '@storybook/angular', + }); + + const newContents = `module.exports = { + stories: [], + addons: ['@storybook/addon-essentials', 'new-addon'], + }; + `; + await libraryGenerator(tree, { + name: 'test-ui-lib-2', + standaloneConfig: false, + }); + + tree.write('.storybook/main.js', newContents); + await configurationGenerator(tree, { + name: 'test-ui-lib-2', + uiFramework: '@storybook/angular', + standaloneConfig: false, + storybook7betaConfiguration: true, + }); + + expect(tree.read('.storybook/main.js', 'utf-8')).toEqual(newContents); + }); + + it('should update `tsconfig.lib.json` file', async () => { + await configurationGenerator(tree, { + name: 'test-ui-lib', + uiFramework: '@storybook/react', + standaloneConfig: false, + storybook7betaConfiguration: true, + storybook7UiFramework: '@storybook/react-webpack5', + }); + const tsconfigJson = readJson( + tree, + 'libs/test-ui-lib/tsconfig.lib.json' + ) as Required; + + expect(tsconfigJson.exclude).toContain('**/*.stories.ts'); + expect(tsconfigJson.exclude).toContain('**/*.stories.js'); + expect(tsconfigJson.exclude).toContain('**/*.stories.jsx'); + expect(tsconfigJson.exclude).toContain('**/*.stories.tsx'); + }); + + it('should update `tsconfig.json` file', async () => { + await configurationGenerator(tree, { + name: 'test-ui-lib', + uiFramework: '@storybook/react', + standaloneConfig: false, + storybook7betaConfiguration: true, + storybook7UiFramework: '@storybook/react-webpack5', + }); + const tsconfigJson = readJson( + tree, + 'libs/test-ui-lib/tsconfig.json' + ); + + expect(tsconfigJson.references).toMatchInlineSnapshot(` + Array [ + Object { + "path": "./tsconfig.lib.json", + }, + Object { + "path": "./tsconfig.spec.json", + }, + Object { + "path": "./.storybook/tsconfig.json", + }, + ] + `); + }); + + it("should update the project's .eslintrc.json if config exists", async () => { + await libraryGenerator(tree, { + name: 'test-ui-lib2', + linter: Linter.EsLint, + standaloneConfig: false, + }); + + updateJson(tree, 'libs/test-ui-lib2/.eslintrc.json', (json) => { + json.parserOptions = { + project: [], + }; + return json; + }); + + await configurationGenerator(tree, { + name: 'test-ui-lib2', + uiFramework: '@storybook/react', + standaloneConfig: false, + storybook7betaConfiguration: true, + storybook7UiFramework: '@storybook/react-webpack5', + }); + + expect(readJson(tree, 'libs/test-ui-lib2/.eslintrc.json').parserOptions) + .toMatchInlineSnapshot(` + Object { + "project": Array [ + "libs/test-ui-lib2/.storybook/tsconfig.json", + ], + } + `); + }); + + it('should have the proper typings', async () => { + await libraryGenerator(tree, { + name: 'test-ui-lib2', + linter: Linter.EsLint, + standaloneConfig: false, + }); + + await configurationGenerator(tree, { + name: 'test-ui-lib2', + uiFramework: '@storybook/react', + standaloneConfig: false, + storybook7betaConfiguration: true, + storybook7UiFramework: '@storybook/react-webpack5', + }); + + expect( + tree.read('libs/test-ui-lib2/.storybook/tsconfig.json', 'utf-8') + ).toMatchSnapshot(); + }); + + it('should generate TS config for project if root config is TS', async () => { + await configurationGenerator(tree, { + name: 'test-ui-lib', + uiFramework: '@storybook/angular', + standaloneConfig: false, + tsConfiguration: true, + storybook7betaConfiguration: true, + storybook7UiFramework: '@storybook/angular', + }); + + const newContents = `module.exports = { + stories: [], + addons: ['@storybook/addon-essentials', 'new-addon'], + }; + `; + // Setup a new lib + await libraryGenerator(tree, { + name: 'test-ui-lib-2', + standaloneConfig: false, + }); + + tree.write('.storybook/main.ts', newContents); + await configurationGenerator(tree, { + name: 'test-ui-lib-2', + uiFramework: '@storybook/angular', + standaloneConfig: false, + storybook7betaConfiguration: true, + storybook7UiFramework: '@storybook/angular', + }); + + expect(tree.read('.storybook/main.ts', 'utf-8')).toEqual(newContents); + expect( + tree.read('libs/test-ui-lib-2/.storybook/main.ts', 'utf-8') + ).toMatchSnapshot(); + expect( + tree.exists('libs/test-ui-lib-2/.storybook/preview.ts') + ).toBeTruthy(); + expect(tree.exists('libs/test-ui-lib-2/.storybook/main.js')).toBeFalsy(); + expect( + tree.exists('libs/test-ui-lib-2/.storybook/preview.js') + ).toBeFalsy(); + }); + + it('should add test-storybook target', async () => { + await configurationGenerator(tree, { + name: 'test-ui-lib', + uiFramework: '@storybook/react', + configureTestRunner: true, + storybook7betaConfiguration: true, + storybook7UiFramework: '@storybook/react-webpack5', + }); + + expect( + readJson(tree, 'package.json').devDependencies['@storybook/test-runner'] + ).toBeTruthy(); + + const project = readProjectConfiguration(tree, 'test-ui-lib'); + expect(project.targets['test-storybook']).toEqual({ + executor: 'nx:run-commands', + options: { + command: + 'test-storybook -c libs/test-ui-lib/.storybook --url=http://localhost:4400', + }, + }); + }); + }); + + describe('generate Storybook configuration for all types of projects', () => { + let tree: Tree; + let testCases: string[] = []; + + beforeAll(async () => { + tree = createTreeWithEmptyV1Workspace(); + for (const [name, project] of Object.entries(variousProjects)) { + addProjectConfiguration(tree, name, project as ProjectConfiguration); + writeJson( + tree, + `${ + project.projectType === 'application' ? 'apps' : 'libs' + }/${name}/tsconfig.json`, + {} + ); + + testCases.push( + `${ + project.projectType === 'application' ? 'apps' : 'libs' + }/${name}/.storybook/` + ); + } + + await configurationGenerator(tree, { + name: 'main-vite', + tsConfiguration: false, + uiFramework: '@storybook/react', + storybook7betaConfiguration: true, + storybook7UiFramework: '@storybook/react-vite', + }); + await configurationGenerator(tree, { + name: 'main-vite-ts', + tsConfiguration: true, + uiFramework: '@storybook/react', + storybook7betaConfiguration: true, + storybook7UiFramework: '@storybook/react-vite', + }); + await configurationGenerator(tree, { + name: 'main-webpack', + uiFramework: '@storybook/react', + storybook7betaConfiguration: true, + storybook7UiFramework: '@storybook/react-webpack5', + }); + await configurationGenerator(tree, { + name: 'react-rollup', + uiFramework: '@storybook/react', + storybook7betaConfiguration: true, + storybook7UiFramework: '@storybook/react-webpack5', + }); + await configurationGenerator(tree, { + name: 'react-vite', + uiFramework: '@storybook/react', + storybook7betaConfiguration: true, + storybook7UiFramework: '@storybook/react-vite', + }); + + await configurationGenerator(tree, { + name: 'nextapp', + uiFramework: '@storybook/react', + storybook7betaConfiguration: true, + storybook7UiFramework: '@storybook/nextjs', + }); + + await configurationGenerator(tree, { + name: 'react-swc', + uiFramework: '@storybook/react', + storybook7betaConfiguration: true, + storybook7UiFramework: '@storybook/react-webpack5', + }); + + await configurationGenerator(tree, { + name: 'wv1', + uiFramework: '@storybook/react', + storybook7betaConfiguration: true, + storybook7UiFramework: '@storybook/web-components-vite', + }); + + await configurationGenerator(tree, { + name: 'ww1', + uiFramework: '@storybook/react', + storybook7betaConfiguration: true, + storybook7UiFramework: '@storybook/web-components-webpack5', + }); + }); + + it('should have updated all their target configurations correctly', async () => { + const projects = getProjects(tree); + expect(projects).toMatchSnapshot(); + }); + + test.each(testCases)( + 'should contain the correct configuration in %p', + (storybookConfigPath) => { + if (tree.exists(storybookConfigPath)) { + if (tree.exists(`${storybookConfigPath}main.ts`)) { + expect( + tree.read(`${storybookConfigPath}main.ts`, 'utf-8') + ).toMatchSnapshot(); + } + if (tree.exists(`${storybookConfigPath}main.js`)) { + expect( + tree.read(`${storybookConfigPath}main.js`, 'utf-8') + ).toMatchSnapshot(); + } + expect( + tree.read(`${storybookConfigPath}tsconfig.json`, 'utf-8') + ).toMatchSnapshot(); + } + } + ); + }); +}); diff --git a/packages/storybook/src/generators/configuration/test-configs/various-projects.json b/packages/storybook/src/generators/configuration/test-configs/various-projects.json new file mode 100644 index 00000000000000..528b02fb6c2059 --- /dev/null +++ b/packages/storybook/src/generators/configuration/test-configs/various-projects.json @@ -0,0 +1,1578 @@ +{ + "main-vite": { + "name": "main-vite", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/main-vite/src", + "projectType": "application", + "targets": { + "build": { + "executor": "@nrwl/vite:build", + "outputs": ["{options.outputPath}"], + "defaultConfiguration": "production", + "options": { "outputPath": "dist/apps/main-vite" }, + "configurations": { + "development": { "mode": "development" }, + "production": { "mode": "production" } + } + }, + "serve": { + "executor": "@nrwl/vite:dev-server", + "defaultConfiguration": "development", + "options": { "buildTarget": "main-vite:build" }, + "configurations": { + "development": { + "buildTarget": "main-vite:build:development", + "hmr": true + }, + "production": { + "buildTarget": "main-vite:build:production", + "hmr": false + } + } + }, + "test": { + "executor": "@nrwl/vite:test", + "outputs": ["coverage/apps/main-vite"], + "options": { + "passWithNoTests": true, + "reportsDirectory": "../../coverage/apps/main-vite" + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": ["apps/main-vite/**/*.{ts,tsx,js,jsx}"] + } + }, + "storybook": { + "executor": "@nrwl/storybook:storybook", + "options": { + "uiFramework": "@storybook/react", + "port": 4400, + "configDir": "apps/main-vite/.storybook" + }, + "configurations": { "ci": { "quiet": true } } + }, + "build-storybook": { + "executor": "@nrwl/storybook:build", + "outputs": ["{options.outputDir}"], + "options": { + "uiFramework": "@storybook/react", + "configDir": "apps/main-vite/.storybook", + "outputDir": "dist/storybook/main-vite" + }, + "configurations": { "ci": { "quiet": true } } + } + }, + "tags": [], + "root": "apps/main-vite" + }, + "main-vite-e2e": { + "name": "main-vite-e2e", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/main-vite-e2e/src", + "projectType": "application", + "targets": { + "e2e": { + "executor": "@nrwl/cypress:cypress", + "options": { + "cypressConfig": "apps/main-vite-e2e/cypress.config.ts", + "devServerTarget": "main-vite:serve:development", + "testingType": "e2e" + }, + "configurations": { + "production": { "devServerTarget": "main-vite:serve:production" } + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { "lintFilePatterns": ["apps/main-vite-e2e/**/*.{js,ts}"] } + } + }, + "tags": [], + "implicitDependencies": ["main-vite"], + "root": "apps/main-vite-e2e" + }, + "main-vite-ts": { + "name": "main-vite-ts", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/main-vite-ts/src", + "projectType": "application", + "targets": { + "build": { + "executor": "@nrwl/vite:build", + "outputs": ["{options.outputPath}"], + "defaultConfiguration": "production", + "options": { "outputPath": "dist/apps/main-vite-ts" }, + "configurations": { + "development": { "mode": "development" }, + "production": { "mode": "production" } + } + }, + "serve": { + "executor": "@nrwl/vite:dev-server", + "defaultConfiguration": "development", + "options": { "buildTarget": "main-vite-ts:build" }, + "configurations": { + "development": { + "buildTarget": "main-vite-ts:build:development", + "hmr": true + }, + "production": { + "buildTarget": "main-vite-ts:build:production", + "hmr": false + } + } + }, + "test": { + "executor": "@nrwl/vite:test", + "outputs": ["coverage/apps/main-vite-ts"], + "options": { + "passWithNoTests": true, + "reportsDirectory": "../../coverage/apps/main-vite-ts" + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": ["apps/main-vite-ts/**/*.{ts,tsx,js,jsx}"] + } + }, + "storybook": { + "executor": "@nrwl/storybook:storybook", + "options": { + "uiFramework": "@storybook/react", + "port": 4400, + "configDir": "apps/main-vite-ts/.storybook" + }, + "configurations": { "ci": { "quiet": true } } + }, + "build-storybook": { + "executor": "@nrwl/storybook:build", + "outputs": ["{options.outputDir}"], + "options": { + "uiFramework": "@storybook/react", + "configDir": "apps/main-vite-ts/.storybook", + "outputDir": "dist/storybook/main-vite-ts" + }, + "configurations": { "ci": { "quiet": true } } + } + }, + "tags": [], + "root": "apps/main-vite-ts" + }, + "main-vite-ts-e2e": { + "name": "main-vite-ts-e2e", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/main-vite-ts-e2e/src", + "projectType": "application", + "targets": { + "e2e": { + "executor": "@nrwl/cypress:cypress", + "options": { + "cypressConfig": "apps/main-vite-ts-e2e/cypress.config.ts", + "devServerTarget": "main-vite-ts:serve:development", + "testingType": "e2e" + }, + "configurations": { + "production": { "devServerTarget": "main-vite-ts:serve:production" } + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": ["apps/main-vite-ts-e2e/**/*.{js,ts}"] + } + } + }, + "tags": [], + "implicitDependencies": ["main-vite-ts"], + "root": "apps/main-vite-ts-e2e" + }, + "main-webpack": { + "name": "main-webpack", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/main-webpack/src", + "projectType": "application", + "targets": { + "build": { + "executor": "@nrwl/webpack:webpack", + "outputs": ["{options.outputPath}"], + "defaultConfiguration": "production", + "options": { + "compiler": "babel", + "outputPath": "dist/apps/main-webpack", + "index": "apps/main-webpack/src/index.html", + "baseHref": "/", + "main": "apps/main-webpack/src/main.tsx", + "polyfills": "apps/main-webpack/src/polyfills.ts", + "tsConfig": "apps/main-webpack/tsconfig.app.json", + "assets": [ + "apps/main-webpack/src/favicon.ico", + "apps/main-webpack/src/assets" + ], + "styles": ["apps/main-webpack/src/styles.css"], + "scripts": [], + "webpackConfig": "@nrwl/react/plugins/webpack" + }, + "configurations": { + "development": { + "extractLicenses": false, + "optimization": false, + "sourceMap": true, + "vendorChunk": true + }, + "production": { + "fileReplacements": [ + { + "replace": "apps/main-webpack/src/environments/environment.ts", + "with": "apps/main-webpack/src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "extractLicenses": true, + "vendorChunk": false + } + } + }, + "serve": { + "executor": "@nrwl/webpack:dev-server", + "defaultConfiguration": "development", + "options": { "buildTarget": "main-webpack:build", "hmr": true }, + "configurations": { + "development": { "buildTarget": "main-webpack:build:development" }, + "production": { + "buildTarget": "main-webpack:build:production", + "hmr": false + } + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": ["apps/main-webpack/**/*.{ts,tsx,js,jsx}"] + } + }, + "test": { + "executor": "@nrwl/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "apps/main-webpack/jest.config.ts", + "passWithNoTests": true + } + }, + "storybook": { + "executor": "@nrwl/storybook:storybook", + "options": { + "uiFramework": "@storybook/react", + "port": 4400, + "configDir": "apps/main-webpack/.storybook" + }, + "configurations": { "ci": { "quiet": true } } + }, + "build-storybook": { + "executor": "@nrwl/storybook:build", + "outputs": ["{options.outputDir}"], + "options": { + "uiFramework": "@storybook/react", + "configDir": "apps/main-webpack/.storybook", + "outputDir": "dist/storybook/main-webpack" + }, + "configurations": { "ci": { "quiet": true } } + } + }, + "tags": [], + "root": "apps/main-webpack" + }, + "main-webpack-e2e": { + "name": "main-webpack-e2e", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/main-webpack-e2e/src", + "projectType": "application", + "targets": { + "e2e": { + "executor": "@nrwl/cypress:cypress", + "options": { + "cypressConfig": "apps/main-webpack-e2e/cypress.config.ts", + "devServerTarget": "main-webpack:serve:development", + "testingType": "e2e" + }, + "configurations": { + "production": { "devServerTarget": "main-webpack:serve:production" } + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": ["apps/main-webpack-e2e/**/*.{js,ts}"] + } + } + }, + "tags": [], + "implicitDependencies": ["main-webpack"], + "root": "apps/main-webpack-e2e" + }, + "my-plugin-e2e": { + "name": "my-plugin-e2e", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "application", + "sourceRoot": "apps/my-plugin-e2e/src", + "targets": { + "e2e": { + "executor": "@nrwl/nx-plugin:e2e", + "options": { + "target": "my-plugin:build", + "jestConfig": "apps/my-plugin-e2e/jest.config.ts" + } + } + }, + "tags": [], + "implicitDependencies": ["my-plugin"], + "root": "apps/my-plugin-e2e" + }, + "nextapp": { + "name": "nextapp", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/nextapp", + "projectType": "application", + "targets": { + "build": { + "executor": "@nrwl/next:build", + "outputs": ["{options.outputPath}"], + "defaultConfiguration": "production", + "options": { + "root": "apps/nextapp", + "outputPath": "dist/apps/nextapp" + }, + "configurations": { + "development": { "outputPath": "apps/nextapp" }, + "production": {} + } + }, + "serve": { + "executor": "@nrwl/next:server", + "defaultConfiguration": "development", + "options": { "buildTarget": "nextapp:build", "dev": true }, + "configurations": { + "development": { + "buildTarget": "nextapp:build:development", + "dev": true + }, + "production": { + "buildTarget": "nextapp:build:production", + "dev": false + } + } + }, + "export": { + "executor": "@nrwl/next:export", + "options": { "buildTarget": "nextapp:build:production" } + }, + "test": { + "executor": "@nrwl/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "apps/nextapp/jest.config.ts", + "passWithNoTests": true + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { "lintFilePatterns": ["apps/nextapp/**/*.{ts,tsx,js,jsx}"] } + }, + "storybook": { + "executor": "@nrwl/storybook:storybook", + "options": { + "uiFramework": "@storybook/react", + "port": 4400, + "configDir": "apps/nextapp/.storybook" + }, + "configurations": { "ci": { "quiet": true } } + }, + "build-storybook": { + "executor": "@nrwl/storybook:build", + "outputs": ["{options.outputDir}"], + "options": { + "uiFramework": "@storybook/react", + "outputDir": "dist/storybook/nextapp", + "configDir": "apps/nextapp/.storybook" + }, + "configurations": { "ci": { "quiet": true } } + } + }, + "tags": [], + "root": "apps/nextapp" + }, + "nextapp-e2e": { + "name": "nextapp-e2e", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/nextapp-e2e/src", + "projectType": "application", + "targets": { + "e2e": { + "executor": "@nrwl/cypress:cypress", + "options": { + "cypressConfig": "apps/nextapp-e2e/cypress.config.ts", + "devServerTarget": "nextapp:serve:development", + "testingType": "e2e" + }, + "configurations": { + "production": { "devServerTarget": "nextapp:serve:production" } + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { "lintFilePatterns": ["apps/nextapp-e2e/**/*.{js,ts}"] } + } + }, + "tags": [], + "implicitDependencies": ["nextapp"], + "root": "apps/nextapp-e2e" + }, + "ngapp": { + "name": "ngapp", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "application", + "sourceRoot": "apps/ngapp/src", + "prefix": "imported-libs", + "targets": { + "build": { + "executor": "@angular-devkit/build-angular:browser", + "outputs": ["{options.outputPath}"], + "options": { + "outputPath": "dist/apps/ngapp", + "index": "apps/ngapp/src/index.html", + "main": "apps/ngapp/src/main.ts", + "polyfills": ["zone.js"], + "tsConfig": "apps/ngapp/tsconfig.app.json", + "assets": ["apps/ngapp/src/favicon.ico", "apps/ngapp/src/assets"], + "styles": ["apps/ngapp/src/styles.css"], + "scripts": [] + }, + "configurations": { + "production": { + "budgets": [ + { + "type": "initial", + "maximumWarning": "500kb", + "maximumError": "1mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "2kb", + "maximumError": "4kb" + } + ], + "outputHashing": "all" + }, + "development": { + "buildOptimizer": false, + "optimization": false, + "vendorChunk": true, + "extractLicenses": false, + "sourceMap": true, + "namedChunks": true + } + }, + "defaultConfiguration": "production" + }, + "serve": { + "executor": "@angular-devkit/build-angular:dev-server", + "configurations": { + "production": { "browserTarget": "ngapp:build:production" }, + "development": { "browserTarget": "ngapp:build:development" } + }, + "defaultConfiguration": "development" + }, + "extract-i18n": { + "executor": "@angular-devkit/build-angular:extract-i18n", + "options": { "browserTarget": "ngapp:build" } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": ["apps/ngapp/**/*.ts", "apps/ngapp/**/*.html"] + } + }, + "test": { + "executor": "@nrwl/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "apps/ngapp/jest.config.ts", + "passWithNoTests": true + } + }, + "storybook": { + "executor": "@storybook/angular:start-storybook", + "options": { + "port": 4400, + "configDir": "apps/ngapp/.storybook", + "browserTarget": "ngapp:build", + "compodoc": false + }, + "configurations": { "ci": { "quiet": true } } + }, + "build-storybook": { + "executor": "@storybook/angular:build-storybook", + "outputs": ["{options.outputDir}"], + "options": { + "outputDir": "dist/storybook/ngapp", + "configDir": "apps/ngapp/.storybook", + "browserTarget": "ngapp:build", + "compodoc": false + }, + "configurations": { "ci": { "quiet": true } } + } + }, + "tags": [], + "root": "apps/ngapp" + }, + "ngapp-e2e": { + "name": "ngapp-e2e", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/ngapp-e2e/src", + "projectType": "application", + "targets": { + "e2e": { + "executor": "@nrwl/cypress:cypress", + "options": { + "cypressConfig": "apps/ngapp-e2e/cypress.config.ts", + "devServerTarget": "ngapp:serve:development", + "testingType": "e2e" + }, + "configurations": { + "production": { "devServerTarget": "ngapp:serve:production" } + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { "lintFilePatterns": ["apps/ngapp-e2e/**/*.{js,ts}"] } + } + }, + "tags": [], + "implicitDependencies": ["ngapp"], + "root": "apps/ngapp-e2e" + }, + "nglib-e2e": { + "name": "nglib-e2e", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/nglib-e2e/src", + "projectType": "application", + "targets": { + "e2e": { + "executor": "@nrwl/cypress:cypress", + "options": { + "cypressConfig": "apps/nglib-e2e/cypress.config.ts", + "devServerTarget": "nglib:storybook", + "testingType": "e2e" + }, + "configurations": { "ci": { "devServerTarget": "nglib:storybook:ci" } } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { "lintFilePatterns": ["apps/nglib-e2e/**/*.{js,ts}"] } + } + }, + "tags": [], + "implicitDependencies": ["nglib"], + "root": "apps/nglib-e2e" + }, + "react-rollup-e2e": { + "name": "react-rollup-e2e", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/react-rollup-e2e/src", + "projectType": "application", + "targets": { + "e2e": { + "executor": "@nrwl/cypress:cypress", + "options": { + "cypressConfig": "apps/react-rollup-e2e/cypress.config.ts", + "devServerTarget": "react-rollup:storybook", + "testingType": "e2e" + }, + "configurations": { + "ci": { "devServerTarget": "react-rollup:storybook:ci" } + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": ["apps/react-rollup-e2e/**/*.{js,ts}"] + } + } + }, + "tags": [], + "implicitDependencies": ["react-rollup"], + "root": "apps/react-rollup-e2e" + }, + "react-swc": { + "name": "react-swc", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/react-swc/src", + "projectType": "application", + "targets": { + "build": { + "executor": "@nrwl/webpack:webpack", + "outputs": ["{options.outputPath}"], + "defaultConfiguration": "production", + "options": { + "compiler": "swc", + "outputPath": "dist/apps/react-swc", + "index": "apps/react-swc/src/index.html", + "baseHref": "/", + "main": "apps/react-swc/src/main.tsx", + "tsConfig": "apps/react-swc/tsconfig.app.json", + "assets": [ + "apps/react-swc/src/favicon.ico", + "apps/react-swc/src/assets" + ], + "styles": ["apps/react-swc/src/styles.css"], + "scripts": [], + "webpackConfig": "apps/react-swc/webpack.config.js" + }, + "configurations": { + "development": { + "extractLicenses": false, + "optimization": false, + "sourceMap": true, + "vendorChunk": true + }, + "production": { + "fileReplacements": [ + { + "replace": "apps/react-swc/src/environments/environment.ts", + "with": "apps/react-swc/src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "extractLicenses": true, + "vendorChunk": false + } + } + }, + "serve": { + "executor": "@nrwl/webpack:dev-server", + "defaultConfiguration": "development", + "options": { "buildTarget": "react-swc:build", "hmr": true }, + "configurations": { + "development": { "buildTarget": "react-swc:build:development" }, + "production": { + "buildTarget": "react-swc:build:production", + "hmr": false + } + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": ["apps/react-swc/**/*.{ts,tsx,js,jsx}"] + } + }, + "test": { + "executor": "@nrwl/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "apps/react-swc/jest.config.ts", + "passWithNoTests": true + } + } + }, + "tags": [], + "root": "apps/react-swc" + }, + "react-swc-e2e": { + "name": "react-swc-e2e", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/react-swc-e2e/src", + "projectType": "application", + "targets": { + "e2e": { + "executor": "@nrwl/cypress:cypress", + "options": { + "cypressConfig": "apps/react-swc-e2e/cypress.config.ts", + "devServerTarget": "react-swc:serve:development", + "testingType": "e2e" + }, + "configurations": { + "production": { "devServerTarget": "react-swc:serve:production" } + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { "lintFilePatterns": ["apps/react-swc-e2e/**/*.{js,ts}"] } + } + }, + "tags": [], + "implicitDependencies": ["react-swc"], + "root": "apps/react-swc-e2e" + }, + "react-vite-e2e": { + "name": "react-vite-e2e", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/react-vite-e2e/src", + "projectType": "application", + "targets": { + "e2e": { + "executor": "@nrwl/cypress:cypress", + "options": { + "cypressConfig": "apps/react-vite-e2e/cypress.config.ts", + "devServerTarget": "react-vite:storybook", + "testingType": "e2e" + }, + "configurations": { + "ci": { "devServerTarget": "react-vite:storybook:ci" } + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { "lintFilePatterns": ["apps/react-vite-e2e/**/*.{js,ts}"] } + } + }, + "tags": [], + "implicitDependencies": ["react-vite"], + "root": "apps/react-vite-e2e" + }, + "reapp": { + "name": "reapp", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/reapp/src", + "projectType": "application", + "targets": { + "build": { + "executor": "@nrwl/vite:build", + "outputs": ["{options.outputPath}"], + "defaultConfiguration": "production", + "options": { "outputPath": "dist/apps/reapp" }, + "configurations": { + "development": { "mode": "development" }, + "production": { "mode": "production" } + } + }, + "serve": { + "executor": "@nrwl/vite:dev-server", + "defaultConfiguration": "development", + "options": { "buildTarget": "reapp:build" }, + "configurations": { + "development": { + "buildTarget": "reapp:build:development", + "hmr": true + }, + "production": { + "buildTarget": "reapp:build:production", + "hmr": false + } + } + }, + "test": { + "executor": "@nrwl/vite:test", + "outputs": ["coverage/apps/reapp"], + "options": { + "passWithNoTests": true, + "reportsDirectory": "../../coverage/apps/reapp" + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { "lintFilePatterns": ["apps/reapp/**/*.{ts,tsx,js,jsx}"] } + }, + "storybook": { + "executor": "@nrwl/storybook:storybook", + "options": { + "uiFramework": "@storybook/react", + "port": 4400, + "configDir": "apps/reapp/.storybook" + }, + "configurations": { "ci": { "quiet": true } } + }, + "build-storybook": { + "executor": "@nrwl/storybook:build", + "outputs": ["{options.outputDir}"], + "options": { + "uiFramework": "@storybook/react", + "outputDir": "dist/storybook/reapp", + "configDir": "apps/reapp/.storybook" + }, + "configurations": { "ci": { "quiet": true } } + } + }, + "tags": [], + "root": "apps/reapp" + }, + "reapp-e2e": { + "name": "reapp-e2e", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/reapp-e2e/src", + "projectType": "application", + "targets": { + "e2e": { + "executor": "@nrwl/cypress:cypress", + "options": { + "cypressConfig": "apps/reapp-e2e/cypress.config.ts", + "devServerTarget": "reapp:serve:development", + "testingType": "e2e" + }, + "configurations": { + "production": { "devServerTarget": "reapp:serve:production" } + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { "lintFilePatterns": ["apps/reapp-e2e/**/*.{js,ts}"] } + } + }, + "tags": [], + "implicitDependencies": ["reapp"], + "root": "apps/reapp-e2e" + }, + "reappw": { + "name": "reappw", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/reappw/src", + "projectType": "application", + "targets": { + "build": { + "executor": "@nrwl/webpack:webpack", + "outputs": ["{options.outputPath}"], + "defaultConfiguration": "production", + "options": { + "compiler": "babel", + "outputPath": "dist/apps/reappw", + "index": "apps/reappw/src/index.html", + "baseHref": "/", + "main": "apps/reappw/src/main.tsx", + "tsConfig": "apps/reappw/tsconfig.app.json", + "assets": ["apps/reappw/src/favicon.ico", "apps/reappw/src/assets"], + "styles": ["apps/reappw/src/styles.css"], + "scripts": [], + "webpackConfig": "@nrwl/react/plugins/webpack" + }, + "configurations": { + "development": { + "extractLicenses": false, + "optimization": false, + "sourceMap": true, + "vendorChunk": true + }, + "production": { + "fileReplacements": [ + { + "replace": "apps/reappw/src/environments/environment.ts", + "with": "apps/reappw/src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "extractLicenses": true, + "vendorChunk": false + } + } + }, + "serve": { + "executor": "@nrwl/webpack:dev-server", + "defaultConfiguration": "development", + "options": { "buildTarget": "reappw:build", "hmr": true }, + "configurations": { + "development": { "buildTarget": "reappw:build:development" }, + "production": { + "buildTarget": "reappw:build:production", + "hmr": false + } + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { "lintFilePatterns": ["apps/reappw/**/*.{ts,tsx,js,jsx}"] } + }, + "test": { + "executor": "@nrwl/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "apps/reappw/jest.config.ts", + "passWithNoTests": true + } + }, + "storybook": { + "executor": "@nrwl/storybook:storybook", + "options": { + "uiFramework": "@storybook/react", + "port": 4400, + "configDir": "apps/reappw/.storybook" + }, + "configurations": { "ci": { "quiet": true } } + }, + "build-storybook": { + "executor": "@nrwl/storybook:build", + "outputs": ["{options.outputDir}"], + "options": { + "uiFramework": "@storybook/react", + "outputDir": "dist/storybook/reappw", + "configDir": "apps/reappw/.storybook" + }, + "configurations": { "ci": { "quiet": true } } + } + }, + "tags": [], + "root": "apps/reappw" + }, + "reappw-e2e": { + "name": "reappw-e2e", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/reappw-e2e/src", + "projectType": "application", + "targets": { + "e2e": { + "executor": "@nrwl/cypress:cypress", + "options": { + "cypressConfig": "apps/reappw-e2e/cypress.config.ts", + "devServerTarget": "reappw:serve:development", + "testingType": "e2e" + }, + "configurations": { + "production": { "devServerTarget": "reappw:serve:production" } + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { "lintFilePatterns": ["apps/reappw-e2e/**/*.{js,ts}"] } + } + }, + "tags": [], + "implicitDependencies": ["reappw"], + "root": "apps/reappw-e2e" + }, + "wv1": { + "name": "wv1", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "application", + "sourceRoot": "apps/wv1/src", + "tags": [], + "targets": { + "build": { + "executor": "@nrwl/vite:build", + "outputs": ["{options.outputPath}"], + "defaultConfiguration": "production", + "options": { "outputPath": "dist/apps/wv1" }, + "configurations": { + "development": { "mode": "development" }, + "production": { "mode": "production" } + } + }, + "serve": { + "executor": "@nrwl/vite:dev-server", + "defaultConfiguration": "development", + "options": { "buildTarget": "wv1:build" }, + "configurations": { + "development": { + "buildTarget": "wv1:build:development", + "hmr": true + }, + "production": { "buildTarget": "wv1:build:production", "hmr": false } + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { "lintFilePatterns": ["apps/wv1/**/*.ts"] } + }, + "test": { + "executor": "@nrwl/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "apps/wv1/jest.config.ts", + "passWithNoTests": true + } + }, + "storybook": { + "executor": "@nrwl/storybook:storybook", + "options": { + "uiFramework": "@storybook/web-components", + "port": 4400, + "configDir": "apps/wv1/.storybook" + }, + "configurations": { "ci": { "quiet": true } } + }, + "build-storybook": { + "executor": "@nrwl/storybook:build", + "outputs": ["{options.outputDir}"], + "options": { + "uiFramework": "@storybook/web-components", + "outputDir": "dist/storybook/wv1", + "configDir": "apps/wv1/.storybook" + }, + "configurations": { "ci": { "quiet": true } } + } + }, + "root": "apps/wv1" + }, + "wv1-e2e": { + "name": "wv1-e2e", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/wv1-e2e/src", + "projectType": "application", + "targets": { + "e2e": { + "executor": "@nrwl/cypress:cypress", + "options": { + "cypressConfig": "apps/wv1-e2e/cypress.config.ts", + "devServerTarget": "wv1:serve:development", + "testingType": "e2e" + }, + "configurations": { + "production": { "devServerTarget": "wv1:serve:production" } + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { "lintFilePatterns": ["apps/wv1-e2e/**/*.{js,ts}"] } + } + }, + "tags": [], + "implicitDependencies": ["wv1"], + "root": "apps/wv1-e2e" + }, + "ww1": { + "name": "ww1", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "application", + "sourceRoot": "apps/ww1/src", + "tags": [], + "targets": { + "build": { + "executor": "@nrwl/webpack:webpack", + "outputs": ["{options.outputPath}"], + "defaultConfiguration": "production", + "options": { + "outputPath": "dist/apps/ww1", + "compiler": "babel", + "main": "apps/ww1/src/main.ts", + "tsConfig": "apps/ww1/tsconfig.app.json", + "webpackConfig": "apps/ww1/webpack.config.js", + "assets": ["apps/ww1/src/favicon.ico", "apps/ww1/src/assets"], + "index": "apps/ww1/src/index.html", + "baseHref": "/", + "styles": ["apps/ww1/src/styles.css"], + "scripts": [] + }, + "configurations": { + "production": { + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "extractLicenses": true, + "vendorChunk": false, + "fileReplacements": [ + { + "replace": "apps/ww1/src/environments/environment.ts", + "with": "apps/ww1/src/environments/environment.prod.ts" + } + ] + } + } + }, + "serve": { + "executor": "@nrwl/webpack:dev-server", + "options": { "buildTarget": "ww1:build" }, + "configurations": { + "production": { "buildTarget": "ww1:build:production" } + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { "lintFilePatterns": ["apps/ww1/**/*.ts"] } + }, + "test": { + "executor": "@nrwl/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "apps/ww1/jest.config.ts", + "passWithNoTests": true + } + }, + "storybook": { + "executor": "@nrwl/storybook:storybook", + "options": { + "uiFramework": "@storybook/web-components", + "port": 4400, + "configDir": "apps/ww1/.storybook" + }, + "configurations": { "ci": { "quiet": true } } + }, + "build-storybook": { + "executor": "@nrwl/storybook:build", + "outputs": ["{options.outputDir}"], + "options": { + "uiFramework": "@storybook/web-components", + "outputDir": "dist/storybook/ww1", + "configDir": "apps/ww1/.storybook" + }, + "configurations": { "ci": { "quiet": true } } + } + }, + "root": "apps/ww1" + }, + "ww1-e2e": { + "name": "ww1-e2e", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "apps/ww1-e2e/src", + "projectType": "application", + "targets": { + "e2e": { + "executor": "@nrwl/cypress:cypress", + "options": { + "cypressConfig": "apps/ww1-e2e/cypress.config.ts", + "devServerTarget": "ww1:serve", + "testingType": "e2e" + }, + "configurations": { + "production": { "devServerTarget": "ww1:serve:production" } + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { "lintFilePatterns": ["apps/ww1-e2e/**/*.{js,ts}"] } + } + }, + "tags": [], + "implicitDependencies": ["ww1"], + "root": "apps/ww1-e2e" + }, + "my-plugin": { + "name": "my-plugin", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "libs/my-plugin/src", + "projectType": "library", + "targets": { + "build": { + "executor": "@nrwl/js:tsc", + "outputs": ["{options.outputPath}"], + "options": { + "outputPath": "dist/libs/my-plugin", + "main": "libs/my-plugin/src/index.ts", + "tsConfig": "libs/my-plugin/tsconfig.lib.json", + "assets": [ + "libs/my-plugin/*.md", + { + "input": "./libs/my-plugin/src", + "glob": "**/!(*.ts)", + "output": "./src" + }, + { + "input": "./libs/my-plugin/src", + "glob": "**/*.d.ts", + "output": "./src" + }, + { + "input": "./libs/my-plugin", + "glob": "generators.json", + "output": "." + }, + { + "input": "./libs/my-plugin", + "glob": "executors.json", + "output": "." + } + ] + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": [ + "libs/my-plugin/**/*.ts", + "libs/my-plugin/generators.json", + "libs/my-plugin/executors.json", + "libs/my-plugin/package.json" + ] + } + }, + "test": { + "executor": "@nrwl/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "libs/my-plugin/jest.config.ts", + "passWithNoTests": true + } + } + }, + "tags": [], + "root": "libs/my-plugin" + }, + "mylib": { + "name": "mylib", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "library", + "sourceRoot": "libs/mylib/src", + "targets": { "build": { "executor": "@imported-libs/my-plugin:build" } }, + "tags": [], + "root": "libs/mylib" + }, + "nglib": { + "name": "nglib", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "projectType": "library", + "sourceRoot": "libs/nglib/src", + "prefix": "imported-libs", + "targets": { + "test": { + "executor": "@nrwl/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "libs/nglib/jest.config.ts", + "passWithNoTests": true + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": ["libs/nglib/**/*.ts", "libs/nglib/**/*.html"] + } + }, + "storybook": { + "executor": "@storybook/angular:start-storybook", + "options": { + "port": 4400, + "configDir": "libs/nglib/.storybook", + "browserTarget": "nglib:build-storybook", + "compodoc": false + }, + "configurations": { "ci": { "quiet": true } } + }, + "build-storybook": { + "executor": "@storybook/angular:build-storybook", + "outputs": ["{options.outputDir}"], + "options": { + "outputDir": "dist/storybook/nglib", + "configDir": "libs/nglib/.storybook", + "browserTarget": "nglib:build-storybook", + "compodoc": false + }, + "configurations": { "ci": { "quiet": true } } + } + }, + "tags": [], + "root": "libs/nglib" + }, + "react-rollup": { + "name": "react-rollup", + "sourceRoot": "libs/react-rollup/src", + "projectType": "library", + "tags": [], + "targets": { + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": ["libs/react-rollup/**/*.{ts,tsx,js,jsx}"] + } + }, + "build": { + "executor": "@nrwl/rollup:rollup", + "outputs": ["{options.outputPath}"], + "options": { + "outputPath": "dist/libs/react-rollup", + "tsConfig": "libs/react-rollup/tsconfig.lib.json", + "project": "libs/react-rollup/package.json", + "entryFile": "libs/react-rollup/src/index.ts", + "external": ["react/jsx-runtime"], + "rollupConfig": "@nrwl/react/plugins/bundle-rollup", + "compiler": "babel", + "assets": [ + { + "glob": "libs/react-rollup/README.md", + "input": ".", + "output": "." + } + ] + } + }, + "test": { + "executor": "@nrwl/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "libs/react-rollup/jest.config.ts", + "passWithNoTests": true + } + }, + "storybook": { + "executor": "@nrwl/storybook:storybook", + "options": { + "uiFramework": "@storybook/react", + "port": 4400, + "configDir": "libs/react-rollup/.storybook" + }, + "configurations": { "ci": { "quiet": true } } + }, + "build-storybook": { + "executor": "@nrwl/storybook:build", + "outputs": ["{options.outputDir}"], + "options": { + "uiFramework": "@storybook/react", + "configDir": "libs/react-rollup/.storybook", + "outputDir": "dist/storybook/react-rollup" + }, + "configurations": { "ci": { "quiet": true } } + } + }, + "root": "libs/react-rollup" + }, + "react-rollup-2": { + "name": "react-rollup-2", + "sourceRoot": "libs/react-rollup-2/src", + "projectType": "library", + "tags": [], + "targets": { + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": ["libs/react-rollup-2/**/*.{ts,tsx,js,jsx}"] + } + }, + "build": { + "executor": "@nrwl/rollup:rollup", + "outputs": ["{options.outputPath}"], + "options": { + "outputPath": "dist/libs/react-rollup-2", + "tsConfig": "libs/react-rollup-2/tsconfig.lib.json", + "project": "libs/react-rollup-2/package.json", + "entryFile": "libs/react-rollup-2/src/index.ts", + "external": ["react/jsx-runtime"], + "rollupConfig": "@nrwl/react/plugins/bundle-rollup", + "compiler": "babel", + "assets": [ + { + "glob": "libs/react-rollup-2/README.md", + "input": ".", + "output": "." + } + ] + } + }, + "test": { + "executor": "@nrwl/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "libs/react-rollup-2/jest.config.ts", + "passWithNoTests": true + } + } + }, + "root": "libs/react-rollup-2" + }, + "react-vite": { + "name": "react-vite", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "libs/react-vite/src", + "projectType": "library", + "tags": [], + "targets": { + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": ["libs/react-vite/**/*.{ts,tsx,js,jsx}"] + } + }, + "build": { + "executor": "@nrwl/vite:build", + "outputs": ["{options.outputPath}"], + "defaultConfiguration": "production", + "options": { "outputPath": "dist/libs/react-vite" }, + "configurations": { + "development": { "mode": "development" }, + "production": { "mode": "production" } + } + }, + "test": { + "executor": "@nrwl/vite:test", + "outputs": ["coverage/libs/react-vite"], + "options": { + "passWithNoTests": true, + "reportsDirectory": "../../coverage/libs/react-vite" + } + }, + "storybook": { + "executor": "@nrwl/storybook:storybook", + "options": { + "uiFramework": "@storybook/react", + "port": 4400, + "configDir": "libs/react-vite/.storybook" + }, + "configurations": { "ci": { "quiet": true } } + }, + "build-storybook": { + "executor": "@nrwl/storybook:build", + "outputs": ["{options.outputDir}"], + "options": { + "uiFramework": "@storybook/react", + "configDir": "libs/react-vite/.storybook", + "outputDir": "dist/storybook/react-vite" + }, + "configurations": { "ci": { "quiet": true } } + } + }, + "root": "libs/react-vite" + }, + "react-vite-2": { + "name": "react-vite-2", + "$schema": "../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "libs/react-vite-2/src", + "projectType": "library", + "tags": [], + "targets": { + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { + "lintFilePatterns": ["libs/react-vite-2/**/*.{ts,tsx,js,jsx}"] + } + }, + "build": { + "executor": "@nrwl/vite:build", + "outputs": ["{options.outputPath}"], + "defaultConfiguration": "production", + "options": { "outputPath": "dist/libs/react-vite-2" }, + "configurations": { + "development": { "mode": "development" }, + "production": { "mode": "production" } + } + }, + "test": { + "executor": "@nrwl/vite:test", + "outputs": ["coverage/libs/react-vite-2"], + "options": { + "passWithNoTests": true, + "reportsDirectory": "../../coverage/libs/react-vite-2" + } + } + }, + "root": "libs/react-vite-2" + }, + "utils-one": { + "name": "utils-one", + "$schema": "../../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "libs/utils/one/src", + "projectType": "library", + "targets": { + "build": { + "executor": "@nrwl/webpack:webpack", + "outputs": ["{options.outputPath}"], + "options": { + "outputPath": "dist/libs/utils/one", + "main": "libs/utils/one/src/index.ts", + "tsConfig": "libs/utils/one/tsconfig.lib.json", + "assets": [] + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { "lintFilePatterns": ["libs/utils/one/**/*.ts"] } + }, + "test": { + "executor": "@nrwl/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "libs/utils/one/jest.config.ts", + "passWithNoTests": true + } + } + }, + "tags": [], + "root": "libs/utils/one" + }, + "utils-three-vite": { + "name": "utils-three-vite", + "$schema": "../../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "libs/utils/three-vite/src", + "projectType": "library", + "targets": { + "build": { + "executor": "@nrwl/vite:build", + "outputs": ["{options.outputPath}"], + "options": { "outputPath": "dist/libs/utils/three-vite" } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { "lintFilePatterns": ["libs/utils/three-vite/**/*.ts"] } + }, + "test": { + "executor": "@nrwl/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "libs/utils/three-vite/jest.config.ts", + "passWithNoTests": true + } + } + }, + "tags": [], + "root": "libs/utils/three-vite" + }, + "utils-two": { + "name": "utils-two", + "$schema": "../../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "libs/utils/two/src", + "projectType": "library", + "targets": { + "build": { + "executor": "@nrwl/webpack:webpack", + "outputs": ["{options.outputPath}"], + "options": { + "outputPath": "dist/libs/utils/two", + "main": "libs/utils/two/src/index.ts", + "tsConfig": "libs/utils/two/tsconfig.lib.json", + "assets": [] + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "outputs": ["{options.outputFile}"], + "options": { "lintFilePatterns": ["libs/utils/two/**/*.ts"] } + }, + "test": { + "executor": "@nrwl/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "libs/utils/two/jest.config.ts", + "passWithNoTests": true + } + } + }, + "tags": [], + "root": "libs/utils/two" + } +}