Skip to content

Commit 5186af3

Browse files
committed
feat: builder-io integration
1 parent 0804e17 commit 5186af3

23 files changed

+546
-39
lines changed

angular.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,52 @@
242242
},
243243
"tags": []
244244
},
245+
"route-pages-blog-page": {
246+
"projectType": "library",
247+
"root": "libs/route-pages/blog-page",
248+
"sourceRoot": "libs/route-pages/blog-page/src",
249+
"prefix": "valor-software-site-base",
250+
"architect": {
251+
"build": {
252+
"builder": "@nrwl/angular:ng-packagr-lite",
253+
"outputs": [
254+
"dist/libs/route-pages/blog-page"
255+
],
256+
"options": {
257+
"project": "libs/route-pages/blog-page/ng-package.json"
258+
},
259+
"configurations": {
260+
"production": {
261+
"tsConfig": "libs/route-pages/blog-page/tsconfig.lib.prod.json"
262+
},
263+
"development": {
264+
"tsConfig": "libs/route-pages/blog-page/tsconfig.lib.json"
265+
}
266+
},
267+
"defaultConfiguration": "production"
268+
},
269+
"test": {
270+
"builder": "@nrwl/jest:jest",
271+
"outputs": [
272+
"coverage/libs/route-pages/ashes-page"
273+
],
274+
"options": {
275+
"jestConfig": "libs/route-pages/blog-page/jest.config.ts",
276+
"passWithNoTests": true
277+
}
278+
},
279+
"lint": {
280+
"builder": "@nrwl/linter:eslint",
281+
"options": {
282+
"lintFilePatterns": [
283+
"libs/route-pages/blog-page/**/*.ts",
284+
"libs/route-pages/blog-page/**/*.html"
285+
]
286+
}
287+
}
288+
},
289+
"tags": []
290+
},
245291
"route-pages-blog-portfolio": {
246292
"projectType": "library",
247293
"root": "libs/route-pages/blog-portfolio",

apps/valor-software-site/src/app/app.module.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { NgModule } from '@angular/core';
22
import { BrowserModule } from '@angular/platform-browser';
33
import { RouterModule } from '@angular/router';
4+
45
import { routes } from './app.routing';
56
import { AppComponent } from './app.component';
67
import {
@@ -38,6 +39,9 @@ import { NotFoundComponent } from './404.component';
3839
{ provide: OLD_ROUTES_FROM_OLD_SITE, useValue: linksFromOldSite },
3940
],
4041
bootstrap: [AppComponent],
42+
exports: [
43+
NotFoundComponent
44+
]
4145
})
4246
export class AppModule {
4347
}

apps/valor-software-site/src/app/app.routing.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ export const routes: Routes = [
3838
path: 'privacy-policy',
3939
loadChildren: () => import('@valor-software/privacy-policy-page').then(m => m.PrivacyPolicyPageModule)
4040
},
41+
{
42+
path: 'blog-page',
43+
loadChildren: () => import('@valor-software/blog-page').then(m => m.BlogPageModule)
44+
},
4145
{
4246
path: 'all-vacancies',
4347
redirectTo: 'careers'

apps/valor-software-site/src/index.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@
3434
gtag('js', new Date());
3535
</script>
3636
<script type="text/javascript">
37-
window.onload = function () {
38-
if (window.self !== window.top) {
39-
document.body.innerHTML = `
40-
<div>
41-
<h1>If you see this page, the valor site link you have clicked on is under Clickjacking security attack.</h1>
42-
<h2>Please inform our team with the reference of the application from where you clicked this link.</h2>
43-
<h2>Click <a href="https://valor-software.com" title='Valor site' target='blank'>here</a> to access valor site safely.</h2>
44-
</div>
45-
`;
46-
}
47-
};
37+
// window.onload = function () {
38+
// if (window.self !== window.top) {
39+
// document.body.innerHTML = `
40+
// <div>
41+
// <h1>If you see this page, the valor site link you have clicked on is under Clickjacking security attack.</h1>
42+
// <h2>Please inform our team with the reference of the application from where you clicked this link.</h2>
43+
// <h2>Click <a href="https://valor-software.com" title='Valor site' target='blank'>here</a> to access valor site safely.</h2>
44+
// </div>
45+
// `;
46+
// }
47+
// };
4848
</script>
4949
</head>
5050
<body>
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"extends": [
3+
"../../../.eslintrc.json"
4+
],
5+
"ignorePatterns": [
6+
"!**/*"
7+
],
8+
"overrides": [
9+
{
10+
"files": [
11+
"*.ts"
12+
],
13+
"extends": [
14+
"plugin:@nrwl/nx/angular",
15+
"plugin:@angular-eslint/template/process-inline-templates"
16+
],
17+
"rules": {
18+
"@angular-eslint/directive-selector": [
19+
"error",
20+
{
21+
"type": "attribute",
22+
"prefix": "valorSoftwareSiteBase",
23+
"style": "camelCase"
24+
}
25+
],
26+
"@angular-eslint/component-selector": [
27+
"error",
28+
{
29+
"type": "element",
30+
"prefix": "valor-software-site-base",
31+
"style": "kebab-case"
32+
}
33+
]
34+
}
35+
},
36+
{
37+
"files": [
38+
"*.html"
39+
],
40+
"extends": [
41+
"plugin:@nrwl/nx/angular-template"
42+
],
43+
"rules": {}
44+
}
45+
]
46+
}

libs/route-pages/blog-page/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# route-pages-blog-page
2+
3+
This library was generated with [Nx](https://nx.dev).
4+
5+
6+
## Running unit tests
7+
8+
Run `nx test route-pages-blog-page` to execute the unit tests.
9+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/* eslint-disable */
2+
export default {
3+
displayName: 'route-pages-blog-page',
4+
preset: '../../../jest.preset.js',
5+
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
6+
globals: {
7+
'ts-jest': {
8+
tsconfig: '<rootDir>/tsconfig.spec.json',
9+
stringifyContentPathRegex: '\\.(html|svg)$',
10+
}
11+
},
12+
coverageDirectory: '../../../coverage/libs/route-pages/blog-page',
13+
transform: {
14+
'^.+\\.(ts|mjs|js|html)$': 'jest-preset-angular'
15+
},
16+
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
17+
snapshotSerializers: [
18+
'jest-preset-angular/build/serializers/no-ng-attributes',
19+
'jest-preset-angular/build/serializers/ng-snapshot',
20+
'jest-preset-angular/build/serializers/html-comment',
21+
]
22+
};
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "../../../node_modules/ng-packagr/ng-package.schema.json",
3+
"dest": "../../../dist/libs/route-pages/blog-page",
4+
"lib": {
5+
"entryFile": "src/index.ts"
6+
}
7+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "@valor-software/blog-page",
3+
"version": "0.0.1",
4+
"peerDependencies": {
5+
"@angular/common": "^12.2.0",
6+
"@angular/core": "^12.2.0"
7+
},
8+
"dependencies": {
9+
"tslib": "^2.3.0"
10+
}
11+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './lib/blog-page.module';
2+
export * from './lib/components';

0 commit comments

Comments
 (0)