diff --git a/angular.json b/angular.json index 606cc6d..e736075 100644 --- a/angular.json +++ b/angular.json @@ -21,8 +21,14 @@ "polyfills": "apps/breadcrumb-demo/src/polyfills.ts", "tsConfig": "apps/breadcrumb-demo/tsconfig.app.json", "aot": true, - "assets": ["apps/breadcrumb-demo/src/favicon.ico", "apps/breadcrumb-demo/src/assets"], - "styles": ["apps/breadcrumb-demo/src/assets/scss/xng-breadcrumb.scss", "apps/breadcrumb-demo/src/styles.scss"], + "assets": [ + "apps/breadcrumb-demo/src/favicon.ico", + "apps/breadcrumb-demo/src/assets" + ], + "styles": [ + "apps/breadcrumb-demo/src/assets/scss/xng-breadcrumb.scss", + "apps/breadcrumb-demo/src/styles.scss" + ], "scripts": [] }, "configurations": { @@ -160,6 +166,129 @@ } }, "schematics": {} + }, + "star-wars": { + "projectType": "application", + "schematics": { + "@nrwl/angular:component": { + "style": "scss" + } + }, + "root": "apps/star-wars", + "sourceRoot": "apps/star-wars/src", + "prefix": "xng", + "architect": { + "build": { + "builder": "@angular-devkit/build-angular:browser", + "options": { + "outputPath": "dist/apps/star-wars", + "index": "apps/star-wars/src/index.html", + "main": "apps/star-wars/src/main.ts", + "polyfills": "apps/star-wars/src/polyfills.ts", + "tsConfig": "apps/star-wars/tsconfig.app.json", + "aot": true, + "assets": [ + "apps/star-wars/src/favicon.ico", + "apps/star-wars/src/assets" + ], + "styles": ["apps/star-wars/src/styles.scss"], + "scripts": [] + }, + "configurations": { + "production": { + "fileReplacements": [ + { + "replace": "apps/star-wars/src/environments/environment.ts", + "with": "apps/star-wars/src/environments/environment.prod.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "extractCss": true, + "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": "star-wars:build" + }, + "configurations": { + "production": { + "browserTarget": "star-wars:build:production" + } + } + }, + "extract-i18n": { + "builder": "@angular-devkit/build-angular:extract-i18n", + "options": { + "browserTarget": "star-wars:build" + } + }, + "lint": { + "builder": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": [ + "apps/star-wars/tsconfig.app.json", + "apps/star-wars/tsconfig.spec.json" + ], + "exclude": ["**/node_modules/**", "!apps/star-wars/**/*"] + } + }, + "test": { + "builder": "@nrwl/jest:jest", + "options": { + "jestConfig": "apps/star-wars/jest.config.js", + "tsConfig": "apps/star-wars/tsconfig.spec.json", + "passWithNoTests": true, + "setupFile": "apps/star-wars/src/test-setup.ts" + } + } + } + }, + "star-wars-e2e": { + "root": "apps/star-wars-e2e", + "sourceRoot": "apps/star-wars-e2e/src", + "projectType": "application", + "architect": { + "e2e": { + "builder": "@nrwl/cypress:cypress", + "options": { + "cypressConfig": "apps/star-wars-e2e/cypress.json", + "tsConfig": "apps/star-wars-e2e/tsconfig.e2e.json", + "devServerTarget": "star-wars:serve" + }, + "configurations": { + "production": { + "devServerTarget": "star-wars:serve:production" + } + } + }, + "lint": { + "builder": "@angular-devkit/build-angular:tslint", + "options": { + "tsConfig": ["apps/star-wars-e2e/tsconfig.e2e.json"], + "exclude": ["**/node_modules/**", "!apps/star-wars-e2e/**/*"] + } + } + } } }, "cli": { diff --git a/apps/star-wars-e2e/cypress.json b/apps/star-wars-e2e/cypress.json new file mode 100644 index 0000000..297729e --- /dev/null +++ b/apps/star-wars-e2e/cypress.json @@ -0,0 +1,12 @@ +{ + "fileServerFolder": ".", + "fixturesFolder": "./src/fixtures", + "integrationFolder": "./src/integration", + "modifyObstructiveCode": false, + "pluginsFile": "./src/plugins/index", + "supportFile": "./src/support/index.ts", + "video": true, + "videosFolder": "../../dist/cypress/apps/star-wars-e2e/videos", + "screenshotsFolder": "../../dist/cypress/apps/star-wars-e2e/screenshots", + "chromeWebSecurity": false +} diff --git a/apps/star-wars-e2e/src/fixtures/example.json b/apps/star-wars-e2e/src/fixtures/example.json new file mode 100644 index 0000000..294cbed --- /dev/null +++ b/apps/star-wars-e2e/src/fixtures/example.json @@ -0,0 +1,4 @@ +{ + "name": "Using fixtures to represent data", + "email": "hello@cypress.io" +} diff --git a/apps/star-wars-e2e/src/integration/app.spec.ts b/apps/star-wars-e2e/src/integration/app.spec.ts new file mode 100644 index 0000000..a9f0142 --- /dev/null +++ b/apps/star-wars-e2e/src/integration/app.spec.ts @@ -0,0 +1,13 @@ +import { getGreeting } from '../support/app.po'; + +describe('star-wars', () => { + beforeEach(() => cy.visit('/')); + + it('should display welcome message', () => { + // Custom command example, see `../support/commands.ts` file + cy.login('my-email@something.com', 'myPassword'); + + // Function helper example, see `../support/app.po.ts` file + getGreeting().contains('Welcome to star-wars!'); + }); +}); diff --git a/apps/star-wars-e2e/src/plugins/index.js b/apps/star-wars-e2e/src/plugins/index.js new file mode 100644 index 0000000..9067e75 --- /dev/null +++ b/apps/star-wars-e2e/src/plugins/index.js @@ -0,0 +1,22 @@ +// *********************************************************** +// This example plugins/index.js can be used to load plugins +// +// You can change the location of this file or turn off loading +// the plugins file with the 'pluginsFile' configuration option. +// +// You can read more here: +// https://on.cypress.io/plugins-guide +// *********************************************************** + +// This function is called when a project is opened or re-opened (e.g. due to +// the project's config changing) + +const { preprocessTypescript } = require('@nrwl/cypress/plugins/preprocessor'); + +module.exports = (on, config) => { + // `on` is used to hook into various events Cypress emits + // `config` is the resolved Cypress config + + // Preprocess Typescript file using Nx helper + on('file:preprocessor', preprocessTypescript(config)); +}; diff --git a/apps/star-wars-e2e/src/support/app.po.ts b/apps/star-wars-e2e/src/support/app.po.ts new file mode 100644 index 0000000..3293424 --- /dev/null +++ b/apps/star-wars-e2e/src/support/app.po.ts @@ -0,0 +1 @@ +export const getGreeting = () => cy.get('h1'); diff --git a/apps/star-wars-e2e/src/support/commands.ts b/apps/star-wars-e2e/src/support/commands.ts new file mode 100644 index 0000000..61b3a3e --- /dev/null +++ b/apps/star-wars-e2e/src/support/commands.ts @@ -0,0 +1,31 @@ +// *********************************************** +// This example commands.js shows you how to +// create various custom commands and overwrite +// existing commands. +// +// For more comprehensive examples of custom +// commands please read more here: +// https://on.cypress.io/custom-commands +// *********************************************** +// eslint-disable-next-line @typescript-eslint/no-namespace +declare namespace Cypress { + interface Chainable { + login(email: string, password: string): void; + } +} +// +// -- This is a parent command -- +Cypress.Commands.add('login', (email, password) => { + console.log('Custom command example: Login', email, password); +}); +// +// -- This is a child command -- +// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... }) +// +// +// -- This is a dual command -- +// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... }) +// +// +// -- This will overwrite an existing command -- +// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... }) diff --git a/apps/star-wars-e2e/src/support/index.ts b/apps/star-wars-e2e/src/support/index.ts new file mode 100644 index 0000000..3d469a6 --- /dev/null +++ b/apps/star-wars-e2e/src/support/index.ts @@ -0,0 +1,17 @@ +// *********************************************************** +// This example support/index.js is processed and +// loaded automatically before your test files. +// +// This is a great place to put global configuration and +// behavior that modifies Cypress. +// +// You can change the location of this file or turn off +// automatically serving support files with the +// 'supportFile' configuration option. +// +// You can read more here: +// https://on.cypress.io/configuration +// *********************************************************** + +// Import commands.js using ES2015 syntax: +import './commands'; diff --git a/apps/star-wars-e2e/tsconfig.e2e.json b/apps/star-wars-e2e/tsconfig.e2e.json new file mode 100644 index 0000000..f347341 --- /dev/null +++ b/apps/star-wars-e2e/tsconfig.e2e.json @@ -0,0 +1,9 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "sourceMap": false, + "outDir": "../../dist/out-tsc", + "allowJs": true + }, + "include": ["src/**/*.ts", "src/**/*.js"] +} diff --git a/apps/star-wars-e2e/tsconfig.json b/apps/star-wars-e2e/tsconfig.json new file mode 100644 index 0000000..d8d4ea3 --- /dev/null +++ b/apps/star-wars-e2e/tsconfig.json @@ -0,0 +1,7 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "types": ["cypress", "node"] + }, + "include": ["**/*.ts", "**/*.js"] +} diff --git a/apps/star-wars-e2e/tslint.json b/apps/star-wars-e2e/tslint.json new file mode 100644 index 0000000..905c5d5 --- /dev/null +++ b/apps/star-wars-e2e/tslint.json @@ -0,0 +1,5 @@ +{ + "extends": "../../tslint.json", + "linterOptions": { "exclude": ["!**/*"] }, + "rules": {} +} diff --git a/apps/star-wars/browserslist b/apps/star-wars/browserslist new file mode 100644 index 0000000..8084853 --- /dev/null +++ b/apps/star-wars/browserslist @@ -0,0 +1,12 @@ +# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. +# For additional information regarding the format and rule options, please see: +# https://github.com/browserslist/browserslist#queries + +# You can see what browsers were selected by your queries by running: +# npx browserslist + +> 0.5% +last 2 versions +Firefox ESR +not dead +not IE 9-11 # For IE 9-11 support, remove 'not'. \ No newline at end of file diff --git a/apps/star-wars/jest.config.js b/apps/star-wars/jest.config.js new file mode 100644 index 0000000..2f5b801 --- /dev/null +++ b/apps/star-wars/jest.config.js @@ -0,0 +1,10 @@ +module.exports = { + name: 'star-wars', + preset: '../../jest.config.js', + coverageDirectory: '../../coverage/apps/star-wars', + snapshotSerializers: [ + 'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js', + 'jest-preset-angular/build/AngularSnapshotSerializer.js', + 'jest-preset-angular/build/HTMLCommentSerializer.js', + ], +}; diff --git a/apps/star-wars/src/app/app.component.html b/apps/star-wars/src/app/app.component.html new file mode 100644 index 0000000..ac4cb6e --- /dev/null +++ b/apps/star-wars/src/app/app.component.html @@ -0,0 +1,120 @@ +
+ Nx logo +

Welcome to {{ title }}!

+
+
+

Resources & Tools

+

+ Thank you for using and showing some ♥ for Nx. +

+ +

+ Here are some links to help you get started. +

+ +

Next Steps

+

Here are some things you can do with Nx.

+
+ Add UI library +
+# Generate UI lib
+ng g @nrwl/angular:lib ui
+
+# Add a component
+ng g @nrwl/angular:component xyz --project ui
+
+
+ View dependency graph +
nx dep-graph
+
+
+ Run affected commands +
+# see what's been affected by changes
+ng affected:dep-graph
+
+# run tests for current changes
+ng affected:test
+
+# run e2e tests for current changes
+ng affected:e2e
+
+
+
+ + diff --git a/apps/star-wars/src/app/app.component.scss b/apps/star-wars/src/app/app.component.scss new file mode 100644 index 0000000..f222adf --- /dev/null +++ b/apps/star-wars/src/app/app.component.scss @@ -0,0 +1,133 @@ +/* + * Remove template code below + */ +:host { + display: block; + font-family: sans-serif; + min-width: 300px; + max-width: 600px; + margin: 50px auto; +} + +.gutter-left { + margin-left: 9px; +} + +.col-span-2 { + grid-column: span 2; +} + +.flex { + display: flex; + align-items: center; + justify-content: center; +} + +header { + background-color: #143055; + color: white; + padding: 5px; + border-radius: 3px; +} + +main { + padding: 0 36px; +} + +p { + text-align: center; +} + +h1 { + text-align: center; + margin-left: 18px; + font-size: 24px; +} + +h2 { + text-align: center; + font-size: 20px; + margin: 40px 0 10px 0; +} + +.resources { + text-align: center; + list-style: none; + padding: 0; + display: grid; + grid-gap: 9px; + grid-template-columns: 1fr 1fr; +} + +.resource { + color: #0094ba; + height: 36px; + background-color: rgba(0, 0, 0, 0); + border: 1px solid rgba(0, 0, 0, 0.12); + border-radius: 4px; + padding: 3px 9px; + text-decoration: none; +} + +.resource:hover { + background-color: rgba(68, 138, 255, 0.04); +} + +pre { + padding: 9px; + border-radius: 4px; + background-color: black; + color: #eee; +} + +details { + border-radius: 4px; + color: #333; + background-color: rgba(0, 0, 0, 0); + border: 1px solid rgba(0, 0, 0, 0.12); + padding: 3px 9px; + margin-bottom: 9px; +} + +summary { + cursor: pointer; + outline: none; + height: 36px; + line-height: 36px; +} + +.github-star-container { + margin-top: 12px; + line-height: 20px; +} + +.github-star-container a { + display: flex; + align-items: center; + text-decoration: none; + color: #333; +} + +.github-star-badge { + color: #24292e; + display: flex; + align-items: center; + font-size: 12px; + padding: 3px 10px; + border: 1px solid rgba(27, 31, 35, 0.2); + border-radius: 3px; + background-image: linear-gradient(-180deg, #fafbfc, #eff3f6 90%); + margin-left: 4px; + font-weight: 600; +} + +.github-star-badge:hover { + background-image: linear-gradient(-180deg, #f0f3f6, #e6ebf1 90%); + border-color: rgba(27, 31, 35, 0.35); + background-position: -0.5em; +} +.github-star-badge .material-icons { + height: 16px; + width: 16px; + margin-right: 4px; +} diff --git a/apps/star-wars/src/app/app.component.spec.ts b/apps/star-wars/src/app/app.component.spec.ts new file mode 100644 index 0000000..f6b4a05 --- /dev/null +++ b/apps/star-wars/src/app/app.component.spec.ts @@ -0,0 +1,33 @@ +import { TestBed, async } from '@angular/core/testing'; +import { AppComponent } from './app.component'; +import { RouterTestingModule } from '@angular/router/testing'; + +describe('AppComponent', () => { + beforeEach(async(() => { + TestBed.configureTestingModule({ + imports: [RouterTestingModule], + declarations: [AppComponent], + }).compileComponents(); + })); + + it('should create the app', () => { + const fixture = TestBed.createComponent(AppComponent); + const app = fixture.componentInstance; + expect(app).toBeTruthy(); + }); + + it(`should have as title 'star-wars'`, () => { + const fixture = TestBed.createComponent(AppComponent); + const app = fixture.componentInstance; + expect(app.title).toEqual('star-wars'); + }); + + it('should render title', () => { + const fixture = TestBed.createComponent(AppComponent); + fixture.detectChanges(); + const compiled = fixture.nativeElement; + expect(compiled.querySelector('h1').textContent).toContain( + 'Welcome to star-wars!' + ); + }); +}); diff --git a/apps/star-wars/src/app/app.component.ts b/apps/star-wars/src/app/app.component.ts new file mode 100644 index 0000000..2a43d36 --- /dev/null +++ b/apps/star-wars/src/app/app.component.ts @@ -0,0 +1,10 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'xng-root', + templateUrl: './app.component.html', + styleUrls: ['./app.component.scss'], +}) +export class AppComponent { + title = 'star-wars'; +} diff --git a/apps/star-wars/src/app/app.module.ts b/apps/star-wars/src/app/app.module.ts new file mode 100644 index 0000000..e79dff5 --- /dev/null +++ b/apps/star-wars/src/app/app.module.ts @@ -0,0 +1,16 @@ +import { BrowserModule } from '@angular/platform-browser'; +import { NgModule } from '@angular/core'; + +import { AppComponent } from './app.component'; +import { RouterModule } from '@angular/router'; + +@NgModule({ + declarations: [AppComponent], + imports: [ + BrowserModule, + RouterModule.forRoot([], { initialNavigation: 'enabled' }), + ], + providers: [], + bootstrap: [AppComponent], +}) +export class AppModule {} diff --git a/apps/star-wars/src/assets/.gitkeep b/apps/star-wars/src/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/apps/star-wars/src/environments/environment.prod.ts b/apps/star-wars/src/environments/environment.prod.ts new file mode 100644 index 0000000..c966979 --- /dev/null +++ b/apps/star-wars/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true, +}; diff --git a/apps/star-wars/src/environments/environment.ts b/apps/star-wars/src/environments/environment.ts new file mode 100644 index 0000000..99c3763 --- /dev/null +++ b/apps/star-wars/src/environments/environment.ts @@ -0,0 +1,16 @@ +// This file can be replaced during build by using the `fileReplacements` array. +// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`. +// The list of file replacements can be found in `angular.json`. + +export const environment = { + production: false, +}; + +/* + * For easier debugging in development mode, you can import the following file + * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. + * + * This import should be commented out in production mode because it will have a negative impact + * on performance if an error is thrown. + */ +// import 'zone.js/dist/zone-error'; // Included with Angular CLI. diff --git a/apps/star-wars/src/favicon.ico b/apps/star-wars/src/favicon.ico new file mode 100644 index 0000000..317ebcb Binary files /dev/null and b/apps/star-wars/src/favicon.ico differ diff --git a/apps/star-wars/src/index.html b/apps/star-wars/src/index.html new file mode 100644 index 0000000..90443e0 --- /dev/null +++ b/apps/star-wars/src/index.html @@ -0,0 +1,13 @@ + + + + + StarWars + + + + + + + + diff --git a/apps/star-wars/src/main.ts b/apps/star-wars/src/main.ts new file mode 100644 index 0000000..d9a2e7e --- /dev/null +++ b/apps/star-wars/src/main.ts @@ -0,0 +1,13 @@ +import { enableProdMode } from '@angular/core'; +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; + +import { AppModule } from './app/app.module'; +import { environment } from './environments/environment'; + +if (environment.production) { + enableProdMode(); +} + +platformBrowserDynamic() + .bootstrapModule(AppModule) + .catch((err) => console.error(err)); diff --git a/apps/star-wars/src/polyfills.ts b/apps/star-wars/src/polyfills.ts new file mode 100644 index 0000000..e49856e --- /dev/null +++ b/apps/star-wars/src/polyfills.ts @@ -0,0 +1,62 @@ +/** + * This file includes polyfills needed by Angular and is loaded before the app. + * You can add your own extra polyfills to this file. + * + * This file is divided into 2 sections: + * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. + * 2. Application imports. Files imported after ZoneJS that should be loaded before your main + * file. + * + * The current setup is for so-called "evergreen" browsers; the last versions of browsers that + * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera), + * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile. + * + * Learn more in https://angular.io/guide/browser-support + */ + +/*************************************************************************************************** + * BROWSER POLYFILLS + */ + +/** IE10 and IE11 requires the following for NgClass support on SVG elements */ +// import 'classlist.js'; // Run `npm install --save classlist.js`. + +/** + * Web Animations `@angular/platform-browser/animations` + * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari. + * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0). + */ +// import 'web-animations-js'; // Run `npm install --save web-animations-js`. + +/** + * By default, zone.js will patch all possible macroTask and DomEvents + * user can disable parts of macroTask/DomEvents patch by setting following flags + * because those flags need to be set before `zone.js` being loaded, and webpack + * will put import in the top of bundle, so user need to create a separate file + * in this directory (for example: zone-flags.ts), and put the following flags + * into that file, and then add the following code before importing zone.js. + * import './zone-flags'; + * + * The flags allowed in zone-flags.ts are listed here. + * + * The following flags will work for all browsers. + * + * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame + * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick + * (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames + * + * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js + * with the following flag, it will bypass `zone.js` patch for IE/Edge + * + * (window as any).__Zone_enable_cross_context_check = true; + * + */ + +/*************************************************************************************************** + * Zone JS is required by default for Angular itself. + */ +import 'zone.js/dist/zone'; // Included with Angular CLI. + +/*************************************************************************************************** + * APPLICATION IMPORTS + */ diff --git a/apps/star-wars/src/styles.scss b/apps/star-wars/src/styles.scss new file mode 100644 index 0000000..90d4ee0 --- /dev/null +++ b/apps/star-wars/src/styles.scss @@ -0,0 +1 @@ +/* You can add global styles to this file, and also import other style files */ diff --git a/apps/star-wars/src/test-setup.ts b/apps/star-wars/src/test-setup.ts new file mode 100644 index 0000000..8d88704 --- /dev/null +++ b/apps/star-wars/src/test-setup.ts @@ -0,0 +1 @@ +import 'jest-preset-angular'; diff --git a/apps/star-wars/tsconfig.app.json b/apps/star-wars/tsconfig.app.json new file mode 100644 index 0000000..053f28e --- /dev/null +++ b/apps/star-wars/tsconfig.app.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "types": [] + }, + "files": ["src/main.ts", "src/polyfills.ts"], + "include": ["src/**/*.d.ts"], + "exclude": ["src/test-setup.ts", "**/*.spec.ts"] +} diff --git a/apps/star-wars/tsconfig.json b/apps/star-wars/tsconfig.json new file mode 100644 index 0000000..89375a3 --- /dev/null +++ b/apps/star-wars/tsconfig.json @@ -0,0 +1,6 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "types": ["node", "jest"] + } +} diff --git a/apps/star-wars/tsconfig.spec.json b/apps/star-wars/tsconfig.spec.json new file mode 100644 index 0000000..cfff29a --- /dev/null +++ b/apps/star-wars/tsconfig.spec.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../dist/out-tsc", + "module": "commonjs", + "types": ["jest", "node"] + }, + "files": ["src/test-setup.ts"], + "include": ["**/*.spec.ts", "**/*.d.ts"] +} diff --git a/apps/star-wars/tslint.json b/apps/star-wars/tslint.json new file mode 100644 index 0000000..9b71f28 --- /dev/null +++ b/apps/star-wars/tslint.json @@ -0,0 +1,10 @@ +{ + "extends": "../../tslint.json", + "rules": { + "directive-selector": [true, "attribute", "xng", "camelCase"], + "component-selector": [true, "element", "xng", "kebab-case"] + }, + "linterOptions": { + "exclude": ["!**/*"] + } +} diff --git a/nx.json b/nx.json index ab8c72e..e3cdb3c 100644 --- a/nx.json +++ b/nx.json @@ -31,6 +31,13 @@ }, "xng-breadcrumb": { "tags": ["xng-breadcrumb"] + }, + "star-wars": { + "tags": [] + }, + "star-wars-e2e": { + "tags": [], + "implicitDependencies": ["star-wars"] } } }