Skip to content

Commit

Permalink
chore: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
a-n-u-b-i-s committed Jul 29, 2022
0 parents commit 5bcb56f
Show file tree
Hide file tree
Showing 34 changed files with 5,874 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"body-max-line-length": [0],
"footer-max-line-length": [0]
}
}
3 changes: 3 additions & 0 deletions .cz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "cz-conventional-changelog"
}
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
dist/
assets/
14 changes: 14 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": ["intellibus"],
"overrides": [
{
"files": "scripts/*",
"rules": {
"import/no-extraneous-dependencies": [
"error",
{ "devDependencies": true }
]
}
}
]
}
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Bug Report
about: Create a report to help us improve
title: 'Solar System Bug Report'
labels: 'bug'
assignees: 'a-n-u-b-i-s'

---

Thanks for stopping by to let us know something could be better!

---

Please be sure to include as much information as possible:

#### Environment details

1. Node Version (v18.7.0) & Package Manager Used (npm, yarn, pnpm)
2. OS & Version (macos 12.0)
3. Any Other Relevant Environment Information

#### Steps to reproduce

1. ?

#### Code example

```typescript
# example
```

#### Stack trace

```bash
# example
```

Following these steps will guarantee the quickest resolution possible.

Thanks!
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Feature Request
about: Suggest an idea for this library
title: 'Solar System Feature Request'
labels: 'enhancement'
assignees: 'a-n-u-b-i-s'

---

Thanks for stopping by to let us know something could be better!

---

**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.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/support_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: Support Request
about: Need Help with Using Xrays
title: 'Solar System Support'
labels: 'help wanted'
assignees: 'a-n-u-b-i-s'

---
4 changes: 4 additions & 0 deletions .github/blunderbuss.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
assign_issues:
- a-n-u-b-i-s
assign_prs:
- a-n-u-b-i-s
12 changes: 12 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Thank you for opening a Pull Request

---

Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

- [ ] Make sure to open a GitHub issue as a bug/feature request before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 👽
58 changes: 58 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Configuration for probot-stale - https://github.com/probot/stale

# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 120

# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose: 180

# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
onlyLabels: []

# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels:
- pinned
- 'type: bug'

# Set to true to ignore issues in a project (defaults to false)
exemptProjects: false

# Set to true to ignore issues in a milestone (defaults to false)
exemptMilestones: false

# Set to true to ignore issues with an assignee (defaults to false)
exemptAssignees: false

# Label to use when marking as stale
staleLabel: 'stale'

# Comment to post when marking as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. Please comment here if it is still valid so that we can
re-prioritize. Thank you!
# Comment to post when removing the stale label.
# unmarkComment: >
# Your comment here.

# Comment to post when closing a stale Issue or Pull Request.
closeComment: >
Closing this. Please reopen if you believe it should be addressed. Thank you for your contribution.
# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 10

# Limit to only `issues` or `pulls`
only: issues
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
# pulls:
# daysUntilStale: 30
# markComment: >
# This pull request has been automatically marked as stale because it has not had
# recent activity. It will be closed if no further activity occurs. Thank you
# for your contributions.

# issues:
# exemptLabels:
# - confirmed
36 changes: 36 additions & 0 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

on:
workflow_run:
workflows: ['CI']
branches: [main]
types:
- completed

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

jobs:
release:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: pnpm Setup
uses: pnpm/action-setup@v2.2.2
with:
version: 7.6.0
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: Publish
run: pnpm exec semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38 changes: 38 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI

on:
push:
branches: ['main']

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

jobs:
continuous-integration:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: pnpm Setup
uses: pnpm/action-setup@v2.2.2
with:
version: 7.6.0
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install
id: deployInstall
- name: Build
run: pnpm run build
# - name: Setup Environment
# run: echo $TEST_ENV_FILE | base64 --decode > .env.test.local
# env:
# TEST_ENV_FILE: ${{ secrets.TEST_DOTENV }}
- name: Run Unit Tests
run: pnpm run test:unit:ci
37 changes: 37 additions & 0 deletions .github/workflows/PR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: PR

on:
- pull_request

env:
NPM_TOKEN: ''

jobs:
continuous-integration:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: pnpm Setup
uses: pnpm/action-setup@v2.2.2
with:
version: 7.6.0
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install
id: deployInstall
- name: Build
run: pnpm run build
- name: Setup Environment
run: echo $TEST_ENV_FILE | base64 --decode > .env.test.local
env:
TEST_ENV_FILE: ${{ secrets.TEST_DOTENV }}
- name: Run Unit Tests
run: pnpm run test:unit:ci
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
node_modules

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
**/events
**/.vscode

# local env files
.env*

.eslintcache

package-lock.json
yarn.lock

dist/
coverage/
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm exec commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm exec lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"**/*.ts": ["pretty-quick", "eslint --cache --fix ./**/*.ts -f mo"]
}
20 changes: 20 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
src/
scripts/
test/
coverage/
assets/
.husky/
.github/
.env*
pnpm-lock.yaml
.eslintcache
.commitlintrc.json
.cz.json
.eslintignore
.eslintrc.json
.lintstagedrc.json
.nvmrc
.prettierrc.json
.releaserc.json
renovate.json
tsconfig.json
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.7.0
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
"tabWidth": 2,
"useTabs": false,
"semi": true
}
Loading

0 comments on commit 5bcb56f

Please sign in to comment.