Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
env:
NX_CLOUD_ENCRYPTION_KEY: ${{ secrets.NX_CLOUD_ENCRYPTION_KEY }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
NX_CLOUD_DISTRIBUTED_EXECUTION: true
jobs:
pr:
if: ${{github.event.pull_request.head.repo.full_name == github.repository}}
Expand All @@ -26,7 +25,7 @@ jobs:

# This line enables distribution
# The "--stop-agents-after" is optional, but allows idle agents to shut down once the "e2e-ci" targets have been requested
- run: pnpm dlx nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="e2e-ci" --verbose
- run: pnpm dlx nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="e2e-ci"

- run: pnpm exec playwright install

Expand All @@ -35,7 +34,7 @@ jobs:
- run: git branch --track develop origin/develop

- run: pnpm exec nx-cloud record -- nx format:check --verbose
- run: pnpm exec nx affected -t build lint test docs e2e-ci --verbose
- run: pnpm exec nx affected -t build lint test docs e2e-ci

- uses: codecov/codecov-action@v5
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_URL_BETA: ${{ secrets.SLACK_WEBHOOK_URL_BETA }}
NX_CLOUD_DISTRIBUTED_EXECUTION: true
HUSKY: 0
CI: true

Expand Down
2 changes: 1 addition & 1 deletion e2e/autoscript-apps/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'vite';
import * as path from 'path';
import { defineConfig } from 'vite';

const pages = [
'authn-basic',
Expand Down
2 changes: 1 addition & 1 deletion e2e/mock-api-v2/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default defineConfig({
cache: {
dir: '../../node_modules/.vitest',
},
watch: !process.env['CI'],
watch: false,
environment: 'jsdom',
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],

Expand Down
33 changes: 18 additions & 15 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"sharedGlobals": ["{workspaceRoot}/.github/workflows/ci.yml"],
"sharedGlobals": ["{workspaceRoot}/.github/workflows/*.yml"],
"production": [
"default",
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
"!{projectRoot}/tsconfig.spec.json",
"!{projectRoot}/src/test-setup.[jt]s",
"!{projectRoot}/test-setup.[jt]s"
],
"noMarkdown": ["!{projectRoot}/**/*.md"]
]
},
"targetDefaults": {
"e2e-ci": {
"dependsOn": ["^build"]
},
"nx-release-publish": {
"options": {
"packageRoot": "packages/{projectName}"
Expand All @@ -28,45 +30,44 @@
},
"e2e": {
"dependsOn": ["^build"],
"inputs": ["noMarkdown", "^noMarkdown"],
"cache": true
},
"test": {
"dependsOn": ["^build"]
},
"build": {
"dependsOn": ["^build"],
"inputs": ["noMarkdown", "^noMarkdown"],
"inputs": ["production", "^production"],
"cache": true,
"outputs": ["{projectRoot}/dist"]
},
"@nx/vite:test": {
"dependsOn": ["^test"],
"inputs": ["noMarkdown", "^noMarkdown"],
"dependsOn": ["build", "^test"],
"outputs": ["{projectRoot}/coverage"],
"cache": true
},
"@nx/eslint:lint": {
"dependsOn": ["^build", "^lint"],
"inputs": ["noMarkdown", "^noMarkdown"],
"cache": true
},
"@nx/vite:build": {
"dependsOn": ["^build"],
"inputs": ["production", "^production"],
"cache": true,
"inputs": ["noMarkdown", "^noMarkdown"],
"outputs": ["{projectRoot}/dist"]
},
"@nx/playwright:run": {
"dependsOn": ["^build"],
"inputs": ["noMarkdown", "^noMarkdown"],
"cache": true
},
"@nx/esbuild:esbuild": {
"inputs": ["production", "^production"],
"dependsOn": ["^build"],
"cache": true,
"inputs": ["noMarkdown", "^noMarkdown"]
"cache": true
},
"e2e-ci--**/*": {
"inputs": ["default", "^default"],
"dependsOn": ["^build"],
"inputs": ["noMarkdown", "^noMarkdown"],
"cache": true
},
"@nx/js:tsc": {
Expand Down Expand Up @@ -108,7 +109,8 @@
"options": {
"ciTargetName": "e2e-ci",
"targetName": "e2e"
}
},
"include": ["e2e/**/**/*"]
},
{
"plugin": "@nx/eslint/plugin",
Expand Down Expand Up @@ -149,7 +151,8 @@
"previewTargetName": "vite:preview",
"serveStaticTargetName": "vite:serve-static",
"typecheckTargetName": "vite:typecheck"
}
},
"include": ["packages/**/*", "e2e/**/*"]
}
],
"defaultProject": "javascript-sdk",
Expand Down
10 changes: 0 additions & 10 deletions packages/javascript-sdk/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@
"docs": {
"command": "pnpm typedoc --options {projectRoot}/typedoc.json"
},
"build": {
"inputs": [
"default",
"^default",
{
"externalDependencies": ["vite"]
}
],
"outputs": ["{projectRoot}/dist"]
},
"lint": {
"options": {
"fix": true,
Expand Down
4 changes: 2 additions & 2 deletions packages/javascript-sdk/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { copyFileSync } from 'fs';
import { defineConfig } from 'vite';
import dts from 'vite-plugin-dts';
import { copyFileSync } from 'fs';
import pkg from './package.json';

export default defineConfig({
Expand Down Expand Up @@ -48,7 +48,7 @@ export default defineConfig({
globals: true,
environment: 'jsdom',
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}', 'tests/**/*.test.ts'],
watch: !process.env['CI'],
watch: false,
reporters: ['default'],
setupFiles: ['./vitest.setup.ts'],
coverage: {
Expand Down
21 changes: 21 additions & 0 deletions packages/ping-protect/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019-2025 Ping Identity Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
4 changes: 4 additions & 0 deletions packages/ping-protect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ Install both modules and their latest versions:
npm install @forgerock/javascript-sdk @forgerock/ping-protect
```

```sh
pnpm add @forgerock/javascript-sdk @forgerock/ping-protect
```

The two main responsibilities of the Ping Protect module is the initialization of the profiling and data collection and the completion and preparation of the collected data for the server. You can find the two methods on the `PIProtect` module found within the `@forgerock/ping-protect` module.

- `PIProtect.start()`
Expand Down
2 changes: 1 addition & 1 deletion packages/ping-protect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "4.6.0",
"private": false,
"type": "module",
"files": ["dist"],
"files": ["./dist/*"],
"module": "./dist/index.js",
"main": "./dist/index.js",
"repository": {
Expand Down
32 changes: 0 additions & 32 deletions packages/ping-protect/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,6 @@
"targets": {
"docs": {
"command": "pnpm typedoc --options {projectRoot}/typedoc.json"
},
"build": {
"inputs": [
"default",
"^default",
{
"externalDependencies": ["vite"]
}
],
"outputs": ["{projectRoot}/dist"]
},
"lint": {
"options": {
"args": ["**/*.ts"]
}
},
"test": {
"inputs": [
"default",
"^default",
{
"externalDependencies": ["vitest"]
}
],
"options": {
"config": "./vite.config.ts"
},
"configurations": {
"watch": {
"watch": true
}
}
}
}
}
2 changes: 1 addition & 1 deletion packages/ping-protect/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default defineConfig({
reporters: ['default'],
globals: true,
setupFiles: ['./vitest.setup.ts'],
watch: !process.env['CI'],
watch: false,
coverage: {
reporter: ['text', 'json', 'html'],
enabled: Boolean(process.env['CI']),
Expand Down
2 changes: 1 addition & 1 deletion packages/token-vault/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default defineConfig({
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
pool: 'forks',
reporters: ['default'],
watch: !process.env['CI'],
watch: false,
coverage: {
enabled: Boolean(process.env['CI']),
reporter: ['text', 'json', 'html'],
Expand Down
Loading