Skip to content

Commit de09e0c

Browse files
committed
feat: add-recognize-proxy
1 parent b28b6b0 commit de09e0c

28 files changed

Lines changed: 137592 additions & 0 deletions
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import baseConfig from '../../eslint.config.mjs';
2+
3+
export default [
4+
{
5+
ignores: [
6+
'node_modules',
7+
'*.md',
8+
'LICENSE',
9+
'.swcrc',
10+
'.babelrc',
11+
'.env*',
12+
'.bin',
13+
'dist',
14+
'.eslintignore',
15+
'*.html',
16+
'*.svg',
17+
'*.css',
18+
'public',
19+
'*.json',
20+
'*.d.ts',
21+
],
22+
},
23+
...baseConfig,
24+
];

e2e/recognize-app/package.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "@forgerock/recognize-app",
3+
"version": "0.0.1",
4+
"private": true,
5+
"scripts": {
6+
"build": "pnpm nx nxBuild",
7+
"lint": "pnpm nx nxLint",
8+
"preview": "pnpm nx nxPreview",
9+
"serve": "pnpm nx nxServe"
10+
},
11+
"dependencies": {
12+
"@forgerock/journey-client": "workspace:*",
13+
"@forgerock/recognize": "workspace:*"
14+
},
15+
"nx": {
16+
"tags": ["scope:e2e"]
17+
}
18+
}

e2e/recognize-app/src/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Recognize E2E Test Index | Ping Identity JavaScript SDK</title>
7+
</head>
8+
<body>
9+
<div id="app">
10+
<h2>Recognize E2E Test Index | Ping Identity JavaScript SDK</h2>
11+
</div>
12+
<script type="module" src="index.ts"></script>
13+
</body>
14+
</html>

e2e/recognize-app/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import './styles.css';

e2e/recognize-app/src/styles.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
body {
2+
font-family:
3+
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
4+
margin: 0;
5+
padding: 2rem;
6+
}
7+
8+
#app {
9+
max-width: 960px;
10+
margin: 0 auto;
11+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"extends": "../../tsconfig.base.json",
3+
"compilerOptions": {
4+
"outDir": "dist",
5+
"types": ["node"],
6+
"rootDir": "src",
7+
"module": "esnext",
8+
"moduleResolution": "bundler",
9+
"tsBuildInfoFile": "dist/tsconfig.app.tsbuildinfo"
10+
},
11+
"exclude": [
12+
"out-tsc",
13+
"dist",
14+
"src/**/*.spec.ts",
15+
"src/**/*.test.ts",
16+
"eslint.config.js",
17+
"eslint.config.cjs",
18+
"eslint.config.mjs"
19+
],
20+
"include": ["src/**/*.ts"],
21+
"references": [
22+
{
23+
"path": "../../packages/recognize/tsconfig.lib.json"
24+
},
25+
{
26+
"path": "../../packages/journey-client/tsconfig.lib.json"
27+
}
28+
]
29+
}

e2e/recognize-app/tsconfig.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "../../tsconfig.base.json",
3+
"files": [],
4+
"include": [],
5+
"references": [
6+
{
7+
"path": "./tsconfig.app.json"
8+
}
9+
]
10+
}

e2e/recognize-app/vite.config.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { defineConfig } from 'vite';
2+
import { dirname, resolve } from 'path';
3+
import { fileURLToPath } from 'url';
4+
5+
const __dirname = dirname(fileURLToPath(import.meta.url));
6+
7+
export default defineConfig(() => ({
8+
root: __dirname + '/src',
9+
cacheDir: '../../node_modules/.vite/e2e/recognize-app',
10+
publicDir: __dirname + '/public',
11+
server: {
12+
port: 8443,
13+
host: 'localhost',
14+
},
15+
preview: {
16+
port: 8443,
17+
host: 'localhost',
18+
},
19+
plugins: [],
20+
build: {
21+
outDir: __dirname + '/dist',
22+
emptyOutDir: true,
23+
reportCompressedSize: true,
24+
rollupOptions: {
25+
input: {
26+
main: resolve(__dirname + '/src', 'index.html'),
27+
},
28+
output: {
29+
entryFileNames: '[name]/main.js',
30+
},
31+
},
32+
},
33+
}));

packages/recognize/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# recognize
2+
3+
This library was generated with [Nx](https://nx.dev).
4+
5+
## Building
6+
7+
Run `nx build recognize` to build the library.
8+
9+
## Running unit tests
10+
11+
Run `nx test recognize` to execute the unit tests via [Vitest](https://vitest.dev/).
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import baseConfig from '../../eslint.config.mjs';
2+
3+
export default [
4+
...baseConfig,
5+
{
6+
files: ['**/*.json'],
7+
rules: {
8+
'@nx/dependency-checks': [
9+
'error',
10+
{
11+
ignoredFiles: [
12+
'{projectRoot}/eslint.config.{js,cjs,mjs,ts,cts,mts}',
13+
'{projectRoot}/vite.config.{js,ts,mjs,mts}',
14+
],
15+
},
16+
],
17+
},
18+
languageOptions: {
19+
parser: await import('jsonc-eslint-parser'),
20+
},
21+
},
22+
{
23+
ignores: ['**/out-tsc'],
24+
},
25+
];

0 commit comments

Comments
 (0)