diff --git a/angular.json b/angular.json deleted file mode 100644 index bb4cf849f9..0000000000 --- a/angular.json +++ /dev/null @@ -1,1039 +0,0 @@ -{ - "$schema": "./node_modules/@angular/cli/lib/config/schema.json", - "version": 1, - "projects": { - "cdk": { - "projectType": "library", - "root": "libs/cdk", - "sourceRoot": "libs/cdk/src", - "prefix": "rx-angular", - "architect": { - "build-test-coverage-badge": { - "builder": "@nrwl/workspace:run-commands", - "options": { - "commands": [ - { - "command": "npx istanbul-cobertura-badger -b jest-coverage-badge -r ./docs/test-coverage/cdk/cobertura-coverage.xml -d docs/test-coverage/cdk" - } - ] - } - }, - "build-docs": { - "builder": "@nrwl/workspace:run-commands", - "options": { - "commands": [ - { - "command": "nx test-coverage cdk && nx build-test-coverage-badge cdk" - } - ] - } - }, - "build": { - "builder": "@nrwl/angular:package", - "options": { - "tsConfig": "libs/cdk/tsconfig.lib.json", - "project": "libs/cdk/ng-package.json" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "libs/cdk/tsconfig.lib.json", - "libs/cdk/tsconfig.spec.json" - ], - "exclude": ["**/node_modules/**", "!libs/cdk/**/*"] - } - }, - "test": { - "builder": "@nrwl/jest:jest", - "options": { - "jestConfig": "libs/cdk/jest.config.js", - "passWithNoTests": true - }, - "outputs": ["coverage/libs/cdk"] - }, - "test-coverage": { - "builder": "@nrwl/jest:jest", - "options": { - "jestConfig": "libs/cdk/jest.config.js", - "passWithNoTests": true, - "codeCoverage": true - }, - "outputs": ["coverage/libs/cdk"] - }, - "changelog": { - "builder": "@nrwl/workspace:run-commands", - "options": { - "commands": [ - { - "command": "npx conventional-changelog-cli -p angular -k ./libs/cdk/package.json -i ./libs/cdk/CHANGELOG.md -s --commit-path ./libs/cdk --tagPrefix cdk@" - } - ] - } - }, - "publish": { - "builder": "@nrwl/workspace:run-commands", - "options": { - "commands": [ - { - "command": "nx test cdk && nx build cdk && cd ./dist/libs/cdk && npm publish" - } - ] - } - } - }, - "schematics": { - "@nrwl/angular:component": { - "style": "scss" - } - } - }, - "demos": { - "projectType": "application", - "schematics": { - "@schematics/angular:component": { - "style": "css" - } - }, - "root": "apps/demos", - "sourceRoot": "apps/demos/src", - "prefix": "rxa", - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:browser", - "options": { - "outputPath": "docs/demos", - "baseHref": "/rx-angular/demos/", - "index": "apps/demos/src/index.html", - "main": "apps/demos/src/main.ts", - "polyfills": "apps/demos/src/polyfills.ts", - "tsConfig": "apps/demos/tsconfig.app.json", - "assets": ["apps/demos/src/favicon.ico", "apps/demos/src/assets"], - "styles": ["apps/demos/src/styles.scss"], - "scripts": [], - "vendorChunk": true, - "extractLicenses": false, - "buildOptimizer": false, - "sourceMap": true, - "optimization": false, - "namedChunks": true - }, - "configurations": { - "production": { - "fileReplacements": [ - { - "replace": "apps/demos/src/environments/environment.ts", - "with": "apps/demos/src/environments/environment.prod.ts" - } - ], - "optimization": true, - "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, - "budgets": [ - { - "type": "initial", - "maximumWarning": "2mb", - "maximumError": "5mb" - }, - { - "type": "anyComponentStyle", - "maximumWarning": "6kb", - "maximumError": "10kb" - } - ] - }, - "npm": { - "optimization": true, - "vendorChunk": false, - "buildOptimizer": true, - "budgets": [ - { - "type": "initial", - "maximumWarning": "2mb", - "maximumError": "5mb" - }, - { - "type": "anyComponentStyle", - "maximumWarning": "6kb", - "maximumError": "10kb" - } - ], - "tsConfig": "apps/demos/tsconfig.app.npm.json" - }, - "zoneless": { - "fileReplacements": [ - { - "replace": "apps/demos/src/environments/environment.ts", - "with": "apps/demos/src/environments/environment.zoneless.ts" - } - ], - "polyfills": "" - } - }, - "outputs": ["{options.outputPath}"] - }, - "serve": { - "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "browserTarget": "demos:build" - }, - "configurations": { - "production": { - "browserTarget": "demos:build:production" - }, - "npm": { - "browserTarget": "demos:build:npm" - }, - "zoneless": { - "browserTarget": "demos:build:zoneless" - } - } - }, - "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", - "options": { - "browserTarget": "demos:build" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "apps/demos/tsconfig.app.json", - "apps/demos/tsconfig.spec.json" - ], - "exclude": ["**/node_modules/**", "!apps/demos/**/*"] - } - }, - "test": { - "builder": "@nrwl/jest:jest", - "options": { - "jestConfig": "apps/demos/jest.config.js", - "passWithNoTests": true - }, - "outputs": ["coverage/apps/demos"] - } - } - }, - "demos-e2e": { - "root": "apps/demos-e2e", - "sourceRoot": "apps/demos-e2e/src", - "projectType": "application", - "architect": { - "e2e": { - "builder": "@nrwl/cypress:cypress", - "options": { - "cypressConfig": "apps/demos-e2e/cypress.json", - "tsConfig": "apps/demos-e2e/tsconfig.e2e.json", - "devServerTarget": "demos:serve" - }, - "configurations": { - "production": { - "devServerTarget": "demos:serve:production" - } - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": ["apps/demos-e2e/tsconfig.e2e.json"], - "exclude": ["**/node_modules/**", "!apps/demos-e2e/**/*"] - } - } - } - }, - "docs": { - "projectType": "application", - "root": "apps/docs", - "sourceRoot": "apps/docs", - "prefix": "rx-angular", - "architect": { - "serve-admin": { - "builder": "@nrwl/workspace:run-commands", - "options": { - "parallel": true, - "commands": [ - { - "command": "npx serve docs/admin" - }, - { - "command": "npx netlify-cms-proxy-server" - } - ] - } - }, - "serve-docsify": { - "builder": "@nrwl/workspace:run-commands", - "options": { - "commands": [ - { - "command": "npx docsify-cli serve docs" - } - ] - } - }, - "build": { - "builder": "@angular-devkit/build-angular:browser", - "options": { - "outputPath": "dist/apps/docs", - "index": "apps/docs/src/index.html", - "main": "apps/docs/src/main.ts", - "polyfills": "apps/docs/src/polyfills.ts", - "tsConfig": "apps/docs/tsconfig.app.json", - "assets": ["apps/docs/src/favicon.ico", "apps/docs/src/assets"], - "styles": ["apps/docs/src/styles.scss"], - "scripts": [], - "vendorChunk": true, - "extractLicenses": false, - "buildOptimizer": false, - "sourceMap": true, - "optimization": false, - "namedChunks": true - }, - "configurations": { - "production": { - "fileReplacements": [ - { - "replace": "apps/docs/src/environments/environment.ts", - "with": "apps/docs/src/environments/environment.prod.ts" - } - ], - "optimization": true, - "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, - "budgets": [ - { - "type": "initial", - "maximumWarning": "2mb", - "maximumError": "5mb" - }, - { - "type": "anyComponentStyle", - "maximumWarning": "6kb", - "maximumError": "10kb" - } - ] - } - }, - "outputs": ["{options.outputPath}"] - }, - "serve": { - "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "browserTarget": "docs:build" - }, - "configurations": { - "production": { - "browserTarget": "docs:build:production" - } - } - }, - "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", - "options": { - "browserTarget": "docs:build" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "apps/docs/tsconfig.app.json", - "apps/docs/tsconfig.spec.json" - ], - "exclude": ["**/node_modules/**", "!apps/docs/**/*"] - } - }, - "test": { - "builder": "@nrwl/jest:jest", - "options": { - "jestConfig": "apps/docs/jest.config.js", - "passWithNoTests": true - }, - "outputs": ["coverage/apps/docs"] - } - } - }, - "ssr": { - "projectType": "application", - "root": "apps/ssr", - "sourceRoot": "apps/ssr/src", - "prefix": "rx-angular", - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:browser", - "options": { - "outputPath": "dist/apps/ssr/browser", - "index": "apps/ssr/src/index.html", - "main": "apps/ssr/src/main.ts", - "polyfills": "apps/ssr/src/polyfills.ts", - "tsConfig": "apps/ssr/tsconfig.app.json", - "assets": ["apps/ssr/src/favicon.ico", "apps/ssr/src/assets"], - "styles": ["apps/ssr/src/styles.css"], - "scripts": [], - "vendorChunk": true, - "extractLicenses": false, - "buildOptimizer": false, - "sourceMap": true, - "optimization": false, - "namedChunks": true - }, - "configurations": { - "production": { - "fileReplacements": [ - { - "replace": "apps/ssr/src/environments/environment.ts", - "with": "apps/ssr/src/environments/environment.prod.ts" - } - ], - "optimization": true, - "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, - "budgets": [ - { - "type": "initial", - "maximumWarning": "2mb", - "maximumError": "5mb" - }, - { - "type": "anyComponentStyle", - "maximumWarning": "6kb", - "maximumError": "10kb" - } - ] - } - } - }, - "serve": { - "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "browserTarget": "ssr:build" - }, - "configurations": { - "production": { - "browserTarget": "ssr:build:production" - } - } - }, - "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", - "options": { - "browserTarget": "ssr:build" - } - }, - "lint": { - "builder": "@nrwl/linter:eslint", - "options": { - "lintFilePatterns": [ - "apps/ssr/src/**/*.ts", - "apps/ssr/src/**/*.html" - ] - } - }, - "test": { - "builder": "@nrwl/jest:jest", - "outputs": ["coverage/apps/ssr"], - "options": { - "jestConfig": "apps/ssr/jest.config.js", - "passWithNoTests": true - } - }, - "server": { - "builder": "@angular-devkit/build-angular:server", - "options": { - "outputPath": "dist/apps/ssr/server", - "main": "apps/ssr/server.ts", - "tsConfig": "apps/ssr/tsconfig.server.json", - "sourceMap": true, - "optimization": false - }, - "configurations": { - "production": { - "outputHashing": "media", - "fileReplacements": [ - { - "replace": "apps/ssr/src/environments/environment.ts", - "with": "apps/ssr/src/environments/environment.prod.ts" - } - ], - "sourceMap": false, - "optimization": true - } - } - }, - "serve-ssr": { - "builder": "@nguniversal/builders:ssr-dev-server", - "options": { - "browserTarget": "ssr:build", - "serverTarget": "ssr:server" - }, - "configurations": { - "production": { - "browserTarget": "ssr:build:production", - "serverTarget": "ssr:server:production" - } - } - } - } - }, - "ssr-e2e": { - "root": "apps/ssr-e2e", - "sourceRoot": "apps/ssr-e2e/src", - "projectType": "application", - "architect": { - "e2e": { - "builder": "@nrwl/cypress:cypress", - "options": { - "cypressConfig": "apps/ssr-e2e/cypress.json", - "tsConfig": "apps/ssr-e2e/tsconfig.e2e.json", - "devServerTarget": "ssr:serve-ssr" - } - }, - "lint": { - "builder": "@nrwl/linter:eslint", - "options": { - "lintFilePatterns": ["apps/ssr-e2e/**/*.{js,ts}"] - } - } - } - }, - "state": { - "projectType": "library", - "root": "libs/state", - "sourceRoot": "libs/state/src", - "prefix": "rx", - "architect": { - "build": { - "builder": "@nrwl/angular:package", - "options": { - "tsConfig": "libs/state/tsconfig.lib.json", - "project": "libs/state/ng-package.json" - }, - "outputs": ["dist/libs/state"] - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "libs/state/tsconfig.lib.json", - "libs/state/tsconfig.spec.json" - ], - "exclude": ["**/node_modules/**", "!libs/state/**/*"] - } - }, - "test": { - "builder": "@nrwl/jest:jest", - "options": { - "jestConfig": "libs/state/jest.config.js", - "passWithNoTests": true - }, - "outputs": ["coverage/libs/state"] - }, - "build-docs": { - "builder": "@nrwl/workspace:run-commands", - "options": { - "commands": [ - { - "command": "nx test-coverage state && nx test-coverage-badge state" - } - ] - } - }, - "test-coverage-badge": { - "builder": "@nrwl/workspace:run-commands", - "options": { - "commands": [ - { - "command": "npx istanbul-cobertura-badger -b jest-coverage-badge -r ./docs/test-coverage/state/cobertura-coverage.xml -d docs/test-coverage/state" - } - ] - } - }, - "test-coverage": { - "builder": "@nrwl/jest:jest", - "options": { - "jestConfig": "libs/state/jest.config.js", - "passWithNoTests": true, - "codeCoverage": true - }, - "outputs": ["coverage/libs/state"] - }, - "perfBuild": { - "builder": "@nrwl/node:build", - "options": { - "main": "libs/state/perf/index.ts", - "outputPath": "dist/libs/state-perf/dist", - "tsConfig": "libs/state/tsconfig.perf.json" - }, - "outputs": ["{options.outputPath}"] - }, - "perf": { - "builder": "@nrwl/node:execute", - "options": { - "buildTarget": "state:perfBuild" - } - }, - "changelog": { - "builder": "@nrwl/workspace:run-commands", - "options": { - "commands": [ - { - "command": "npx conventional-changelog-cli -p angular -k ./libs/state/package.json -i ./libs/state/CHANGELOG.md -s --commit-path ./libs/state --tagPrefix state@" - } - ] - } - }, - "publish": { - "builder": "@nrwl/workspace:run-commands", - "options": { - "commands": [ - { - "command": "nx test state && nx build state && cd ./dist/libs/state && npm publish" - } - ] - } - } - }, - "schematics": { - "@nrwl/angular:component": { - "style": "scss" - } - } - }, - "template": { - "projectType": "library", - "root": "libs/template", - "sourceRoot": "libs/template/src", - "prefix": "rx", - "architect": { - "build-lib": { - "builder": "@nrwl/angular:package", - "options": { - "tsConfig": "libs/template/tsconfig.lib.json", - "project": "libs/template/ng-package.json" - } - }, - "build-schematics": { - "builder": "@nrwl/workspace:run-commands", - "options": { - "commands": [ - { - "command": "npx tsc -p libs/template/tsconfig.schematics.json" - }, - { - "command": "npx cpx libs/template/schematics/collection.json dist/libs/template/schematics" - }, - { - "command": "npx cpx libs/template/schematics/migration.json dist/libs/template/schematics" - }, - { - "command": "npx cpx libs/template/schematics/src/**/files/** dist/libs/template/schematics/src" - }, - { - "command": "npx cpx libs/template/schematics/src/**/schema.json dist/libs/template/schematics/src" - } - ], - "parallel": false - } - }, - "build": { - "builder": "@nrwl/workspace:run-commands", - "options": { - "commands": [ - { - "command": "nx run template:build-lib" - }, - { - "command": "nx run template:build-schematics" - } - ], - "parallel": false - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "libs/template/tsconfig.lib.json", - "libs/template/tsconfig.spec.json" - ], - "exclude": ["**/node_modules/**", "!libs/template/**/*"] - } - }, - "test": { - "builder": "@nrwl/jest:jest", - "options": { - "jestConfig": "libs/template/jest.config.js", - "passWithNoTests": true - }, - "outputs": ["coverage/libs/template"] - }, - "build-docs": { - "builder": "@nrwl/workspace:run-commands", - "sequential": true, - "options": { - "commands": [ - { - "command": "nx test-coverage template && nx test-coverage-badge template" - } - ] - } - }, - "test-coverage-badge": { - "builder": "@nrwl/workspace:run-commands", - "options": { - "commands": [ - { - "command": "npx istanbul-cobertura-badger -b jest-coverage-badge -r ./docs/test-coverage/template/cobertura-coverage.xml -d docs/test-coverage/template" - } - ] - } - }, - "test-coverage": { - "builder": "@nrwl/jest:jest", - "options": { - "jestConfig": "libs/template/jest.config.js", - "passWithNoTests": true, - "codeCoverage": true - }, - "outputs": ["coverage/libs/template"] - }, - "changelog": { - "builder": "@nrwl/workspace:run-commands", - "options": { - "commands": [ - { - "command": "npx conventional-changelog-cli -p angular -k ./libs/template/package.json -i ./libs/template/CHANGELOG.md -s --commit-path ./libs/template --tagPrefix template@" - } - ] - } - }, - "link": { - "builder": "@nrwl/workspace:run-commands", - "options": { - "commands": [ - { - "command": "cd ./dist/libs/template && npm link" - } - ] - } - }, - "publish": { - "builder": "@nrwl/workspace:run-commands", - "options": { - "commands": [ - { - "command": "nx test template && nx build template && cd ./dist/libs/template && npm publish" - } - ] - } - } - }, - "schematics": { - "@nrwl/angular:component": { - "style": "scss" - } - } - }, - "test-helpers": { - "root": "libs/test-helpers", - "sourceRoot": "libs/test-helpers/src", - "projectType": "library", - "schematics": {}, - "architect": { - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "libs/test-helpers/tsconfig.lib.json", - "libs/test-helpers/tsconfig.spec.json" - ], - "exclude": ["**/node_modules/**", "!libs/test-helpers/**/*"] - } - }, - "test": { - "builder": "@nrwl/jest:jest", - "options": { - "jestConfig": "libs/test-helpers/jest.config.js", - "passWithNoTests": true - }, - "outputs": ["coverage/libs/test-helpers"] - } - } - }, - "tour-of-heroes-ngxs": { - "projectType": "application", - "schematics": { - "@nrwl/angular:component": { - "style": "scss" - } - }, - "root": "apps/tour-of-heroes-ngxs", - "sourceRoot": "apps/tour-of-heroes-ngxs/src", - "prefix": "rx-angular", - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:browser", - "options": { - "outputPath": "dist/apps/tour-of-heroes-ngxs", - "index": "apps/tour-of-heroes-ngxs/src/index.html", - "main": "apps/tour-of-heroes-ngxs/src/main.ts", - "polyfills": "apps/tour-of-heroes-ngxs/src/polyfills.ts", - "tsConfig": "apps/tour-of-heroes-ngxs/tsconfig.app.json", - "assets": [ - "apps/tour-of-heroes-ngxs/src/favicon.ico", - "apps/tour-of-heroes-ngxs/src/assets" - ], - "styles": ["apps/tour-of-heroes-ngxs/src/styles.scss"], - "scripts": [], - "vendorChunk": true, - "extractLicenses": false, - "buildOptimizer": false, - "sourceMap": true, - "optimization": false, - "namedChunks": true - }, - "configurations": { - "production": { - "fileReplacements": [ - { - "replace": "apps/tour-of-heroes-ngxs/src/environments/environment.ts", - "with": "apps/tour-of-heroes-ngxs/src/environments/environment.prod.ts" - } - ], - "optimization": true, - "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, - "budgets": [ - { - "type": "initial", - "maximumWarning": "2mb", - "maximumError": "5mb" - }, - { - "type": "anyComponentStyle", - "maximumWarning": "6kb", - "maximumError": "10kb" - } - ] - }, - "zoneless": { - "polyfills": "apps/tour-of-heroes-ngxs/src/polyfills.ts", - "fileReplacements": [ - { - "replace": "apps/tour-of-heroes/src/environments/environment.ts", - "with": "apps/tour-of-heroes/src/environments/environment.zoneless.ts" - } - ] - } - }, - "outputs": ["{options.outputPath}"] - }, - "serve": { - "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "browserTarget": "tour-of-heroes-ngxs:build" - }, - "configurations": { - "production": { - "browserTarget": "tour-of-heroes-ngxs:build:production" - }, - "zoneless": { - "browserTarget": "tour-of-heroes-ngxs:build:zoneless" - } - } - }, - "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", - "options": { - "browserTarget": "tour-of-heroes-ngxs:build" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "apps/tour-of-heroes-ngxs/tsconfig.app.json", - "apps/tour-of-heroes-ngxs/tsconfig.spec.json" - ], - "exclude": ["**/node_modules/**", "!apps/tour-of-heroes-ngxs/**/*"] - } - }, - "test": { - "builder": "@nrwl/jest:jest", - "options": { - "jestConfig": "apps/tour-of-heroes-ngxs/jest.config.js", - "passWithNoTests": true - }, - "outputs": ["coverage/apps/tour-of-heroes-ngxs"] - } - } - }, - "vanilla-case-studies": { - "projectType": "application", - "schematics": {}, - "root": "apps/vanilla-case-studies", - "sourceRoot": "apps/vanilla-case-studies/src", - "prefix": "rx-angular", - "architect": { - "build": { - "builder": "@angular-devkit/build-angular:browser", - "options": { - "outputPath": "dist/apps/vanilla-case-studies", - "index": "apps/vanilla-case-studies/src/index.html", - "main": "apps/vanilla-case-studies/src/main.ts", - "polyfills": "apps/vanilla-case-studies/src/polyfills.ts", - "tsConfig": "apps/vanilla-case-studies/tsconfig.app.json", - "assets": [ - "apps/vanilla-case-studies/src/favicon.ico", - "apps/vanilla-case-studies/src/assets", - "apps/vanilla-case-studies/src/case-studies" - ], - "styles": ["apps/vanilla-case-studies/src/styles.css"], - "scripts": [], - "vendorChunk": true, - "extractLicenses": false, - "buildOptimizer": false, - "sourceMap": true, - "optimization": false, - "namedChunks": true - }, - "configurations": { - "production": { - "fileReplacements": [ - { - "replace": "apps/vanilla-case-studies/src/environments/environment.ts", - "with": "apps/vanilla-case-studies/src/environments/environment.prod.ts" - } - ], - "optimization": true, - "outputHashing": "all", - "sourceMap": false, - "namedChunks": false, - "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, - "budgets": [ - { - "type": "initial", - "maximumWarning": "2mb", - "maximumError": "5mb" - }, - { - "type": "anyComponentStyle", - "maximumWarning": "6kb", - "maximumError": "10kb" - } - ] - } - }, - "outputs": ["{options.outputPath}"] - }, - "serve": { - "builder": "@angular-devkit/build-angular:dev-server", - "options": { - "browserTarget": "vanilla-case-studies:build" - }, - "configurations": { - "production": { - "browserTarget": "vanilla-case-studies:build:production" - } - } - }, - "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", - "options": { - "browserTarget": "vanilla-case-studies:build" - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": [ - "apps/vanilla-case-studies/tsconfig.app.json", - "apps/vanilla-case-studies/tsconfig.spec.json" - ], - "exclude": ["**/node_modules/**", "!apps/vanilla-case-studies/**/*"] - } - }, - "test": { - "builder": "@nrwl/jest:jest", - "options": { - "jestConfig": "apps/vanilla-case-studies/jest.config.js", - "passWithNoTests": true - }, - "outputs": ["coverage/apps/vanilla-case-studies"] - } - } - }, - "vanilla-case-studies-e2e": { - "root": "apps/vanilla-case-studies-e2e", - "sourceRoot": "apps/vanilla-case-studies-e2e/src", - "projectType": "application", - "architect": { - "e2e": { - "builder": "@nrwl/cypress:cypress", - "options": { - "cypressConfig": "apps/vanilla-case-studies-e2e/cypress.json", - "tsConfig": "apps/vanilla-case-studies-e2e/tsconfig.e2e.json", - "devServerTarget": "vanilla-case-studies:serve" - }, - "configurations": { - "production": { - "devServerTarget": "vanilla-case-studies:serve:production" - } - } - }, - "lint": { - "builder": "@angular-devkit/build-angular:tslint", - "options": { - "tsConfig": ["apps/vanilla-case-studies-e2e/tsconfig.e2e.json"], - "exclude": [ - "**/node_modules/**", - "!apps/vanilla-case-studies-e2e/**/*" - ] - } - } - } - } - }, - "cli": { - "defaultCollection": "@nrwl/angular", - "analytics": false, - "packageManager": "yarn" - }, - "schematics": { - "@nrwl/angular:application": { - "style": "scss", - "linter": "tslint", - "unitTestRunner": "jest", - "e2eTestRunner": "cypress" - }, - "@nrwl/angular:library": { - "style": "scss", - "linter": "tslint", - "unitTestRunner": "jest" - }, - "@nrwl/angular:component": { - "style": "scss" - } - }, - "defaultProject": "demos" -} diff --git a/apps/demos-e2e/project.json b/apps/demos-e2e/project.json new file mode 100644 index 0000000000..23525595be --- /dev/null +++ b/apps/demos-e2e/project.json @@ -0,0 +1,29 @@ +{ + "root": "apps/demos-e2e", + "sourceRoot": "apps/demos-e2e/src", + "projectType": "application", + "targets": { + "e2e": { + "executor": "@nrwl/cypress:cypress", + "options": { + "cypressConfig": "apps/demos-e2e/cypress.json", + "tsConfig": "apps/demos-e2e/tsconfig.e2e.json", + "devServerTarget": "demos:serve" + }, + "configurations": { + "production": { + "devServerTarget": "demos:serve:production" + } + } + }, + "lint": { + "executor": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": ["apps/demos-e2e/tsconfig.e2e.json"], + "exclude": ["**/node_modules/**", "!apps/demos-e2e/**/*"] + } + } + }, + "tags": [], + "implicitDependencies": ["demos"] +} diff --git a/apps/demos/project.json b/apps/demos/project.json new file mode 100644 index 0000000000..eda687106c --- /dev/null +++ b/apps/demos/project.json @@ -0,0 +1,132 @@ +{ + "projectType": "application", + "generators": { + "@schematics/angular:component": { + "style": "css" + } + }, + "root": "apps/demos", + "sourceRoot": "apps/demos/src", + "prefix": "rxa", + "targets": { + "build": { + "executor": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "docs/demos", + "baseHref": "/rx-angular/demos/", + "index": "apps/demos/src/index.html", + "main": "apps/demos/src/main.ts", + "polyfills": "apps/demos/src/polyfills.ts", + "tsConfig": "apps/demos/tsconfig.app.json", + "assets": ["apps/demos/src/favicon.ico", "apps/demos/src/assets"], + "styles": ["apps/demos/src/styles.scss"], + "scripts": [], + "vendorChunk": true, + "extractLicenses": false, + "buildOptimizer": false, + "sourceMap": true, + "optimization": false, + "namedChunks": true + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "apps/demos/src/environments/environment.ts", + "with": "apps/demos/src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true, + "budgets": [ + { + "type": "initial", + "maximumWarning": "2mb", + "maximumError": "5mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "6kb", + "maximumError": "10kb" + } + ] + }, + "npm": { + "optimization": true, + "vendorChunk": false, + "buildOptimizer": true, + "budgets": [ + { + "type": "initial", + "maximumWarning": "2mb", + "maximumError": "5mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "6kb", + "maximumError": "10kb" + } + ], + "tsConfig": "apps/demos/tsconfig.app.npm.json" + }, + "zoneless": { + "fileReplacements": [ + { + "replace": "apps/demos/src/environments/environment.ts", + "with": "apps/demos/src/environments/environment.zoneless.ts" + } + ], + "polyfills": "" + } + }, + "outputs": ["{options.outputPath}"] + }, + "serve": { + "executor": "@angular-devkit/build-angular:dev-server", + "options": { + "browserTarget": "demos:build" + }, + "configurations": { + "production": { + "browserTarget": "demos:build:production" + }, + "npm": { + "browserTarget": "demos:build:npm" + }, + "zoneless": { + "browserTarget": "demos:build:zoneless" + } + } + }, + "extract-i18n": { + "executor": "@angular-devkit/build-angular:extract-i18n", + "options": { + "browserTarget": "demos:build" + } + }, + "lint": { + "executor": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "apps/demos/tsconfig.app.json", + "apps/demos/tsconfig.spec.json" + ], + "exclude": ["**/node_modules/**", "!apps/demos/**/*"] + } + }, + "test": { + "executor": "@nrwl/jest:jest", + "options": { + "jestConfig": "apps/demos/jest.config.js", + "passWithNoTests": true + }, + "outputs": ["coverage/apps/demos"] + } + }, + "tags": ["type:app"] +} diff --git a/apps/docs/project.json b/apps/docs/project.json new file mode 100644 index 0000000000..8b15a3034d --- /dev/null +++ b/apps/docs/project.json @@ -0,0 +1,117 @@ +{ + "projectType": "application", + "root": "apps/docs", + "sourceRoot": "apps/docs", + "prefix": "rx-angular", + "targets": { + "serve-admin": { + "executor": "@nrwl/workspace:run-commands", + "options": { + "parallel": true, + "commands": [ + { + "command": "npx serve docs/admin" + }, + { + "command": "npx netlify-cms-proxy-server" + } + ] + } + }, + "serve-docsify": { + "executor": "@nrwl/workspace:run-commands", + "options": { + "commands": [ + { + "command": "npx docsify-cli serve docs" + } + ] + } + }, + "build": { + "executor": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/apps/docs", + "index": "apps/docs/src/index.html", + "main": "apps/docs/src/main.ts", + "polyfills": "apps/docs/src/polyfills.ts", + "tsConfig": "apps/docs/tsconfig.app.json", + "assets": ["apps/docs/src/favicon.ico", "apps/docs/src/assets"], + "styles": ["apps/docs/src/styles.scss"], + "scripts": [], + "vendorChunk": true, + "extractLicenses": false, + "buildOptimizer": false, + "sourceMap": true, + "optimization": false, + "namedChunks": true + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "apps/docs/src/environments/environment.ts", + "with": "apps/docs/src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true, + "budgets": [ + { + "type": "initial", + "maximumWarning": "2mb", + "maximumError": "5mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "6kb", + "maximumError": "10kb" + } + ] + } + }, + "outputs": ["{options.outputPath}"] + }, + "serve": { + "executor": "@angular-devkit/build-angular:dev-server", + "options": { + "browserTarget": "docs:build" + }, + "configurations": { + "production": { + "browserTarget": "docs:build:production" + } + } + }, + "extract-i18n": { + "executor": "@angular-devkit/build-angular:extract-i18n", + "options": { + "browserTarget": "docs:build" + } + }, + "lint": { + "executor": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "apps/docs/tsconfig.app.json", + "apps/docs/tsconfig.spec.json" + ], + "exclude": ["**/node_modules/**", "!apps/docs/**/*"] + } + }, + "test": { + "executor": "@nrwl/jest:jest", + "options": { + "jestConfig": "apps/docs/jest.config.js", + "passWithNoTests": true + }, + "outputs": ["coverage/apps/docs"] + } + }, + "tags": ["type:app"] +} diff --git a/apps/ssr-e2e/project.json b/apps/ssr-e2e/project.json new file mode 100644 index 0000000000..0ec0e98db3 --- /dev/null +++ b/apps/ssr-e2e/project.json @@ -0,0 +1,23 @@ +{ + "root": "apps/ssr-e2e", + "sourceRoot": "apps/ssr-e2e/src", + "projectType": "application", + "targets": { + "e2e": { + "executor": "@nrwl/cypress:cypress", + "options": { + "cypressConfig": "apps/ssr-e2e/cypress.json", + "tsConfig": "apps/ssr-e2e/tsconfig.e2e.json", + "devServerTarget": "ssr:serve-ssr" + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "options": { + "lintFilePatterns": ["apps/ssr-e2e/**/*.{js,ts}"] + } + } + }, + "tags": [], + "implicitDependencies": ["ssr"] +} diff --git a/apps/ssr/project.json b/apps/ssr/project.json new file mode 100644 index 0000000000..4b9a24d13d --- /dev/null +++ b/apps/ssr/project.json @@ -0,0 +1,124 @@ +{ + "projectType": "application", + "root": "apps/ssr", + "sourceRoot": "apps/ssr/src", + "prefix": "rx-angular", + "targets": { + "build": { + "executor": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/apps/ssr/browser", + "index": "apps/ssr/src/index.html", + "main": "apps/ssr/src/main.ts", + "polyfills": "apps/ssr/src/polyfills.ts", + "tsConfig": "apps/ssr/tsconfig.app.json", + "assets": ["apps/ssr/src/favicon.ico", "apps/ssr/src/assets"], + "styles": ["apps/ssr/src/styles.css"], + "scripts": [], + "vendorChunk": true, + "extractLicenses": false, + "buildOptimizer": false, + "sourceMap": true, + "optimization": false, + "namedChunks": true + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "apps/ssr/src/environments/environment.ts", + "with": "apps/ssr/src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true, + "budgets": [ + { + "type": "initial", + "maximumWarning": "2mb", + "maximumError": "5mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "6kb", + "maximumError": "10kb" + } + ] + } + } + }, + "serve": { + "executor": "@angular-devkit/build-angular:dev-server", + "options": { + "browserTarget": "ssr:build" + }, + "configurations": { + "production": { + "browserTarget": "ssr:build:production" + } + } + }, + "extract-i18n": { + "executor": "@angular-devkit/build-angular:extract-i18n", + "options": { + "browserTarget": "ssr:build" + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "options": { + "lintFilePatterns": ["apps/ssr/src/**/*.ts", "apps/ssr/src/**/*.html"] + } + }, + "test": { + "executor": "@nrwl/jest:jest", + "outputs": ["coverage/apps/ssr"], + "options": { + "jestConfig": "apps/ssr/jest.config.js", + "passWithNoTests": true + } + }, + "server": { + "executor": "@angular-devkit/build-angular:server", + "options": { + "outputPath": "dist/apps/ssr/server", + "main": "apps/ssr/server.ts", + "tsConfig": "apps/ssr/tsconfig.server.json", + "sourceMap": true, + "optimization": false + }, + "configurations": { + "production": { + "outputHashing": "media", + "fileReplacements": [ + { + "replace": "apps/ssr/src/environments/environment.ts", + "with": "apps/ssr/src/environments/environment.prod.ts" + } + ], + "sourceMap": false, + "optimization": true + } + } + }, + "serve-ssr": { + "executor": "@nguniversal/builders:ssr-dev-server", + "options": { + "browserTarget": "ssr:build", + "serverTarget": "ssr:server" + }, + "configurations": { + "production": { + "browserTarget": "ssr:build:production", + "serverTarget": "ssr:server:production" + } + } + } + }, + "tags": [] +} diff --git a/apps/tour-of-heroes-ngxs/project.json b/apps/tour-of-heroes-ngxs/project.json new file mode 100644 index 0000000000..0a1d55288f --- /dev/null +++ b/apps/tour-of-heroes-ngxs/project.json @@ -0,0 +1,113 @@ +{ + "projectType": "application", + "generators": { + "@nrwl/angular:component": { + "style": "scss" + } + }, + "root": "apps/tour-of-heroes-ngxs", + "sourceRoot": "apps/tour-of-heroes-ngxs/src", + "prefix": "rx-angular", + "targets": { + "build": { + "executor": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/apps/tour-of-heroes-ngxs", + "index": "apps/tour-of-heroes-ngxs/src/index.html", + "main": "apps/tour-of-heroes-ngxs/src/main.ts", + "polyfills": "apps/tour-of-heroes-ngxs/src/polyfills.ts", + "tsConfig": "apps/tour-of-heroes-ngxs/tsconfig.app.json", + "assets": [ + "apps/tour-of-heroes-ngxs/src/favicon.ico", + "apps/tour-of-heroes-ngxs/src/assets" + ], + "styles": ["apps/tour-of-heroes-ngxs/src/styles.scss"], + "scripts": [], + "vendorChunk": true, + "extractLicenses": false, + "buildOptimizer": false, + "sourceMap": true, + "optimization": false, + "namedChunks": true + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "apps/tour-of-heroes-ngxs/src/environments/environment.ts", + "with": "apps/tour-of-heroes-ngxs/src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true, + "budgets": [ + { + "type": "initial", + "maximumWarning": "2mb", + "maximumError": "5mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "6kb", + "maximumError": "10kb" + } + ] + }, + "zoneless": { + "polyfills": "apps/tour-of-heroes-ngxs/src/polyfills.ts", + "fileReplacements": [ + { + "replace": "apps/tour-of-heroes/src/environments/environment.ts", + "with": "apps/tour-of-heroes/src/environments/environment.zoneless.ts" + } + ] + } + }, + "outputs": ["{options.outputPath}"] + }, + "serve": { + "executor": "@angular-devkit/build-angular:dev-server", + "options": { + "browserTarget": "tour-of-heroes-ngxs:build" + }, + "configurations": { + "production": { + "browserTarget": "tour-of-heroes-ngxs:build:production" + }, + "zoneless": { + "browserTarget": "tour-of-heroes-ngxs:build:zoneless" + } + } + }, + "extract-i18n": { + "executor": "@angular-devkit/build-angular:extract-i18n", + "options": { + "browserTarget": "tour-of-heroes-ngxs:build" + } + }, + "lint": { + "executor": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "apps/tour-of-heroes-ngxs/tsconfig.app.json", + "apps/tour-of-heroes-ngxs/tsconfig.spec.json" + ], + "exclude": ["**/node_modules/**", "!apps/tour-of-heroes-ngxs/**/*"] + } + }, + "test": { + "executor": "@nrwl/jest:jest", + "options": { + "jestConfig": "apps/tour-of-heroes-ngxs/jest.config.js", + "passWithNoTests": true + }, + "outputs": ["coverage/apps/tour-of-heroes-ngxs"] + } + }, + "tags": ["type:app"] +} diff --git a/apps/vanilla-case-studies-e2e/project.json b/apps/vanilla-case-studies-e2e/project.json new file mode 100644 index 0000000000..d56f3ebaae --- /dev/null +++ b/apps/vanilla-case-studies-e2e/project.json @@ -0,0 +1,29 @@ +{ + "root": "apps/vanilla-case-studies-e2e", + "sourceRoot": "apps/vanilla-case-studies-e2e/src", + "projectType": "application", + "targets": { + "e2e": { + "executor": "@nrwl/cypress:cypress", + "options": { + "cypressConfig": "apps/vanilla-case-studies-e2e/cypress.json", + "tsConfig": "apps/vanilla-case-studies-e2e/tsconfig.e2e.json", + "devServerTarget": "vanilla-case-studies:serve" + }, + "configurations": { + "production": { + "devServerTarget": "vanilla-case-studies:serve:production" + } + } + }, + "lint": { + "executor": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": ["apps/vanilla-case-studies-e2e/tsconfig.e2e.json"], + "exclude": ["**/node_modules/**", "!apps/vanilla-case-studies-e2e/**/*"] + } + } + }, + "tags": [], + "implicitDependencies": ["vanilla-case-studies"] +} diff --git a/apps/vanilla-case-studies/project.json b/apps/vanilla-case-studies/project.json new file mode 100644 index 0000000000..d2cab03777 --- /dev/null +++ b/apps/vanilla-case-studies/project.json @@ -0,0 +1,98 @@ +{ + "projectType": "application", + "generators": {}, + "root": "apps/vanilla-case-studies", + "sourceRoot": "apps/vanilla-case-studies/src", + "prefix": "rx-angular", + "targets": { + "build": { + "executor": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/apps/vanilla-case-studies", + "index": "apps/vanilla-case-studies/src/index.html", + "main": "apps/vanilla-case-studies/src/main.ts", + "polyfills": "apps/vanilla-case-studies/src/polyfills.ts", + "tsConfig": "apps/vanilla-case-studies/tsconfig.app.json", + "assets": [ + "apps/vanilla-case-studies/src/favicon.ico", + "apps/vanilla-case-studies/src/assets", + "apps/vanilla-case-studies/src/case-studies" + ], + "styles": ["apps/vanilla-case-studies/src/styles.css"], + "scripts": [], + "vendorChunk": true, + "extractLicenses": false, + "buildOptimizer": false, + "sourceMap": true, + "optimization": false, + "namedChunks": true + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "apps/vanilla-case-studies/src/environments/environment.ts", + "with": "apps/vanilla-case-studies/src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "namedChunks": false, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true, + "budgets": [ + { + "type": "initial", + "maximumWarning": "2mb", + "maximumError": "5mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "6kb", + "maximumError": "10kb" + } + ] + } + }, + "outputs": ["{options.outputPath}"] + }, + "serve": { + "executor": "@angular-devkit/build-angular:dev-server", + "options": { + "browserTarget": "vanilla-case-studies:build" + }, + "configurations": { + "production": { + "browserTarget": "vanilla-case-studies:build:production" + } + } + }, + "extract-i18n": { + "executor": "@angular-devkit/build-angular:extract-i18n", + "options": { + "browserTarget": "vanilla-case-studies:build" + } + }, + "lint": { + "executor": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "apps/vanilla-case-studies/tsconfig.app.json", + "apps/vanilla-case-studies/tsconfig.spec.json" + ], + "exclude": ["**/node_modules/**", "!apps/vanilla-case-studies/**/*"] + } + }, + "test": { + "executor": "@nrwl/jest:jest", + "options": { + "jestConfig": "apps/vanilla-case-studies/jest.config.js", + "passWithNoTests": true + }, + "outputs": ["coverage/apps/vanilla-case-studies"] + } + }, + "tags": [] +} diff --git a/libs/cdk/project.json b/libs/cdk/project.json new file mode 100644 index 0000000000..96f3889f06 --- /dev/null +++ b/libs/cdk/project.json @@ -0,0 +1,88 @@ +{ + "projectType": "library", + "root": "libs/cdk", + "sourceRoot": "libs/cdk/src", + "prefix": "rx-angular", + "targets": { + "build-test-coverage-badge": { + "executor": "@nrwl/workspace:run-commands", + "options": { + "commands": [ + { + "command": "npx istanbul-cobertura-badger -b jest-coverage-badge -r ./docs/test-coverage/cdk/cobertura-coverage.xml -d docs/test-coverage/cdk" + } + ] + } + }, + "build-docs": { + "executor": "@nrwl/workspace:run-commands", + "options": { + "commands": [ + { + "command": "nx test-coverage cdk && nx build-test-coverage-badge cdk" + } + ] + } + }, + "build": { + "executor": "@nrwl/angular:package", + "options": { + "tsConfig": "libs/cdk/tsconfig.lib.json", + "project": "libs/cdk/ng-package.json" + } + }, + "lint": { + "executor": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "libs/cdk/tsconfig.lib.json", + "libs/cdk/tsconfig.spec.json" + ], + "exclude": ["**/node_modules/**", "!libs/cdk/**/*"] + } + }, + "test": { + "executor": "@nrwl/jest:jest", + "options": { + "jestConfig": "libs/cdk/jest.config.js", + "passWithNoTests": true + }, + "outputs": ["coverage/libs/cdk"] + }, + "test-coverage": { + "executor": "@nrwl/jest:jest", + "options": { + "jestConfig": "libs/cdk/jest.config.js", + "passWithNoTests": true, + "codeCoverage": true + }, + "outputs": ["coverage/libs/cdk"] + }, + "changelog": { + "executor": "@nrwl/workspace:run-commands", + "options": { + "commands": [ + { + "command": "npx conventional-changelog-cli -p angular -k ./libs/cdk/package.json -i ./libs/cdk/CHANGELOG.md -s --commit-path ./libs/cdk --tagPrefix cdk@" + } + ] + } + }, + "publish": { + "executor": "@nrwl/workspace:run-commands", + "options": { + "commands": [ + { + "command": "nx test cdk && nx build cdk && cd ./dist/libs/cdk && npm publish" + } + ] + } + } + }, + "generators": { + "@nrwl/angular:component": { + "style": "scss" + } + }, + "tags": ["type:lib", "type:cdk"] +} diff --git a/libs/state/project.json b/libs/state/project.json new file mode 100644 index 0000000000..5939914525 --- /dev/null +++ b/libs/state/project.json @@ -0,0 +1,104 @@ +{ + "projectType": "library", + "root": "libs/state", + "sourceRoot": "libs/state/src", + "prefix": "rx", + "targets": { + "build": { + "executor": "@nrwl/angular:package", + "options": { + "tsConfig": "libs/state/tsconfig.lib.json", + "project": "libs/state/ng-package.json" + }, + "outputs": ["dist/libs/state"] + }, + "lint": { + "executor": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "libs/state/tsconfig.lib.json", + "libs/state/tsconfig.spec.json" + ], + "exclude": ["**/node_modules/**", "!libs/state/**/*"] + } + }, + "test": { + "executor": "@nrwl/jest:jest", + "options": { + "jestConfig": "libs/state/jest.config.js", + "passWithNoTests": true + }, + "outputs": ["coverage/libs/state"] + }, + "build-docs": { + "executor": "@nrwl/workspace:run-commands", + "options": { + "commands": [ + { + "command": "nx test-coverage state && nx test-coverage-badge state" + } + ] + } + }, + "test-coverage-badge": { + "executor": "@nrwl/workspace:run-commands", + "options": { + "commands": [ + { + "command": "npx istanbul-cobertura-badger -b jest-coverage-badge -r ./docs/test-coverage/state/cobertura-coverage.xml -d docs/test-coverage/state" + } + ] + } + }, + "test-coverage": { + "executor": "@nrwl/jest:jest", + "options": { + "jestConfig": "libs/state/jest.config.js", + "passWithNoTests": true, + "codeCoverage": true + }, + "outputs": ["coverage/libs/state"] + }, + "perfBuild": { + "executor": "@nrwl/node:build", + "options": { + "main": "libs/state/perf/index.ts", + "outputPath": "dist/libs/state-perf/dist", + "tsConfig": "libs/state/tsconfig.perf.json" + }, + "outputs": ["{options.outputPath}"] + }, + "perf": { + "executor": "@nrwl/node:execute", + "options": { + "buildTarget": "state:perfBuild" + } + }, + "changelog": { + "executor": "@nrwl/workspace:run-commands", + "options": { + "commands": [ + { + "command": "npx conventional-changelog-cli -p angular -k ./libs/state/package.json -i ./libs/state/CHANGELOG.md -s --commit-path ./libs/state --tagPrefix state@" + } + ] + } + }, + "publish": { + "executor": "@nrwl/workspace:run-commands", + "options": { + "commands": [ + { + "command": "nx test state && nx build state && cd ./dist/libs/state && npm publish" + } + ] + } + } + }, + "generators": { + "@nrwl/angular:component": { + "style": "scss" + } + }, + "tags": ["type:lib"] +} diff --git a/libs/template/project.json b/libs/template/project.json new file mode 100644 index 0000000000..afed5fd64e --- /dev/null +++ b/libs/template/project.json @@ -0,0 +1,136 @@ +{ + "projectType": "library", + "root": "libs/template", + "sourceRoot": "libs/template/src", + "prefix": "rx", + "targets": { + "build-lib": { + "executor": "@nrwl/angular:package", + "options": { + "tsConfig": "libs/template/tsconfig.lib.json", + "project": "libs/template/ng-package.json" + } + }, + "build-schematics": { + "executor": "@nrwl/workspace:run-commands", + "options": { + "commands": [ + { + "command": "npx tsc -p libs/template/tsconfig.schematics.json" + }, + { + "command": "npx cpx libs/template/schematics/collection.json dist/libs/template/schematics" + }, + { + "command": "npx cpx libs/template/schematics/migration.json dist/libs/template/schematics" + }, + { + "command": "npx cpx libs/template/schematics/src/**/files/** dist/libs/template/schematics/src" + }, + { + "command": "npx cpx libs/template/schematics/src/**/schema.json dist/libs/template/schematics/src" + } + ], + "parallel": false + } + }, + "build": { + "executor": "@nrwl/workspace:run-commands", + "options": { + "commands": [ + { + "command": "nx run template:build-lib" + }, + { + "command": "nx run template:build-schematics" + } + ], + "parallel": false + } + }, + "lint": { + "executor": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "libs/template/tsconfig.lib.json", + "libs/template/tsconfig.spec.json" + ], + "exclude": ["**/node_modules/**", "!libs/template/**/*"] + } + }, + "test": { + "executor": "@nrwl/jest:jest", + "options": { + "jestConfig": "libs/template/jest.config.js", + "passWithNoTests": true + }, + "outputs": ["coverage/libs/template"] + }, + "build-docs": { + "executor": "@nrwl/workspace:run-commands", + "sequential": true, + "options": { + "commands": [ + { + "command": "nx test-coverage template && nx test-coverage-badge template" + } + ] + } + }, + "test-coverage-badge": { + "executor": "@nrwl/workspace:run-commands", + "options": { + "commands": [ + { + "command": "npx istanbul-cobertura-badger -b jest-coverage-badge -r ./docs/test-coverage/template/cobertura-coverage.xml -d docs/test-coverage/template" + } + ] + } + }, + "test-coverage": { + "executor": "@nrwl/jest:jest", + "options": { + "jestConfig": "libs/template/jest.config.js", + "passWithNoTests": true, + "codeCoverage": true + }, + "outputs": ["coverage/libs/template"] + }, + "changelog": { + "executor": "@nrwl/workspace:run-commands", + "options": { + "commands": [ + { + "command": "npx conventional-changelog-cli -p angular -k ./libs/template/package.json -i ./libs/template/CHANGELOG.md -s --commit-path ./libs/template --tagPrefix template@" + } + ] + } + }, + "link": { + "executor": "@nrwl/workspace:run-commands", + "options": { + "commands": [ + { + "command": "cd ./dist/libs/template && npm link" + } + ] + } + }, + "publish": { + "executor": "@nrwl/workspace:run-commands", + "options": { + "commands": [ + { + "command": "nx test template && nx build template && cd ./dist/libs/template && npm publish" + } + ] + } + } + }, + "generators": { + "@nrwl/angular:component": { + "style": "scss" + } + }, + "tags": ["type:lib", "type:template"] +} diff --git a/libs/test-helpers/project.json b/libs/test-helpers/project.json new file mode 100644 index 0000000000..279d02d021 --- /dev/null +++ b/libs/test-helpers/project.json @@ -0,0 +1,27 @@ +{ + "root": "libs/test-helpers", + "sourceRoot": "libs/test-helpers/src", + "projectType": "library", + "generators": {}, + "targets": { + "lint": { + "executor": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "libs/test-helpers/tsconfig.lib.json", + "libs/test-helpers/tsconfig.spec.json" + ], + "exclude": ["**/node_modules/**", "!libs/test-helpers/**/*"] + } + }, + "test": { + "executor": "@nrwl/jest:jest", + "options": { + "jestConfig": "libs/test-helpers/jest.config.js", + "passWithNoTests": true + }, + "outputs": ["coverage/libs/test-helpers"] + } + }, + "tags": ["type:util"] +} diff --git a/nx.json b/nx.json index a680757c3e..8a2f564fb3 100644 --- a/nx.json +++ b/nx.json @@ -22,47 +22,7 @@ } } }, - "projects": { - "cdk": { - "tags": ["type:lib", "type:cdk"] - }, - "demos": { - "tags": ["type:app"] - }, - "demos-e2e": { - "tags": [], - "implicitDependencies": ["demos"] - }, - "docs": { - "tags": ["type:app"] - }, - "ssr": { - "tags": [] - }, - "ssr-e2e": { - "tags": [], - "implicitDependencies": ["ssr"] - }, - "state": { - "tags": ["type:lib"] - }, - "template": { - "tags": ["type:lib", "type:template"] - }, - "test-helpers": { - "tags": ["type:util"] - }, - "tour-of-heroes-ngxs": { - "tags": ["type:app"] - }, - "vanilla-case-studies": { - "tags": [] - }, - "vanilla-case-studies-e2e": { - "tags": [], - "implicitDependencies": ["vanilla-case-studies"] - } - }, + "projects": {}, "affected": { "defaultBase": "origin/master" }, diff --git a/tsconfig.base.json b/tsconfig.base.json index 11aade7f0e..ccf15b86cd 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -16,24 +16,16 @@ "baseUrl": ".", "paths": { "@rx-angular/cdk": ["libs/cdk/src/index.ts"], - "@rx-angular/cdk/coalescing": [ - "libs/cdk/coalescing/src/index.ts" - ], - "@rx-angular/cdk/coercing": [ - "libs/cdk/coercing/src/index.ts" - ], + "@rx-angular/cdk/coalescing": ["libs/cdk/coalescing/src/index.ts"], + "@rx-angular/cdk/coercing": ["libs/cdk/coercing/src/index.ts"], "@rx-angular/cdk/internals/scheduler": [ "libs/cdk/internals/scheduler/src/index.ts" ], - "@rx-angular/cdk/notifications": [ - "libs/cdk/notifications/src/index.ts" - ], + "@rx-angular/cdk/notifications": ["libs/cdk/notifications/src/index.ts"], "@rx-angular/cdk/zone-configurations": [ "libs/cdk/zone-configurations/src/index.ts" ], - "@rx-angular/cdk/zone-less": [ - "libs/cdk/zone-less/src/index.ts" - ], + "@rx-angular/cdk/zone-less": ["libs/cdk/zone-less/src/index.ts"], "@rx-angular/state": ["libs/state/src/index.ts"], "@rx-angular/template": ["libs/template/src/index.ts"], "@rx-angular/template/let": ["libs/template/let/src/index.ts"], diff --git a/workspace.json b/workspace.json new file mode 100644 index 0000000000..0e94117a7e --- /dev/null +++ b/workspace.json @@ -0,0 +1,39 @@ +{ + "version": 2, + "projects": { + "cdk": "libs/cdk", + "demos": "apps/demos", + "demos-e2e": "apps/demos-e2e", + "docs": "apps/docs", + "ssr": "apps/ssr", + "ssr-e2e": "apps/ssr-e2e", + "state": "libs/state", + "template": "libs/template", + "test-helpers": "libs/test-helpers", + "tour-of-heroes-ngxs": "apps/tour-of-heroes-ngxs", + "vanilla-case-studies": "apps/vanilla-case-studies", + "vanilla-case-studies-e2e": "apps/vanilla-case-studies-e2e" + }, + "cli": { + "defaultCollection": "@nrwl/angular", + "analytics": false, + "packageManager": "yarn" + }, + "generators": { + "@nrwl/angular:application": { + "style": "scss", + "linter": "tslint", + "unitTestRunner": "jest", + "e2eTestRunner": "cypress" + }, + "@nrwl/angular:library": { + "style": "scss", + "linter": "tslint", + "unitTestRunner": "jest" + }, + "@nrwl/angular:component": { + "style": "scss" + } + }, + "defaultProject": "demos" +}