Skip to content

Commit f2c3462

Browse files
authored
Merge pull request #63 from brionmario/next
feat: initial release of `@asgardeo/javascript`, `@asgardeo/browser`, `@asgardeo/react`, `@asgardeo/node` & `@asgardeo/nextjs`
2 parents 3699610 + 5ded9d9 commit f2c3462

File tree

503 files changed

+27122
-7475
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

503 files changed

+27122
-7475
lines changed

.changeset/big-parrots-sleep.md

Lines changed: 9 additions & 0 deletions

.changeset/config.json

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
{
2-
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3-
"changelog": ["@changesets/changelog-github", { "repo": "asgardeo/web-ui-sdks" }],
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"access": "restricted",
4+
"baseBranch": "main",
5+
"changelog": [
6+
"@changesets/changelog-github",
7+
{
8+
"repo": "asgardeo/javascript"
9+
}
10+
],
411
"commit": false,
512
"fixed": [],
13+
"ignore": [],
614
"linked": [],
7-
"access": "restricted",
8-
"baseBranch": "main",
915
"privatePackages": {
10-
"version": true,
11-
"tag": true
16+
"version": false,
17+
"tag": false
18+
},
19+
"root": {
20+
"packageDir": "."
1221
},
13-
"updateInternalDependencies": "patch",
14-
"ignore": []
15-
}
22+
"tagFormat": "@<scope>/<package>@${version}",
23+
"updateInternalDependencies": "patch"
24+
}

.eslintrc.js renamed to .eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
2+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
33
*
44
* WSO2 LLC. licenses this file to you under the Apache License,
55
* Version 2.0 (the "License"); you may not use this file except

.github/workflows/pr-builder.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ jobs:
118118
- name: 🧩 Install Dependencies
119119
id: install-dependencies
120120
run: pnpm install
121+
122+
- name: 🏗️ Build
123+
id: build
124+
run: pnpm build
121125

122126
- name: ☄️ Check Type Errors
123127
run: pnpm nx affected --target=typecheck --parallel=3 --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }}
@@ -166,6 +170,10 @@ jobs:
166170
- name: 🧩 Install Dependencies
167171
id: install-dependencies
168172
run: pnpm install
173+
174+
- name: 🏗️ Build
175+
id: build
176+
run: pnpm build
169177

170178
- name: 🃏 Run Jest & Collect Coverage
171179
id: run-jest-test-and-coverage

.gitignore

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# See http://help.github.com/ignore-files/ for more about ignoring files.
1+
# See https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
22

33
# compiled output
44
dist
55
tmp
6-
/out-tsc
6+
out-tsc
77

88
# dependencies
99
node_modules
@@ -38,5 +38,9 @@ testem.log
3838
.DS_Store
3939
Thumbs.db
4040

41-
# Nx
4241
.nx/cache
42+
.nx/workspace-data
43+
44+
# Environment files
45+
*.env
46+
.env*

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
/build
55
/node_modules
66
/coverage
7+
/.nx/cache
8+
/.nx/workspace-data

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
"css",
1818
"scss"
1919
],
20-
"typescript.tsdk": "node_modules/typescript/lib"
20+
"typescript.tsdk": "node_modules/typescript/lib",
21+
"editor.formatOnSave": true
2122
}

README.md

Lines changed: 12 additions & 8 deletions

nx.json

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
11
{
2-
"extends": "nx/presets/npm.json",
3-
"$schema": "./node_modules/nx/schemas/nx-schema.json"
4-
}
2+
"$schema": "./node_modules/nx/schemas/nx-schema.json",
3+
"namedInputs": {
4+
"default": [
5+
"{projectRoot}/**/*",
6+
"sharedGlobals"
7+
],
8+
"production": [
9+
"default"
10+
],
11+
"sharedGlobals": []
12+
},
13+
"targetDefaults": {
14+
"build": {
15+
"dependsOn": [
16+
"^build"
17+
]
18+
},
19+
"typecheck": {
20+
"dependsOn": [
21+
"^build"
22+
]
23+
}
24+
},
25+
"plugins": []
26+
}

package.json

Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,42 @@
11
{
22
"private": true,
3-
"name": "@asgardeo/web-ui-sdks",
4-
"version": "0.1.0",
5-
"description": "Web SDKs for building customizable login UIs for Asgardeo & WSO2 Identity Server.",
3+
"name": "@asgardeo/javascript-workspace",
4+
"version": "0.0.0",
5+
"description": "Workspace to hold the Asgardeo JavaScript SDKs.",
66
"author": "WSO2",
77
"license": "Apache-2.0",
8-
"homepage": "https://github.com/asgardeo/web-ui-sdks#readme",
8+
"homepage": "https://github.com/asgardeo/javascript#readme",
99
"bugs": {
10-
"url": "https://github.com/asgardeo/web-ui-sdks/issues"
10+
"url": "https://github.com/asgardeo/javascript/issues"
1111
},
1212
"repository": {
1313
"type": "git",
14-
"url": "https://github.com/asgardeo/web-ui-sdks"
14+
"url": "https://github.com/asgardeo/javascript"
1515
},
1616
"keywords": [
1717
"asgardeo",
18-
"web-sdks",
19-
"api-based-auth"
18+
"javascript",
19+
"workspace"
2020
],
2121
"scripts": {
22-
"build": "nx run-many --target=build --parallel --projects=@asgardeo/js,@asgardeo/react",
23-
"changeset": "changeset",
24-
"lint": "nx run-many --target=lint --parallel",
22+
"build": "nx run-many --target=build --all",
23+
"fix:lint": "nx run-many --target=fix:lint --all --parallel",
24+
"lint": "nx run-many --target=lint --all --parallel",
2525
"publish:packages": "changeset publish",
26-
"test": "nx run-many --target=test --parallel",
27-
"typecheck": "nx run-many --target=typecheck --parallel",
26+
"test": "nx run-many --target=test --all --parallel",
2827
"version:packages": "changeset version && pnpm install --lockfile-only"
2928
},
3029
"devDependencies": {
31-
"@changesets/changelog-github": "^0.5.0",
32-
"@changesets/cli": "^2.27.3",
30+
"@changesets/changelog-github": "^0.5.1",
31+
"@changesets/cli": "^2.29.4",
3332
"@wso2/eslint-plugin": "catalog:",
3433
"@wso2/prettier-config": "catalog:",
35-
"eslint": "catalog:",
36-
"nx": "18.2.4",
37-
"prettier": "^3.2.5",
38-
"typescript": "5.1.6"
39-
},
40-
"workspaces": [
41-
"packages/*",
42-
"recipes/*"
43-
],
44-
"engines": {
45-
"node": ">=18",
46-
"pnpm": ">=9"
34+
"eslint": "8.57.0",
35+
"nx": "20.8.1",
36+
"prettier": "^2.6.2",
37+
"typescript": "~5.7.2"
4738
},
4839
"publishConfig": {
4940
"access": "restricted"
50-
},
51-
"packageManager": "[email protected]+sha512.0e82714d1b5b43c74610193cb20734897c1d00de89d0e18420aebc5977fa13d780a9cb05734624e81ebd81cc876cd464794850641c48b9544326b5622ca29971"
52-
}
41+
}
42+
}

0 commit comments

Comments
 (0)