Skip to content

Commit 987e246

Browse files
committed
feat(index): inital functionality 💥
1 parent dcf16b1 commit 987e246

22 files changed

+1380
-3
lines changed

.eslintrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "amex",
3+
"rules": {
4+
// format them to be readable, don't just discard; const over let
5+
"no-nested-ternary": 0
6+
}
7+
}

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a bug report for iguazu
4+
---
5+
6+
# 🐞 Bug Report
7+
8+
## Describe the bug
9+
10+
A clear and concise description of what the bug is.
11+
12+
## To Reproduce
13+
14+
Steps to reproduce the behavior, please provide code snippets or a repository:
15+
16+
1. Go to '...'
17+
2. Click on '....'
18+
3. Scroll down to '....'
19+
4. See error
20+
21+
## Expected behavior
22+
23+
A clear and concise description of what you expected to happen.
24+
25+
## Screenshots
26+
27+
If applicable, add screenshots to help explain your problem.
28+
29+
## System information
30+
31+
- OS: [e.g. macOS, Windows]
32+
- Browser (if applies) [e.g. chrome, safari]
33+
- Version of iguazu: [e.g. 5.0.0]
34+
- Node version:[e.g 10.15.1]
35+
36+
## Additional context
37+
38+
Add any other context about the problem here.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Feature request
3+
about: Create a feature request for iguazu
4+
---
5+
6+
# 💡 Feature request
7+
8+
## Is your feature request related to a problem? Please describe
9+
10+
A clear and concise description of what you want and what your use case is.
11+
12+
## Example
13+
14+
Please include a basic code example of the new feature. Skip this section if not applicable.
15+
16+
## Describe the solution you'd like
17+
18+
A clear and concise description of what you want to happen.
19+
20+
## Describe alternatives you've considered
21+
22+
A clear and concise description of any alternative solutions or features you've considered.
23+
24+
## Additional context
25+
26+
Add any other context or screenshots about the feature request here.💡
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Main Health Check
2+
3+
on:
4+
schedule:
5+
# At minute 0 past hour 0800 and 2000.
6+
- cron: '0 8,20 * * *'
7+
8+
jobs:
9+
tests:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node: [ '10.x', '12.x', '14.x' ]
14+
name: Node ${{ matrix.node }}
15+
steps:
16+
- uses: actions/checkout@v2
17+
- run: |
18+
git remote set-branches --add origin main
19+
git fetch
20+
- name: Setup Node
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: ${{ matrix.node }}
24+
- name: Install Dependencies
25+
run: npm ci
26+
env:
27+
NODE_ENV: development
28+
- name: Run Test Script
29+
run: npm run test
30+
env:
31+
NODE_ENV: production
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
prepare:
10+
runs-on: ubuntu-latest
11+
if: "! contains(github.event.head_commit.message, '[skip ci]')"
12+
steps:
13+
- run: echo "${{ github.event.head_commit.message }}"
14+
release:
15+
needs: prepare
16+
name: Release
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
with:
22+
persist-credentials: false
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: 12
27+
- name: Install dependencies
28+
run: npm ci
29+
- name: Release
30+
env:
31+
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
32+
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
33+
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
34+
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
35+
GITHUB_TOKEN: ${{ secrets.PA_TOKEN }}
36+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
run: npx semantic-release

.github/workflows/stale.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
jobs:
8+
stale:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/stale@v3
14+
with:
15+
repo-token: ${{ secrets.GITHUB_TOKEN }}
16+
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity.'
17+
stale-pr-message: 'This pull request is stale because it has been open 30 days with no activity.'
18+
stale-issue-label: 'stale-issue'
19+
exempt-issue-labels: 'enhancement,documentation,good-first-issue,question'
20+
stale-pr-label: 'stale-pr'
21+
exempt-pr-labels: 'work-in-progress'
22+
days-before-stale: 30
23+
days-before-close: -1

.github/workflows/tests.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node: [ '10.x', '12.x', '14.x' ]
15+
name: Node ${{ matrix.node }}
16+
steps:
17+
- uses: actions/checkout@v2
18+
- run: |
19+
git remote set-branches --add origin main
20+
git fetch
21+
- name: Setup Node
22+
uses: actions/setup-node@v1
23+
with:
24+
node-version: ${{ matrix.node }}
25+
- name: Install Dependencies
26+
run: npm ci
27+
env:
28+
NODE_ENV: development
29+
- name: Unit Tests
30+
run: npm run test:unit
31+
- name: Git History Test
32+
run: npm run test:git-history
33+
- name: Lockfile Lint Test
34+
run: npm run test:lockfile
35+
- name: Lint
36+
run: npm run test:lint

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# node & npm
2+
node_modules
3+
# private mirror URLs shouldn't be exposed
4+
package-lock.json
5+
6+
# test
7+
.jest-cache
8+
test-results
9+
10+
# build/pack
11+
*.tgz

.npmignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# src
2+
.eslintrc.json
3+
4+
# build/pack
5+
*.tgz
6+
7+
# docs
8+
*.png
9+
10+
# test
11+
__tests__
12+
.jest-cache
13+
test-results
14+
15+
# CI
16+
.github

CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://help.github.com/en/articles/about-code-owners
2+
3+
* @americanexpress/one

0 commit comments

Comments
 (0)