Skip to content

Commit fc505bb

Browse files
authored
Merge pull request #3 from brionmario/restructure
chore: update repo structure
2 parents 148ebe9 + a95b5ed commit fc505bb

Some content is hidden

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

69 files changed

+11458
-6531
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": ["@changesets/changelog-github", { "repo": "asgardeo/passport-asgardeo" }],
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"privatePackages": {
10+
"version": true,
11+
"tag": true
12+
},
13+
"updateInternalDependencies": "patch",
14+
"ignore": []
15+
}

.changeset/purple-pumas-end.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@asgardeo/passport-asgardeo': patch
3+
---
4+
5+
Very first release 🎉

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Global ignore file incase if a child package doesn't include one.
2+
3+
/dist
4+
/build
5+
/node_modules
6+
/coverage

.eslintrc.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/**
2+
* Copyright (c) 2024, WSO2 LLC. (https://www.wso2.com).
3+
*
4+
* WSO2 LLC. licenses this file to you under the Apache License,
5+
* Version 2.0 (the "License"); you may not use this file except
6+
* in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing,
12+
* software distributed under the License is distributed on an
13+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
* KIND, either express or implied. See the License for the
15+
* specific language governing permissions and limitations
16+
* under the License.
17+
*/
18+
19+
module.exports = {
20+
env: {
21+
es6: true,
22+
node: true,
23+
},
24+
extends: ['plugin:@wso2/internal', 'plugin:@wso2/prettier'],
25+
plugins: ['@wso2'],
26+
};
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
**Description:**
2-
<!-- Give a brief description of the issue -->
3-
4-
**Suggested Labels:**
5-
<!-- Optional comma separated list of suggested labels. Non committers can’t assign labels to issues, so this will help issue creators who are not a committer to suggest possible labels-->
6-
7-
**Suggested Assignees:**
8-
<!--Optional comma separated list of suggested team members who should attend the issue. Non committers can’t assign issues to assignees, so this will help issue creators who are not a committer to suggest possible assignees-->
9-
10-
**Affected Product Version:**
11-
12-
**OS, DB, other environment details and versions:**
13-
14-
**Steps to reproduce:**
15-
16-
17-
**Related Issues:**
18-
<!-- Any related issues such as sub tasks, issues reported in other repositories (e.g component repositories), similar problems, etc. -->
1+
**Description:**
2+
<!-- Give a brief description of the issue -->
3+
4+
**Suggested Labels:**
5+
<!-- Optional comma separated list of suggested labels. Non committers can’t assign labels to issues, so this will help issue creators who are not a committer to suggest possible labels-->
6+
7+
**Suggested Assignees:**
8+
<!--Optional comma separated list of suggested team members who should attend the issue. Non committers can’t assign issues to assignees, so this will help issue creators who are not a committer to suggest possible assignees-->
9+
10+
**Affected Product Version:**
11+
12+
**OS, DB, other environment details and versions:**
13+
14+
**Steps to reproduce:**
15+
16+
17+
**Related Issues:**
18+
<!-- Any related issues such as sub tasks, issues reported in other repositories (e.g component repositories), similar problems, etc. -->

.github/pull_request_template.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
### Purpose
2+
<!-- Describe the problem, feature, improvement or the change introduces by the PR briefly. Add screenshots/GIFs if UI/UX changes are introduced. -->
3+
4+
### Related Issues
5+
-
6+
7+
### Related PRs
8+
-
9+
10+
### Checklist
11+
- [ ] e2e cypress tests locally verified.
12+
- [ ] Manual test round performed and verified.
13+
- [ ] UX/UI review done on the final implementation.
14+
- [ ] Documentation provided. (Add links if there are any)
15+
- [ ] Unit tests provided. (Add links if there are any)
16+
- [ ] Integration tests provided. (Add links if there are any)
17+
18+
### Security checks
19+
- [ ] Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines?
20+
- [ ] Ran ESLint & Prettier plugins and verified?
21+
- [ ] Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets?

