Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AhashSritharan committed Sep 23, 2023
0 parents commit cdaa1cf
Show file tree
Hide file tree
Showing 60 changed files with 38,495 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
module.exports = {
root: true,
env: {
es2021: true,
node: true,
},
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json",
tsconfigRootDir: __dirname,
},
plugins: ["import", "@typescript-eslint", "simple-import-sort"],
extends: [
"eslint:recommended",
"plugin:eslint-comments/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"prettier",
],
settings: {
"import/resolver": {
typescript: {
project: "tsconfig.json",
tsconfigRootDir: __dirname,
},
},
},
rules: {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"import/no-mutable-exports": "error",
"import/no-unused-modules": "error",
"no-undef": "off",
"no-prototype-builtins": "off",
"no-dupe-class-members": "off",
"@typescript-eslint/no-floating-promises": "error",
"no-unused-vars": "warn"
}
};
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1.
2.
3.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. Ubuntu 22.04, macOS 11.4]
- Node version [e.g 16.4.2]
- Code Version [e.g. 1.1.0]

**Additional context**
Add any other context about the problem here.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: GitHub Discussions
url: https://github.com/AhashSritharan/Xrm-Ex/discussions
about: Please discuss non bug-related topics there
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
7 changes: 7 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Fixes #

## Description of the changes

-
-
-
37 changes: 37 additions & 0 deletions .github/workflows/XrmEx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: XrmEx

on: [push]

env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

jobs:
XrmEx:
runs-on: ubuntu-latest

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

steps:
- uses: actions/checkout@v3
- uses: volta-cli/action@v3
- run: npm ci

- name: Dependencies audit
run: npm audit --audit-level=moderate

- name: Build
run: npm run build

- name: Format check
run: npm run format:check

- name: Lint check
run: npm run lint:check

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run semantic-release
29 changes: 29 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Playwright Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
env:
ENV_VAR_JSON: ${{ secrets.ENV_VAR_JSON }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules/
.nyc_output/
coverage/
.DS_Store
/test-results/
/playwright-report/
/playwright/.cache/
/playwright/.auth/user.json
/playwright.env.json
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
.nyc_output/
coverage/
59 changes: 59 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"main",
"master",
"next",
"next-major",
{
"name": "beta",
"prerelease": true
},
{
"name": "alpha",
"prerelease": true
}
],
"repositoryUrl": "https://github.com/AhashSritharan/Xrm-Ex.git",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/npm",
{
"npmPublish": true,
"pkgRoot": "build"
}
],
[
"@semantic-release/github",
{
"successComment": false,
"failTitle": false,
"assets": [
{
"path": "build/dist/XrmEx.d.ts",
"label": "XrmEx.d.ts"
},
{
"path": "build/dist/XrmEx.js",
"label": "XrmEx.js"
},
{
"path": "build/package.json",
"label": "package.json"
},
{
"path": "build/.eslintrc.json",
"label": "Rename this file to: .eslintrc.json"
},
{
"path": "build/dist/README.md",
"label": "README.md"
}
]
}
]
]
}
15 changes: 15 additions & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"jsc": {
"parser": {
"syntax": "typescript"
}
},
"module": {
"type": "es6",
"noInterop": false
},
"exclude": ["__tests__"],
"sourceMaps": true,
"minify": true
}
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"eamodio.gitlens",
"streetsidesoftware.code-spell-checker"
]
}
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "Debug Current Test File",
"autoAttachChildProcesses": true,
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
"args": ["run", "${relativeFile}"],
"smartStep": true,
"console": "integratedTerminal"
}
]
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
// only use words from .cspell.json
"cSpell.userWords": [],
"cSpell.enabled": true,
"editor.formatOnSave": true,
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
Loading

0 comments on commit cdaa1cf

Please sign in to comment.