Skip to content

Commit

Permalink
coomit base
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekdixitadobe committed Jan 19, 2023
1 parent 51d28f9 commit 59418a2
Show file tree
Hide file tree
Showing 60 changed files with 30,867 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PUBLIC_URL=/etc.clientlibs/core-components-examples/wcm-react/clientlibs/react-webcomponents/resources/
NODE_PATH=./
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/
config/
7 changes: 7 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": ["plugin:@typescript-eslint/recommended"],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-empty-interface": "off"
}
}
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Bug report
about: Create a report to help us improve
title: "[bug]"
labels: bug
assignees: ''

---

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

**Package version**
Provide a package version where the bug occurs.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

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

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

**Additional context**
Add any other context about the problem here.
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: "[feature] "
labels: feature-request
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.
36 changes: 36 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"timezone": "Europe/Zurich",
"masterIssue": true,
"packageRules": [
{
"groupName": "@adobe fixes",
"updateTypes": ["patch", "pin", "digest", "minor"],
"automerge": true,
"packagePatterns": ["^@adobe/"],
"schedule": ["at any time"]
},
{
"groupName": "@adobe major",
"updateTypes": ["major"],
"packagePatterns": ["^@adobe/"],
"automerge": false,
"schedule": ["at any time"]
},
{
"groupName": "external fixes",
"updateTypes": ["patch", "pin", "digest", "minor"],
"automerge": false,
"schedule": ["after 1pm on Monday"],
"packagePatterns": ["^.+"],
"excludePackagePatterns": ["^@adobe/"]
},
{
"groupName": "external major",
"updateTypes": ["major"],
"automerge": false,
"packagePatterns": ["^.+"],
"excludePackagePatterns": ["^@adobe/"],
"schedule": ["after 1pm on Monday"]
}
]
}
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Continuous Integration
on: pull_request_target

jobs:
test-react-spa-components:
name: test react-spa-components
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '12'
- name: Install dependencies
run: npm ci
- name: Build the project
run: npm run build:production
- name: Run tests and do code coverage check
run: npm run test:coverage
- name: Run code linter
uses: hallee/[email protected]
if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }}
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload code coverage report to workflow as an artifact
uses: actions/upload-artifact@v2
with:
name: spa-coverage.zip
path: coverage
- name: Upload code coverage report to codecov.io and comment in pull request
uses: codecov/codecov-action@v1
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release and publish module
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: Build the project
run: npm run build:production
- name: Run tests and do code coverage check
run: npm run test:coverage
- name: Release module and publish it in github.com and npmjs.com
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
run: npm run semantic-release

19 changes: 19 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Vulnerability check
on:
push:
branches:
- master
pull_request_target:

jobs:
security:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
command: monitor --all-projects --exclude=examples,pom.xml
26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
target
.idea
.classpath
.metadata
.project
.settings
.externalToolBuilders
maven-eclipse.xml
*.swp
*.iml
*.ipr
*.iws
*.bak
.vlt
.DS_Store
jcr.log
atlassian-ide-plugin.xml
.vlt-sync.log
.vlt-sync-config.properties
node
node_modules


src/tsconfig.types.tsbuildinfo
dist
coverage
11 changes: 11 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
config
node
node_modules
.eslintignore
.gitignore
.babelrc
*.iml
jest.config.js
pom.xml
tsconfig.json
src
Binary file not shown.
Binary file added .vs/slnx.sqlite
Binary file not shown.
Loading

0 comments on commit 59418a2

Please sign in to comment.