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
55 changes: 36 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,41 @@
# Compiled class file
*.class
# See http://help.github.com/ignore-files/ for more about ignoring files.

# Log file
*.log
# compiled output
dist
tmp
/out-tsc

# BlueJ files
*.ctxt
# dependencies
node_modules

# Mobile Tools for Java (J2ME)
.mtj.tmp/
# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*
# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
.DS_Store
Thumbs.db

.nx/cache
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
strict-peer-dependencies=false
auto-install-peers=true
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"nrwl.angular-console"
]
}
9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"conventionalCommits.scopes": [
"workspace",
"core"
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
}
4 changes: 4 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "nx/presets/npm.json",
"$schema": "./node_modules/nx/schemas/nx-schema.json"
}
13 changes: 13 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "web-ui-sdks",
"version": "0.1.0",
"license": "Apache-2.0",
"scripts": {},
"private": true,
"devDependencies": {
"nx": "18.2.4"
},
"workspaces": [
"packages/*"
]
}
2 changes: 2 additions & 0 deletions packages/core/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/dist
/node_modules
27 changes: 27 additions & 0 deletions packages/core/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

const path = require('path');

module.exports = {
extends: ['plugin:@wso2/typescript', 'plugin:@wso2/strict', 'plugin:@wso2/internal', 'plugin:@wso2/prettier'],
parserOptions: {
project: [path.resolve(__dirname, 'tsconfig.eslint.json')],
},
plugins: ['@wso2'],
};
2 changes: 2 additions & 0 deletions packages/core/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/dist
/node_modules
44 changes: 44 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "@asgardeo/js-ui-core",
"version": "0.1.0",
"description": "Framework agnostic JS UI Core for Asgardeo or Identity Server",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"umd": "dist/umd/index.js",
"types": "dist/index.d.ts",
"author": "WSO2",
"license": "Apache-2.0",
"files": [
"dist"
],
"homepage": "https://github.com/asgardeo/web-ui-sdks/tree/main/packages/core#readme",
"bugs": {
"url": "https://github.com/asgardeo/web-ui-sdks/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/asgardeo/web-ui-sdks/web-ui-sdks",
"directory": "packages/core"
},
"keywords": [
"asgardeo",
"identity",
"ui",
"core"
],
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
"devDependencies": {
"@types/node": "^20.12.7",
"@wso2/eslint-plugin": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/eslint-plugin?5bf60cabe9e9a2571e8b1dd16d0c3bdc76db2c4f",
"@wso2/prettier-config": "https://gitpkg.now.sh/brionmario/wso2-ui-configs/packages/prettier-config?5bf60cabe9e9a2571e8b1dd16d0c3bdc76db2c4f",
"eslint": "~8.57.0",
"prettier": "^3.2.5",
"typescript": "^5.4.5"
},
"publishConfig": {
"access": "public"
}
}
19 changes: 19 additions & 0 deletions packages/core/prettier.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

module.exports = require('@wso2/prettier-config');
11 changes: 11 additions & 0 deletions packages/core/tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"include": [
"**/.*.js",
"**/.*.cjs",
"**/.*.ts",
"**/*.js",
"**/*.cjs",
"**/*.ts",
]
}
36 changes: 36 additions & 0 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"compileOnSave": false,
"compilerOptions": {
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "es2015",
"module": "esnext",
"lib": ["es2017", "dom"],
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"jsx": "react-jsx",
"allowJs": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"strict": false,
"noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true,
"baseUrl": ".",
"types": ["node", "jest"],
},
"exclude": ["node_modules", "tmp"],
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
}
]
}
25 changes: 25 additions & 0 deletions packages/core/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"declaration": true,
"outDir": "dist",
"declarationDir": "types",
"types": ["node"],
"emitDeclarationOnly": true
},
"files": [],
"exclude": [
"test-configs",
"jest.config.ts",
"**/*.spec.ts",
"**/*.test.ts",
"**/*.spec.tsx",
"**/*.test.tsx",
"**/*.spec.js",
"**/*.test.js",
"**/*.spec.jsx",
"**/*.test.jsx",
"dist"
],
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx", "rollup.config.cjs"]
}
Loading