renamed red-ui-app to red-ui
This commit is contained in:
parent
1a036f65d2
commit
aea7dcd435
@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"fileServerFolder": ".",
|
|
||||||
"fixturesFolder": "./src/fixtures",
|
|
||||||
"integrationFolder": "./src/integration",
|
|
||||||
"modifyObstructiveCode": false,
|
|
||||||
"pluginsFile": "./src/plugins/index",
|
|
||||||
"supportFile": "./src/support/index.ts",
|
|
||||||
"video": true,
|
|
||||||
"videosFolder": "../../dist/cypress/apps/red-ui-app-e2e/videos",
|
|
||||||
"screenshotsFolder": "../../dist/cypress/apps/red-ui-app-e2e/screenshots",
|
|
||||||
"chromeWebSecurity": false
|
|
||||||
}
|
|
||||||
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Using fixtures to represent data",
|
|
||||||
"email": "hello@cypress.io"
|
|
||||||
}
|
|
||||||
@ -1,13 +0,0 @@
|
|||||||
import { getGreeting } from '../support/app.po';
|
|
||||||
|
|
||||||
describe('red-ui-app', () => {
|
|
||||||
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 red-ui-app!');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
@ -1,22 +0,0 @@
|
|||||||
// ***********************************************************
|
|
||||||
// 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));
|
|
||||||
};
|
|
||||||
@ -1 +0,0 @@
|
|||||||
export const getGreeting = () => cy.get('h1');
|
|
||||||
@ -1,31 +0,0 @@
|
|||||||
// ***********************************************
|
|
||||||
// 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<Subject> {
|
|
||||||
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) => { ... })
|
|
||||||
@ -1,17 +0,0 @@
|
|||||||
// ***********************************************************
|
|
||||||
// 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';
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "./tsconfig.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"sourceMap": false,
|
|
||||||
"outDir": "../../dist/out-tsc",
|
|
||||||
"allowJs": true,
|
|
||||||
"types": ["cypress", "node"]
|
|
||||||
},
|
|
||||||
"include": ["src/**/*.ts", "src/**/*.js"]
|
|
||||||
}
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../tsconfig.base.json",
|
|
||||||
"files": [],
|
|
||||||
"include": [],
|
|
||||||
"references": [
|
|
||||||
{
|
|
||||||
"path": "./tsconfig.e2e.json"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "../../tslint.json",
|
|
||||||
"linterOptions": { "exclude": ["!**/*"] },
|
|
||||||
"rules": {}
|
|
||||||
}
|
|
||||||
@ -1,5 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'red-ui-app',
|
name: 'red-ui',
|
||||||
preset: '../../jest.config.js',
|
preset: '../../jest.config.js',
|
||||||
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
|
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
|
||||||
globals: {
|
globals: {
|
||||||
@ -12,7 +12,7 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
coverageDirectory: '../../coverage/apps/red-ui-app',
|
coverageDirectory: '../../coverage/apps/red-ui',
|
||||||
snapshotSerializers: [
|
snapshotSerializers: [
|
||||||
'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js',
|
'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js',
|
||||||
'jest-preset-angular/build/AngularSnapshotSerializer.js',
|
'jest-preset-angular/build/AngularSnapshotSerializer.js',
|
||||||
@ -16,10 +16,10 @@ describe('AppComponent', () => {
|
|||||||
expect(app).toBeTruthy();
|
expect(app).toBeTruthy();
|
||||||
});
|
});
|
||||||
|
|
||||||
it(`should have as title 'red-ui-app'`, () => {
|
it(`should have as title 'red-ui'`, () => {
|
||||||
const fixture = TestBed.createComponent(AppComponent);
|
const fixture = TestBed.createComponent(AppComponent);
|
||||||
const app = fixture.componentInstance;
|
const app = fixture.componentInstance;
|
||||||
expect(app.title).toEqual('red-ui-app');
|
expect(app.title).toEqual('red-ui');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should render title', () => {
|
it('should render title', () => {
|
||||||
@ -27,7 +27,7 @@ describe('AppComponent', () => {
|
|||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
const compiled = fixture.nativeElement;
|
const compiled = fixture.nativeElement;
|
||||||
expect(compiled.querySelector('h1').textContent).toContain(
|
expect(compiled.querySelector('h1').textContent).toContain(
|
||||||
'Welcome to red-ui-app!'
|
'Welcome to red-ui!'
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -6,5 +6,5 @@ import { Component } from '@angular/core';
|
|||||||
styleUrls: ['./app.component.scss'],
|
styleUrls: ['./app.component.scss'],
|
||||||
})
|
})
|
||||||
export class AppComponent {
|
export class AppComponent {
|
||||||
title = 'red-ui-app';
|
title = 'red-ui';
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@ -61,7 +61,7 @@ public class PlanSpec {
|
|||||||
public Plan createDockerBuildPlan() {
|
public Plan createDockerBuildPlan() {
|
||||||
return new Plan(project(), "Redaction UI", new BambooKey("UI"))
|
return new Plan(project(), "Redaction UI", new BambooKey("UI"))
|
||||||
.description("Docker build for Redaction UI.").stages(
|
.description("Docker build for Redaction UI.").stages(
|
||||||
new Stage("Build Stage").jobs(creatGinCloudPlatformImagesJob("red-ui-app")))
|
new Stage("Build Stage").jobs(creatGinCloudPlatformImagesJob("red-ui")))
|
||||||
.stages(new Stage("Upstream Push Stage").jobs(creatGinCloudPlatformUpstreamJob()))
|
.stages(new Stage("Upstream Push Stage").jobs(creatGinCloudPlatformUpstreamJob()))
|
||||||
.linkedRepositories("RED / ui").triggers(new BitbucketServerTrigger()).planBranchManagement(
|
.linkedRepositories("RED / ui").triggers(new BitbucketServerTrigger()).planBranchManagement(
|
||||||
new PlanBranchManagement().createForVcsBranch()
|
new PlanBranchManagement().createForVcsBranch()
|
||||||
|
|||||||
@ -15,7 +15,7 @@ COPY . .
|
|||||||
## Build the angular app in production mode and store the artifacts in dist folder
|
## Build the angular app in production mode and store the artifacts in dist folder
|
||||||
RUN yarn lint
|
RUN yarn lint
|
||||||
RUN npm version patch --no-git-tag-version
|
RUN npm version patch --no-git-tag-version
|
||||||
RUN yarn build --prod --project=red-ui-app
|
RUN yarn build --prod --project=red-ui
|
||||||
### STAGE 2: Setup ###
|
### STAGE 2: Setup ###
|
||||||
|
|
||||||
FROM nginx:1.17.6-alpine
|
FROM nginx:1.17.6-alpine
|
||||||
@ -27,6 +27,6 @@ COPY docker/common/nginx/default.conf /etc/nginx/conf.d/
|
|||||||
RUN rm -rf /usr/share/nginx/html/*
|
RUN rm -rf /usr/share/nginx/html/*
|
||||||
|
|
||||||
## From ‘builder’ stage copy over the artifacts in dist folder to default nginx public folder
|
## From ‘builder’ stage copy over the artifacts in dist folder to default nginx public folder
|
||||||
COPY --from=builder /ng-app/dist/apps/red-ui-app /usr/share/nginx/html
|
COPY --from=builder /ng-app/dist/apps/red-ui /usr/share/nginx/html
|
||||||
COPY docker/red-ui-app/docker-entrypoint.sh /
|
COPY docker/red-ui/docker-entrypoint.sh /
|
||||||
CMD ["/docker-entrypoint.sh"]
|
CMD ["/docker-entrypoint.sh"]
|
||||||
6
nx.json
6
nx.json
@ -22,12 +22,8 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"projects": {
|
"projects": {
|
||||||
"red-ui-app": {
|
"red-ui": {
|
||||||
"tags": []
|
"tags": []
|
||||||
},
|
|
||||||
"red-ui-app-e2e": {
|
|
||||||
"tags": [],
|
|
||||||
"implicitDependencies": ["red-ui-app"]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,39 +1,39 @@
|
|||||||
{
|
{
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"projects": {
|
"projects": {
|
||||||
"red-ui-app": {
|
"red-ui": {
|
||||||
"projectType": "application",
|
"projectType": "application",
|
||||||
"schematics": {
|
"schematics": {
|
||||||
"@schematics/angular:component": {
|
"@schematics/angular:component": {
|
||||||
"style": "scss"
|
"style": "scss"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "apps/red-ui-app",
|
"root": "apps/red-ui",
|
||||||
"sourceRoot": "apps/red-ui-app/src",
|
"sourceRoot": "apps/red-ui/src",
|
||||||
"prefix": "redaction",
|
"prefix": "redaction",
|
||||||
"architect": {
|
"architect": {
|
||||||
"build": {
|
"build": {
|
||||||
"builder": "@angular-devkit/build-angular:browser",
|
"builder": "@angular-devkit/build-angular:browser",
|
||||||
"options": {
|
"options": {
|
||||||
"outputPath": "dist/apps/red-ui-app",
|
"outputPath": "dist/apps/red-ui",
|
||||||
"index": "apps/red-ui-app/src/index.html",
|
"index": "apps/red-ui/src/index.html",
|
||||||
"main": "apps/red-ui-app/src/main.ts",
|
"main": "apps/red-ui/src/main.ts",
|
||||||
"polyfills": "apps/red-ui-app/src/polyfills.ts",
|
"polyfills": "apps/red-ui/src/polyfills.ts",
|
||||||
"tsConfig": "apps/red-ui-app/tsconfig.app.json",
|
"tsConfig": "apps/red-ui/tsconfig.app.json",
|
||||||
"aot": true,
|
"aot": true,
|
||||||
"assets": [
|
"assets": [
|
||||||
"apps/red-ui-app/src/favicon.ico",
|
"apps/red-ui/src/favicon.ico",
|
||||||
"apps/red-ui-app/src/assets"
|
"apps/red-ui/src/assets"
|
||||||
],
|
],
|
||||||
"styles": ["apps/red-ui-app/src/styles.scss"],
|
"styles": ["apps/red-ui/src/styles.scss"],
|
||||||
"scripts": []
|
"scripts": []
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"production": {
|
"production": {
|
||||||
"fileReplacements": [
|
"fileReplacements": [
|
||||||
{
|
{
|
||||||
"replace": "apps/red-ui-app/src/environments/environment.ts",
|
"replace": "apps/red-ui/src/environments/environment.ts",
|
||||||
"with": "apps/red-ui-app/src/environments/environment.prod.ts"
|
"with": "apps/red-ui/src/environments/environment.prod.ts"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"optimization": true,
|
"optimization": true,
|
||||||
@ -62,65 +62,38 @@
|
|||||||
"serve": {
|
"serve": {
|
||||||
"builder": "@angular-devkit/build-angular:dev-server",
|
"builder": "@angular-devkit/build-angular:dev-server",
|
||||||
"options": {
|
"options": {
|
||||||
"browserTarget": "red-ui-app:build"
|
"browserTarget": "red-ui:build"
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
"production": {
|
"production": {
|
||||||
"browserTarget": "red-ui-app:build:production"
|
"browserTarget": "red-ui:build:production"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"extract-i18n": {
|
"extract-i18n": {
|
||||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||||
"options": {
|
"options": {
|
||||||
"browserTarget": "red-ui-app:build"
|
"browserTarget": "red-ui:build"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"builder": "@angular-devkit/build-angular:tslint",
|
"builder": "@angular-devkit/build-angular:tslint",
|
||||||
"options": {
|
"options": {
|
||||||
"tsConfig": [
|
"tsConfig": [
|
||||||
"apps/red-ui-app/tsconfig.app.json",
|
"apps/red-ui/tsconfig.app.json",
|
||||||
"apps/red-ui-app/tsconfig.spec.json"
|
"apps/red-ui/tsconfig.spec.json"
|
||||||
],
|
],
|
||||||
"exclude": ["**/node_modules/**", "!apps/red-ui-app/**/*"]
|
"exclude": ["**/node_modules/**", "!apps/red-ui/**/*"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"test": {
|
"test": {
|
||||||
"builder": "@nrwl/jest:jest",
|
"builder": "@nrwl/jest:jest",
|
||||||
"options": {
|
"options": {
|
||||||
"jestConfig": "apps/red-ui-app/jest.config.js",
|
"jestConfig": "apps/red-ui/jest.config.js",
|
||||||
"passWithNoTests": true
|
"passWithNoTests": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"red-ui-app-e2e": {
|
|
||||||
"root": "apps/red-ui-app-e2e",
|
|
||||||
"sourceRoot": "apps/red-ui-app-e2e/src",
|
|
||||||
"projectType": "application",
|
|
||||||
"architect": {
|
|
||||||
"e2e": {
|
|
||||||
"builder": "@nrwl/cypress:cypress",
|
|
||||||
"options": {
|
|
||||||
"cypressConfig": "apps/red-ui-app-e2e/cypress.json",
|
|
||||||
"tsConfig": "apps/red-ui-app-e2e/tsconfig.e2e.json",
|
|
||||||
"devServerTarget": "red-ui-app:serve"
|
|
||||||
},
|
|
||||||
"configurations": {
|
|
||||||
"production": {
|
|
||||||
"devServerTarget": "red-ui-app:serve:production"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"lint": {
|
|
||||||
"builder": "@angular-devkit/build-angular:tslint",
|
|
||||||
"options": {
|
|
||||||
"tsConfig": ["apps/red-ui-app-e2e/tsconfig.e2e.json"],
|
|
||||||
"exclude": ["**/node_modules/**", "!apps/red-ui-app-e2e/**/*"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"cli": {
|
"cli": {
|
||||||
@ -135,5 +108,5 @@
|
|||||||
"unitTestRunner": "jest"
|
"unitTestRunner": "jest"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"defaultProject": "red-ui-app"
|
"defaultProject": "red-ui"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user