diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index da15d87..0000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,16 +0,0 @@ - * Release number or git hash: - * Web browser version and OS: - -### Steps to reproduce - - 1. - 1. - -### Observed behavior - * Any unexpected output or action (or lack of expected output or action) - * Web browser console errors (including tracebacks) - * Server errors (relevant messages and tracebacks) - * Static or animated images showing the UI behavior - -### Expected behavior - * diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..c4ab0d1 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,35 @@ +--- +name: 🐛 Bug report +about: If something isn't working as expected 🤔. +title: '' +labels: 'bug' +assignees: '' +--- + + + +When I... + +**To Reproduce** + + + +1. + +**Expected behavior** + + + +**Screenshots** + + + +**Context** + +- Version: +- Browser: + +**Additional context** + + diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..ffe4d1f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,8 @@ +blank_issues_enabled: true +contact_links: + - name: 🤗 Question, Discussions + url: https://github.com/lineupjs/lineupjs/discussions + about: Ask question about the library (usage, features,...) + # - name: Samuel Gratzl + # url: https://www.sgratzl.com + # about: Please ask and answer questions here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..45c49c8 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,19 @@ +--- +name: 🚀 Feature Request +about: Suggest an idea for this project +title: '' +labels: 'enhancement' +assignees: '' +--- + + + +It would be great if ... + +**User story** + + + +**Additional context** + + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 4daf225..e4d1f0b 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,4 +1,4 @@ -closes +closes **prerequisites**: * [ ] branch is up-to-date with the branch to be merged with, i.e. develop @@ -6,5 +6,5 @@ closes * [ ] code is cleaned up and formatted -### Summary +## Summary diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..880a8f7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +version: 2 +updates: + # Maintain dependencies for GitHub Actions + - package-ecosystem: 'github-actions' + directory: '/' + schedule: + interval: 'weekly' + # Maintain dependencies for npm + - package-ecosystem: 'npm' + directory: '/' + schedule: + interval: 'weekly' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..82cf60c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: ci + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2.1.4 + with: + node-version: '12.x' + - uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - run: npm ci + - run: npm run build + - run: npm run lint + - run: npm test:coverage + - run: yarn docs + # - name: Deploy + # if: github.ref == 'refs/heads/master' && github.event_name == 'push' + # uses: peaceiris/actions-gh-pages@v3 + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # publish_dir: ./docs + # enable_jekyll: false