Skip to content

Commit

Permalink
Merge pull request #1 from svelte-plugins/repo-cleanup
Browse files Browse the repository at this point in the history
refactor(picker): updates to dev tooling and general code cleanup
  • Loading branch information
dysfunc authored Nov 25, 2023
2 parents f33c5f3 + ce8a970 commit 919fe2a
Show file tree
Hide file tree
Showing 20 changed files with 12,001 additions and 16,897 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @dysfunc
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: Report a bug to help us improve the overall user experience
title: '🐛 '
labels: 'Type: Bug'
assignees: ''
---

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

**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.

**Desktop (please complete the following information):**

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest a new feature or functionality enhancement
title: ''
labels: 'Type: Feature'
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.
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/issue-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: Issue
about: Track a new feature, enhancement, or general task.
title: ''
labels: ''
assignees: ''
---
37 changes: 37 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
**Why these changes?**

**How do we test?**

**Screenshots**

<!--
# Instructions:
1. Choose an emoji to categorize your pull request (copy-paste emoji in front of your title):
✨ New feature
🐛 Bugfix
🔥 P0 fix
🧪 Tests
🚀 Performance improvements
🖍 Styling
♿ Accessibility
🌐 Internationalization
📖 Documentation
🏗 Infrastructure / Tooling / Builds / CI
⏪ Reverting a previous change
🧹 Code refactors and general housekeeping
🗑️ Code removal
2. Pick a meaningful title for your pull request!
- Use sentence case. Keep it short. ex: `✨ Released manage users list view`
3. Enter a succinct description that says why the PR is necessary, and what it does.
Examples of good descriptions:
- Implement aspect of X
- Leave out feature Y because of A
- Improve performance by B
- Improve accessibility by C
4. If the pull request addresses an issue, mention it with keywords `Fixes`, `Closes`, or `Resolves`.
- Using one of the above keywords will automatically close the issue (ex: Fixes #17)
5. Make sure to assign the appropriate label(s) to the pull request!
6. Provide clear testing instructions that include any pertinent information, i.e. roles, feature flags, etc.)
7. Include screenshots of your changes if they impact the UI (Before & After).
-->
37 changes: 37 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Unit Tests (Vitest)

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]

jobs:
build:
runs-on: ubuntu-latest
if: |
(
!contains(github.event.head_commit.message, '[skip ci]') &&
!contains(github.event.head_commit.message, 'version bump')
)
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- uses: szenius/set-timezone@v1.2
with:
timezoneLinux: "America/Los_Angeles"
timezoneMacos: "America/Los_Angeles"
timezoneWindows: "Pacific Standard Time"
- run: npm i
- run: npm test

- uses: actions/upload-artifact@v2
if: failure()
with:
name: unit-tests
path: ${{ github.workspace }}/coverage/
retention-days: 5
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
# generated
.vercel
/node_modules
/lib
/dist

# testing
coverage
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.0.1](https://github.com/svelte-plugins/datepicker/releases/tag/v0.1.0) - 2023-11-22
## [0.1.0](https://github.com/svelte-plugins/datepicker/releases/tag/v0.1.0) - 2023-11-22

- Initial release
1 change: 1 addition & 0 deletions dist/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit 919fe2a

Please sign in to comment.