Skip to content

Commit 77388c9

Browse files
authored
Merge pull request #24 from svelte-plugins/updates
refactor(repo): update tooling and cleaning up builds
2 parents 51fa768 + 1f845af commit 77388c9

29 files changed

+10989
-20035
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
src/**/*.snap.js
3+
.eslintrc.json

.eslintrc.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"env": {
3+
"es2017": true,
4+
"commonjs": true,
5+
"node": true
6+
},
7+
"parserOptions": {
8+
"ecmaVersion": 2020,
9+
"sourceType": "module"
10+
},
11+
"plugins": ["vitest"],
12+
"extends": ["eslint:recommended", "plugin:vitest/recommended"],
13+
"ignorePatterns": ["**/*.snap.js"],
14+
"overrides": [
15+
{
16+
"files": ["*.svelte"],
17+
"parser": "svelte-eslint-parser"
18+
}
19+
],
20+
"rules": {
21+
"eqeqeq": "error",
22+
"no-useless-escape": "off",
23+
"no-unused-expressions": "off",
24+
"no-unused-vars": "off",
25+
"no-self-assign": "off",
26+
"no-undef": "off"
27+
}
28+
}

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @dysfunc

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug report
3+
about: Report a bug to help us improve the overall user experience
4+
title: '🐛 '
5+
labels: 'Type: Bug'
6+
assignees: ''
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior:
14+
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
31+
32+
**Smartphone (please complete the following information):**
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
38+
39+
**Additional context**
40+
Add any other context about the problem here.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest a new feature or functionality enhancement
4+
title: ''
5+
labels: 'Type: Feature'
6+
assignees: ''
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: Issue
3+
about: Track a new feature, enhancement, or general task.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
**Why these changes?**
2+
3+
**How do we test?**
4+
5+
**Screenshots**
6+
7+
<!--
8+
# Instructions:
9+
1. Choose an emoji to categorize your pull request (copy-paste emoji in front of your title):
10+
✨ New feature
11+
🐛 Bugfix
12+
🔥 P0 fix
13+
🧪 Tests
14+
🚀 Performance improvements
15+
🖍 Styling
16+
♿ Accessibility
17+
🌐 Internationalization
18+
📖 Documentation
19+
🏗 Infrastructure / Tooling / Builds / CI
20+
⏪ Reverting a previous change
21+
🧹 Code refactors and general housekeeping
22+
🗑️ Code removal
23+
24+
2. Pick a meaningful title for your pull request!
25+
- Use sentence case. Keep it short. ex: `✨ Released manage users list view`
26+
3. Enter a succinct description that says why the PR is necessary, and what it does.
27+
Examples of good descriptions:
28+
- Implement aspect of X
29+
- Leave out feature Y because of A
30+
- Improve performance by B
31+
- Improve accessibility by C
32+
4. If the pull request addresses an issue, mention it with keywords `Fixes`, `Closes`, or `Resolves`.
33+
- Using one of the above keywords will automatically close the issue (ex: Fixes #17)
34+
5. Make sure to assign the appropriate label(s) to the pull request!
35+
6. Provide clear testing instructions that include any pertinent information, i.e. roles, feature flags, etc.)
36+
7. Include screenshots of your changes if they impact the UI (Before & After).
37+
-->

.github/workflows/unit.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Unit Tests (Vitest)
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
if: |
14+
(
15+
!contains(github.event.head_commit.message, '[skip ci]') &&
16+
!contains(github.event.head_commit.message, 'version bump')
17+
)
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: actions/setup-node@v1
21+
with:
22+
node-version: '18'
23+
registry-url: 'https://registry.npmjs.org'
24+
- uses: szenius/[email protected]
25+
with:
26+
timezoneLinux: "America/Los_Angeles"
27+
timezoneMacos: "America/Los_Angeles"
28+
timezoneWindows: "Pacific Standard Time"
29+
- run: npm i
30+
- run: npm test
31+
32+
- uses: actions/upload-artifact@v2
33+
if: failure()
34+
with:
35+
name: unit-tests
36+
path: ${{ github.workspace }}/coverage/
37+
retention-days: 5

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# except
44
!.editorconfig
5+
!.eslintignore
56
!.eslintrc.json
67
!.github
78
!.gitignore
@@ -20,7 +21,6 @@
2021
# generated
2122
.vercel
2223
/node_modules
23-
/lib
2424
/dist
2525

2626
# testing

.lintstagedrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"./src/**/*.{test.js,js,svelte}": ["eslint -c ./.eslintrc.js --fix", "prettier --write"]
2+
"./src/**/*.{test.js,js,json,svelte}": [
3+
"eslint -c ./.eslintrc.json --fix",
4+
"prettier --write"
5+
]
36
}

0 commit comments

Comments
 (0)