Skip to content

Commit

Permalink
feat: init
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Jan 5, 2022
0 parents commit 8ff346a
Show file tree
Hide file tree
Showing 42 changed files with 9,570 additions and 0 deletions.
81 changes: 81 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.yml
@@ -0,0 +1,81 @@
name: Bug report
description: File a bug report
labels: [bug, pending triage]
body:
- type: markdown
attributes:
value: |
Thank you for taking the time to file this bug report.
- type: textarea
attributes:
label: Bug description
description: A clear and concise description of the bug.
placeholder: |
<!--
What did you do? (Provide reproduction code in next section)
What did you expect to happen?
What happened instead?
Do you have an error stack-trace?
-->
validations:
required: true
- type: textarea
attributes:
label: Reproduction
description: |
How can we reproduce the issue? When an issue is immediately reproducible, others can start debugging instead of following-up with questions.
placeholder: |
<!--
Provide one of the following:
1. A code-snippet that reproduces the issue
2. A reproduction repository that reproduces the issue
3. A pull request with a failing test-case
Please remove as much irrelevant code to make it easier for others to read and debug.
-->
validations:
required: true
- type: dropdown
attributes:
label: Node.js package manager
description: Which package manager are you using? [npm](https://docs.npmjs.com/cli/v7/commands/npm), [yarn](https://yarnpkg.com/), or [pnpm](https://pnpm.io/)
options:
- npm
- yarn
- pnpm
validations:
required: true
- type: textarea
attributes:
label: Environment
description: |
Describe the environment the issue is happening in. This information is used to for reproduction and debugging.
placeholder: |
<!--
Run and paste the output of:
```
npx envinfo --system --npmPackages cleye --binaries
```
-->
System:
OS:
CPU:
Shell:
Binaries:
Node:
npm:
npmPackages:
cleye:
render: shell
validations:
required: true
- type: checkboxes
attributes:
label: Can you contribute a fix?
description: We would love it if you can open a pull request to fix this bug!
options:
- label: I’m interested in opening a pull request for this issue.
43 changes: 43 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE_REQUEST.yml
@@ -0,0 +1,43 @@
name: Feature request
description: Suggest an idea for this project
labels: [feature request, pending triage]
body:
- type: markdown
attributes:
value: |
Thank you for taking the time to file this feature request.
- type: textarea
attributes:
label: Feature request
description: A description of the feature you would like.
validations:
required: true
- type: textarea
attributes:
label: Why?
description: |
Describe the problem you’re tackling with this feature request.
placeholder: |
<!--
What’s the motivation behind this issue?
eg. “I’m frustrated when...”
-->
validations:
required: true
- type: textarea
attributes:
label: Alternatives
description: |
Have you considered alternative solutions? Is there a workaround?
placeholder: |
<!--
Do you have alternative proposals?
Do you have a workaround?
-->
- type: textarea
attributes:
label: Additional context
description: |
Anything else to share? Screenshots? Links?
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Help / Questions / Discussions
url: https://github.com/privatenumber/cleye/discussions
about: Use GitHub Discussions for anything else
Binary file added .github/command-type-narrowing.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/responsive-narrow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/responsive-normal.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/typed-flags.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,29 @@
name: Release

on:
push:
branches: [master, next]

jobs:
release:
name: Release
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Install dependencies
run: npx ci
- name: Test
run: npm run test --if-present
- name: Build
run: npm run build --if-present
- name: Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,28 @@
name: Test
on:
push:
branches: [develop]
pull_request:
branches: [master, develop, next]
jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
node-version: [12.x, 14.x]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npx ci
- name: Lint
if: ${{ matrix.node-version == '14.x' }}
run: npm run lint
- name: Test
run: npm run test --if-present
25 changes: 25 additions & 0 deletions .gitignore
@@ -0,0 +1,25 @@
# Mac OS X
.DS_Store

# Logs
logs
*.log
npm-debug.log*

# Dependency directories
node_modules/

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Jest coverage data
coverage

# Distribution files
dist
3 changes: 3 additions & 0 deletions .vscode/settings.json
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}

0 comments on commit 8ff346a

Please sign in to comment.