Skip to content

Commit 0f52f2b

Browse files
Merge pull request #53 from 3nethz/feat/vue-sdk
feat(vue): implement asgardeo plugin for vue.js
2 parents 293d05b + c77d12e commit 0f52f2b

39 files changed

+6110
-6442
lines changed

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,9 @@
1313
"css.validate": false,
1414
"less.validate": false,
1515
"scss.validate": false,
16-
"stylelint.validate": ["css", "scss"]
16+
"stylelint.validate": [
17+
"css",
18+
"scss"
19+
],
20+
"typescript.tsdk": "node_modules/typescript/lib"
1721
}

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@
3030
"devDependencies": {
3131
"@changesets/changelog-github": "^0.5.0",
3232
"@changesets/cli": "^2.27.3",
33-
"@wso2/eslint-plugin": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/eslint-plugin?21281faa4f8354491747075f40f58b497d0c4730",
34-
"@wso2/prettier-config": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/prettier-config?fa0b844715320a3953d6d055997c0770f8695082",
35-
"eslint": "~8.57.0",
33+
"@wso2/eslint-plugin": "catalog:",
34+
"@wso2/prettier-config": "catalog:",
35+
"eslint": "catalog:",
3636
"nx": "18.2.4",
37-
"prettier": "^3.2.5"
37+
"prettier": "^3.2.5",
38+
"typescript": "5.1.6"
3839
},
3940
"workspaces": [
4041
"packages/*",

packages/core/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@
4141
"@types/lodash.isempty": "^4.4.9",
4242
"@types/lodash.merge": "^4.6.9",
4343
"@types/node": "^20.12.7",
44-
"@wso2/eslint-plugin": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/eslint-plugin?fa0b844715320a3953d6d055997c0770f8695082",
45-
"@wso2/prettier-config": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/prettier-config?fa0b844715320a3953d6d055997c0770f8695082",
46-
"eslint": "~8.57.0",
44+
"@wso2/eslint-plugin": "catalog:",
45+
"@wso2/prettier-config": "catalog:",
46+
"eslint": "catalog:",
4747
"prettier": "^3.2.5",
4848
"rollup": "^4.17.2",
4949
"rollup-plugin-dts": "^6.1.0",
5050
"tslib": "^2.6.2",
51-
"typescript": "^5.1.6"
51+
"typescript": "5.1.6"
5252
},
5353
"publishConfig": {
5454
"access": "public"

packages/react/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@
4747
"@types/randombytes": "^2.0.3",
4848
"@types/react": "^18.2.79",
4949
"@types/react-dom": "^18.2.25",
50-
"@wso2/eslint-plugin": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/eslint-plugin?fa0b844715320a3953d6d055997c0770f8695082",
51-
"@wso2/prettier-config": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/prettier-config?fa0b844715320a3953d6d055997c0770f8695082",
52-
"@wso2/stylelint-config": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/stylelint-config?fa0b844715320a3953d6d055997c0770f8695082",
53-
"eslint": "~8.57.0",
50+
"@wso2/eslint-plugin": "catalog:",
51+
"@wso2/prettier-config": "catalog:",
52+
"@wso2/stylelint-config": "catalog:",
53+
"eslint": "catalog:",
5454
"prettier": "^3.2.5",
5555
"react": "^18.2.0",
5656
"react-dom": "^18.2.0",

packages/vue/.eslintrc.cjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,8 @@ module.exports = {
3030
project: [path.resolve(__dirname, 'tsconfig.json'), path.resolve(__dirname, 'tsconfig.eslint.json')],
3131
},
3232
plugins: ['@wso2'],
33+
rules: {
34+
'import/no-extraneous-dependencies': ['error', {devDependencies: true}],
35+
'no-underscore-dangle': ['off'],
36+
},
3337
};

packages/vue/package.json

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@asgardeo/vue",
33
"version": "0.0.0",
44
"description": "Vue SDK for Asgardeo - Authentication and Identity Management",
5-
"main": "dist/esm/index.js",
5+
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",
77
"types": "dist/index.d.ts",
88
"type": "module",
@@ -40,7 +40,7 @@
4040
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts",
4141
"lint:fix": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",
4242
"type-check": "vue-tsc --noEmit",
43-
"test": "vitest --passWithNoTests",
43+
"test": "vitest --config src/vitest.config.ts --environment=jsdom --run --passWithNoTests",
4444
"prepublishOnly": "npm run build"
4545
},
4646
"publishConfig": {
@@ -52,14 +52,15 @@
5252
"@rollup/plugin-node-resolve": "^15.2.3",
5353
"@rollup/plugin-typescript": "^11.1.6",
5454
"@types/node": "^20.12.7",
55-
"@vitejs/plugin-vue": "^5.0.0",
55+
"@vitest/coverage-v8": "3.0.8",
56+
"@vitest/web-worker": "^3.0.8",
5657
"@vue/eslint-config-prettier": "^8.0.0",
5758
"@vue/eslint-config-typescript": "^12.0.0",
5859
"@vue/test-utils": "^2.4.6",
59-
"@wso2/eslint-plugin": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/eslint-plugin?21281faa4f8354491747075f40f58b497d0c4730",
60-
"@wso2/prettier-config": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/prettier-config?fa0b844715320a3953d6d055997c0770f8695082",
61-
"@wso2/stylelint-config": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/stylelint-config?fa0b844715320a3953d6d055997c0770f8695082",
62-
"eslint": "~8.57.0",
60+
"@wso2/eslint-plugin": "catalog:",
61+
"@wso2/prettier-config": "catalog:",
62+
"@wso2/stylelint-config": "catalog:",
63+
"eslint": "catalog:",
6364
"prettier": "^3.2.5",
6465
"rollup": "^4.17.2",
6566
"rollup-plugin-dts": "^6.1.0",
@@ -69,8 +70,8 @@
6970
"stylelint": "15.1.0",
7071
"tslib": "^2.6.2",
7172
"typescript": "5.1.6",
72-
"vitest": "^3.0.6",
73-
"vue-tsc": "^2.2.2"
73+
"vue-tsc": "^2.2.2",
74+
"vitest": "^3.0.8"
7475
},
7576
"dependencies": {
7677
"@asgardeo/auth-spa": "^3.1.4",
@@ -80,9 +81,15 @@
8081
"clsx": "^2.1.1",
8182
"fast-sha256": "^1.3.0",
8283
"jose": "^5.3.0",
83-
"randombytes": "^2.1.0"
84+
"randombytes": "^2.1.0",
85+
"@vitejs/plugin-vue": "^5.0.0"
8486
},
8587
"peerDependencies": {
8688
"vue": ">=3.5.13"
89+
},
90+
"exports": {
91+
"types": "./dist/index.d.ts",
92+
"import": "./dist/esm/index.js",
93+
"require": "./dist/cjs/index.js"
8794
}
8895
}

packages/vue/src/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)