.github/workflows/pr-builder.yml

Lines changed: 235 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,235 @@
1+
# This workflow will build PRs submitted to the main branch.
2+
3+
name: 👷 PR Builder
4+
5+
on:
6+
pull_request:
7+
branches: [main]
8+
paths-ignore:
9+
- "**.md"
10+
- "LICENSE"
11+
workflow_dispatch:
12+
13+
# Avoid running multiple builds for the same PR.
14+
concurrency:
15+
group: pr-builder-${{ github.ref }}
16+
cancel-in-progress: true
17+
18+
env:
19+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
21+
jobs:
22+
lint:
23+
name: ⬣ ESLint (STATIC ANALYSIS)
24+
runs-on: ubuntu-latest
25+
strategy:
26+
matrix:
27+
node-version: [lts/*]
28+
pnpm-version: [latest]
29+
steps:
30+
- name: ⬇️ Checkout
31+
id: checkout
32+
uses: actions/[email protected]
33+
with:
34+
# We need to fetch all branches and commits so that Nx affected has a base to compare against.
35+
fetch-depth: 0
36+
37+
- name: 🟢 Setup node
38+
id: setup-node
39+
uses: actions/setup-node@v2
40+
with:
41+
node-version: ${{ matrix.node-version }}
42+
43+
- name: 🐳 Set SHAs for Nx
44+
id: set-shas
45+
uses: nrwl/nx-set-shas@v3
46+
with:
47+
main-branch-name: "main"
48+
49+
- name: 🥡 Setup pnpm
50+
id: setup-pnpm
51+
uses: pnpm/[email protected]
52+
with:
53+
version: ${{ matrix.pnpm-version }}
54+
run_install: false
55+
56+
- name: 🎈 Get pnpm store directory
57+
id: get-pnpm-cache-dir
58+
run: |
59+
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
60+
61+
- name: 🔆 Cache pnpm modules
62+
uses: actions/cache@v3
63+
id: pnpm-cache
64+
with:
65+
path: ${{ steps.get-pnpm-cache-dir.outputs.pnpm_cache_dir }}
66+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
67+
restore-keys: |
68+
${{ runner.os }}-pnpm-store-
69+
70+
- name: 🧩 Install Dependencies
71+
id: install-dependencies
72+
run: pnpm install
73+
74+
- name: 🦄 Lint All Files
75+
id: lint-with-eslint
76+
run: pnpm nx affected --target=lint --parallel=3 --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }}
77+
78+
typecheck:
79+
name: ʦ Typecheck (STATIC ANALYSIS)
80+
runs-on: ubuntu-latest
81+
strategy:
82+
matrix:
83+
node-version: [lts/*]
84+
pnpm-version: [latest]
85+
steps:
86+
- name: ⬇️ Checkout
87+
id: checkout
88+
uses: actions/[email protected]
89+
with:
90+
# We need to fetch all branches and commits so that Nx affected has a base to compare against.
91+
fetch-depth: 0
92+
93+
- name: 🟢 Setup node
94+
id: setup-node
95+
uses: actions/setup-node@v2
96+
with:
97+
node-version: ${{ matrix.node-version }}
98+
99+
- name: 🐳 Set SHAs for Nx
100+
id: set-shas
101+
uses: nrwl/nx-set-shas@v3
102+
with:
103+
main-branch-name: "main"
104+
105+
- name: 🥡 Setup pnpm
106+
uses: pnpm/[email protected]
107+
with:
108+
version: ${{ matrix.pnpm-version }}
109+
run_install: false
110+
111+
- name: 🎈 Get pnpm store directory
112+
id: get-pnpm-cache-dir
113+
run: |
114+
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
115+
116+
- name: 🔆 Cache pnpm modules
117+
uses: actions/cache@v3
118+
id: pnpm-cache
119+
with:
120+
path: ${{ steps.get-pnpm-cache-dir.outputs.pnpm_cache_dir }}
121+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
122+
restore-keys: |
123+
${{ runner.os }}-pnpm-store-
124+
125+
- name: 🧩 Install Dependencies
126+
id: install-dependencies
127+
run: pnpm install
128+
129+
- name: ☄️ Check Type Errors
130+
run: pnpm nx affected --target=typecheck --parallel=3 --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }}
131+
132+
test:
133+
name: 👾 Unit Test (TESTING)
134+
# needs: [lint, typecheck]
135+
runs-on: ubuntu-latest
136+
strategy:
137+
matrix:
138+
node-version: [lts/*]
139+
pnpm-version: [latest]
140+
steps:
141+
- name: ⬇️ Checkout
142+
id: checkout
143+
uses: actions/[email protected]
144+
with:
145+
# We need to fetch all branches and commits so that Nx affected has a base to compare against.
146+
fetch-depth: 0
147+
148+
- name: 🟢 Setup node
149+
id: setup-node
150+
uses: actions/setup-node@v2
151+
with:
152+
node-version: ${{ matrix.node-version }}
153+
154+
- name: 🥡 Setup pnpm
155+
uses: pnpm/[email protected]
156+
with:
157+
version: ${{ matrix.pnpm-version }}
158+
run_install: false
159+
160+
- name: 🎈 Get pnpm store directory
161+
id: get-pnpm-cache-dir
162+
run: |
163+
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
164+
165+
- name: 🔆 Cache pnpm modules
166+
uses: actions/cache@v3
167+
id: pnpm-cache
168+
with:
169+
path: ${{ steps.get-pnpm-cache-dir.outputs.pnpm_cache_dir }}
170+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
171+
restore-keys: |
172+
${{ runner.os }}-pnpm-store-
173+
174+
- name: 🧩 Install Dependencies
175+
id: install-dependencies
176+
run: pnpm install
177+
178+
- name: 🃏 Run Jest & Collect Coverage
179+
id: run-jest-test-and-coverage
180+
run: pnpm test:ci
181+
182+
- name: Upload `@asgardeo/passport-asgardeo` coverage reports to Codecov
183+
id: upload-asgardeo-passport-coverage
184+
uses: codecov/[email protected]
185+
with:
186+
files: ./lib/coverage/coverage-final.json
187+
flags: '@asgardeo/passport-asgardeo'
188+
token: ${{ secrets.CODECOV_TOKEN }}
189+
190+
build:
191+
name: 🚧 Build
192+
# needs: [ lint, typecheck, test ]
193+
runs-on: ubuntu-latest
194+
strategy:
195+
matrix:
196+
node-version: [lts/*]
197+
pnpm-version: [latest]
198+
steps:
199+
- name: ⬇️ Checkout
200+
id: checkout
201+
uses: actions/[email protected]
202+
203+
- name: 🟢 Setup node
204+
id: setup-node
205+
uses: actions/setup-node@v2
206+
with:
207+
node-version: ${{ matrix.node-version }}
208+
209+
- name: 🥡 Setup pnpm
210+
uses: pnpm/[email protected]
211+
with:
212+
version: ${{ matrix.pnpm-version }}
213+
run_install: false
214+
215+
- name: 🎈 Get pnpm store directory
216+
id: get-pnpm-cache-dir
217+
run: |
218+
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
219+
220+
- name: 🔆 Cache pnpm modules
221+
uses: actions/cache@v3
222+
id: pnpm-cache
223+
with:
224+
path: ${{ steps.get-pnpm-cache-dir.outputs.pnpm_cache_dir }}
225+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
226+
restore-keys: |
227+
${{ runner.os }}-pnpm-store-
228+
229+
- name: 🧩 Install Dependencies
230+
id: install-dependencies
231+
run: pnpm install
232+
233+
- name: 🏗️ Build
234+
id: build
235+
run: pnpm build

0 commit comments

Comments
 (0)