Skip to content

Commit 036ece0

Browse files
authored
Merge pull request #4 from sveltejs/prepare-initial-release
Prepare initial release
2 parents 6ad0424 + 54f7542 commit 036ece0

File tree

18 files changed

+261
-188
lines changed

18 files changed

+261
-188
lines changed

.changeset/light-bottles-warn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/vite-plugin-svelte': patch
3+
---
4+
5+
initial release

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ assignees: ''
77
---
88

99
<!--
10-
!!! Please fill out the relevant information below.
11-
!!! Failure to do so will lead to immediate close
10+
If there's an existing issue, please add a :+1: reaction to the description of
11+
the issue. One way we prioritize issues is by the number of :+1: reactions on
12+
their descriptions.
13+
Add additional information to the existing issue but DO NOT add `+1` or :+1: comments.
14+
15+
If there is no report already, please file one now using the template below.
16+
17+
Thank you for participating in vite-plugin-svelte!
1218
-->
1319

1420
## Description
@@ -17,15 +23,10 @@ Describe the bug. Keep it short and precise.
1723

1824
## Reproduction
1925

20-
A link to a repo or a script/code to reproduce the issue
26+
- We recommend creating a small repo that illustrates the problem.
27+
- Reproductions should be small, self-contained, correct examples – http://sscce.org.
2128

2229
## Additional Information
2330

24-
- operating system
25-
- versions for
26-
- node
27-
- npm/pnpm/yarn
28-
- vite
29-
- svelte
30-
- logs with debug enabled
31-
- use vite --debug flag or DEBUG=vite-plugin-svelte
31+
- The output of `npx envinfo --system --npmPackages vite,svelte,svelte-hmr,@sveltejs/vite-plugin-svelte --binaries --browsers`
32+
- debug logs produced with `vite dev --debug vite-plugin-svelte` or `DEBUG=vite-plugin-svelte <your start command here>`

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ assignees: ''
77
---
88

99
<!--
10-
!!! Thank you for participating
11-
!!! Please provide the information below or your request may be closed
10+
We're excited to hear how we can make vite-plugin-svelte better.
11+
Please follow the template below.
1212
-->
1313

1414
**Describe the feature**
15-
Keep it brief. No need for (pseudo-)code.
15+
Keep it brief.
1616

1717
**A Usecase**
1818
How would this feature be useful to you and/or users of vite-plugin-svelte

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77

88
jobs:
99
release:

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

CONTRIBUTING.md

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# Contributing to vite-plugin-svelte
2+
3+
vite-plugin-svelte connects two awesome frontend technologies to help us provide great things.
4+
5+
- [Svelte](https://svelte.dev/) is a new way to build web applications. It's a compiler that takes your declarative components and converts them into efficient JavaScript that surgically updates the DOM.
6+
- [Vite](https://vitejs.dev/) is a new breed of frontend build tool that significantly improves the frontend development experience.
7+
8+
The [Open Source Guides](https://opensource.guide/) website has a collection of resources for individuals, communities, and companies. These resources help people who want to learn how to run and contribute to open source projects. Contributors and people new to open source alike will find the following guides especially useful:
9+
10+
- [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
11+
- [Building Welcoming Communities](https://opensource.guide/building-community/)
12+
13+
## Get involved
14+
15+
There are many ways to contribute to Svelte, and many of them do not involve writing any code. Here's a few ideas to get started:
16+
17+
- Simply start using vite-plugin-svelte. Does everything work as expected? If not, we're always looking for improvements. Let us know by [opening an issue](#reporting-new-issues).
18+
- Look through the [open issues](https://github.com/sveltejs/vite-plugin-svelte/issues). Provide workarounds, ask for clarification, or suggest labels. Help [triage issues](#triaging-issues-and-pull-requests).
19+
- If you find an issue you would like to fix, [open a pull request](#your-first-pull-request).
20+
- Read through our [documentation](https://github.com/sveltejs/vite-plugin-svelte/tree/main/docs). If you find anything that is confusing or can be improved, open a pull request.
21+
- Take a look at the [features requested](https://github.com/sveltejs/vite-plugin-svelte/labels/enhancement) by others in the community and consider opening a pull request if you see something you want to work on.
22+
23+
Contributions are very welcome. If you think you need help planning your contribution, please ping us on Discord at [svelte.dev/chat](https://svelte.dev/chat) and let us know you are looking for a bit of help.
24+
25+
### Triaging issues and pull requests
26+
27+
One great way you can contribute to the project without writing any code is to help triage issues and pull requests as they come in.
28+
29+
- Ask for more information if you believe the issue does not provide all the details required to solve it.
30+
- Suggest [labels](https://github.com/sveltejs/vite-plugin-svelte/labels) that can help categorize issues.
31+
- Flag issues that are stale or that should be closed.
32+
- Ask for test plans and review code.
33+
34+
## Bugs
35+
36+
We use [GitHub issues](https://github.com/sveltejs/vite-plugin-svelte/issues) for our public bugs. If you would like to report a problem, take a look around and see if someone already opened an issue about it. If you are certain this is a new unreported bug, you can submit a [bug report](#reporting-new-issues).
37+
38+
If you have questions about using Svelte, contact us on Discord at [svelte.dev/chat](https://svelte.dev/chat), and we will do our best to answer your questions.
39+
40+
If you see anything you'd like to be implemented, create a [feature request issue](https://github.com/sveltejs/vite-plugin-svelte/issues/new?template=feature_request.md)
41+
42+
## Reporting new issues
43+
44+
When [opening a new issue](https://github.com/sveltejs/svelte/issues/new/new?template=bug_report.md), always make sure to fill out the issue template. **This step is very important!** Not doing so may result in your issue not being managed in a timely fashion. Don't take this personally if this happens, and feel free to open a new issue once you've gathered all the information required by the template.
45+
46+
- **One issue, one bug:** Please report a single bug per issue.
47+
- **Provide reproduction steps:** List all the steps necessary to reproduce the issue. The person reading your bug report should be able to follow these steps to reproduce your issue with minimal effort.
48+
49+
## Installation
50+
51+
1. This monorepo uses [pnpm](https://pnpm.js.org/en/). Install it with `npm i -g pnpm`
52+
1. After cloning the repo run `pnpm install` to install dependencies
53+
1. run `pnpm dev` to build vite-plugin-svelte in watch mode
54+
1. run `pnpm dev` in `packages/playground/xxx` to start vite
55+
56+
## Pull requests
57+
58+
### Your first pull request
59+
60+
So you have decided to contribute code back to upstream by opening a pull request. You've invested a good chunk of time, and we appreciate it. We will do our best to work with you and get the PR looked at.
61+
62+
Working on your first Pull Request? You can learn how from this free video series:
63+
64+
[**How to Contribute to an Open Source Project on GitHub**](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github)
65+
66+
### Proposing a change
67+
68+
If you would like to request a new feature or enhancement but are not yet thinking about opening a pull request, you can also file an issue with [feature template](https://github.com/sveltejs/vite-plugin-svelte/issues/new?template=feature_request.md).
69+
70+
If you're only fixing a bug, it's fine to submit a pull request right away but we still recommend that you file an issue detailing what you're fixing. This is helpful in case we don't accept that specific fix but want to keep track of the issue.
71+
72+
### Sending a pull request
73+
74+
Small pull requests are much easier to review and more likely to get merged. Make sure the PR does only one thing, otherwise please split it.
75+
76+
Please make sure the following is done when submitting a pull request:
77+
78+
1. Fork [the repository](https://github.com/sveltejs/vite-plugin-svelte) and create your branch from `main`.
79+
1. Describe your **test plan** in your pull request description. Make sure to test your changes.
80+
1. Make sure your code lints (`pnpm run lint`).
81+
1. Make sure your tests pass (`pnpm run test`).
82+
83+
All pull requests should be opened against the `main` branch.
84+
85+
#### Tests
86+
87+
Integration tests for new features or regression tests as part of a bug fix are very welcome.
88+
Add them to projects in `packages/playground`.
89+
90+
#### Documentation
91+
92+
If you've changed APIs, update the documentation.
93+
94+
#### Changelogs
95+
96+
For changes to be reflected in package changelogs, run `pnpx changeset` and follow the prompts.
97+
You should always select the packages you've changed, Most likely `@sveltejs/vite-plugin-svelte`.
98+
99+
### What happens next?
100+
101+
The core Svelte team will be monitoring for pull requests. Do help us by making your pull request easy to review by following the guidelines above.
102+
103+
## Style guide
104+
105+
[Eslint](https://eslint.org) will catch most styling issues that may exist in your code. You can check the status of your code styling by simply running `pnpm run lint`.
106+
107+
## License
108+
109+
By contributing to vite-plugin-svelte, you agree that your contributions will be licensed under its [MIT license](https://github.com/sveltejs/vite-plugin-svelte/blob/main/LICENSE).

package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
"name": "vite-plugin-svelte-monorepo",
33
"private": true,
44
"scripts": {
5-
"lint": "run-p lint:script lint:style",
5+
"dev": "pnpm --dir packages/vite-plugin-svelte dev",
6+
"build:ci": "pnpm -r build-bundle --filter=./packages/vite-plugin-svelte",
7+
"build": "pnpm -r build --filter=\\!./packages/playground",
8+
"build:vite-plugin-svelte": "pnpm --dir packages/vite-plugin-svelte build",
69
"test": "run-s test:serve test:build",
710
"test:serve": "jest",
811
"test:serve:debug": "cross-env VITE_DEBUG_SERVE=1 node --inspect-brk ./node_modules/.bin/jest",
@@ -11,9 +14,7 @@
1114
"test:ci": "run-s test:ci:serve test:ci:build",
1215
"test:ci:serve": "cross-env VITE_PRESERVE_BUILD_ARTIFACTS=1 jest --verbose --no-cache --runInBand --force-exit --ci --json --outputFile=\"temp/serve/jest-results.json\" ",
1316
"test:ci:build": "cross-env VITE_TEST_BUILD=1 VITE_PRESERVE_BUILD_ARTIFACTS=1 jest --verbose --no-cache --runInBand --force-exit --ci --json --outputFile=\"temp/build/jest-results.json\"",
14-
"build:ci": "pnpm -r build-bundle --filter=./packages/vite-plugin-svelte",
15-
"build": "pnpm -r build --filter=\\!./packages/playground",
16-
"build:vite-plugin-svelte": "pnpm --dir packages/vite-plugin-svelte build",
17+
"lint": "run-p lint:script lint:style",
1718
"lint:script": "eslint --ignore-path .gitignore '**/*.{js,ts,svelte,html,svx,md}'",
1819
"lint:style": "stylelint --ignore-path .gitignore '**/*.{css,scss,svelte,html,js,ts,svx,md}'",
1920
"lint:fix": "run-s lint:fix:script lint:fix:style",
@@ -23,25 +24,25 @@
2324
"format:fix": "pnpm format -- --write",
2425
"fixup": "run-s lint:fix format:fix",
2526
"update-deps": "ncu -u",
26-
"release": "pnpm publish --tag=next --filter=\"@sveltejs/*\" --filter=\"create-svelte\""
27+
"release": "pnpm publish --tag=next --filter=\"@sveltejs/*\""
2728
},
2829
"devDependencies": {
2930
"@changesets/cli": "^2.14.1",
3031
"@microsoft/api-extractor": "^7.13.2",
3132
"@types/fs-extra": "^9.0.8",
32-
"@types/jest": "^26.0.20",
33+
"@types/jest": "^26.0.21",
3334
"@types/node": "^14.14.35",
3435
"@types/semver": "^7.3.4",
3536
"@typescript-eslint/eslint-plugin": "^4.18.0",
3637
"@typescript-eslint/parser": "^4.18.0",
3738
"chalk": "^4.1.0",
3839
"cross-env": "^7.0.3",
3940
"enquirer": "^2.3.6",
40-
"esbuild": "^0.9.2",
41+
"esbuild": "^0.9.5",
4142
"eslint": "^7.22.0",
4243
"eslint-config-prettier": "^8.1.0",
4344
"eslint-plugin-html": "^6.1.2",
44-
"eslint-plugin-jest": "^24.3.1",
45+
"eslint-plugin-jest": "^24.3.2",
4546
"eslint-plugin-markdown": "^2.0.0",
4647
"eslint-plugin-node": "^11.1.0",
4748
"eslint-plugin-prettier": "^3.3.1",
@@ -69,9 +70,9 @@
6970
"stylelint-config-prettier": "^8.0.2",
7071
"stylelint-config-recommended": "^4.0.0",
7172
"svelte": "^3.35.0",
72-
"ts-jest": "^26.5.3",
73+
"ts-jest": "^26.5.4",
7374
"typescript": "^4.2.3",
74-
"vite": "^2.1.0"
75+
"vite": "^2.1.2"
7576
},
7677
"husky": {
7778
"hooks": {

packages/playground/big/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"@sveltejs/vite-plugin-svelte": "workspace:*",
1414
"svelte": "^3.35.0",
1515
"svelte-hmr": "^0.13.0",
16-
"vite": "^2.1.0"
16+
"vite": "^2.1.2"
1717
}
1818
}

packages/playground/default-svelte-template-ts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"@tsconfig/svelte": "^1.0.10",
1414
"svelte": "^3.35.0",
1515
"svelte-hmr": "^0.13.0",
16-
"vite": "^2.1.0",
17-
"svelte-check": "^1.2.5",
16+
"vite": "^2.1.2",
17+
"svelte-check": "^1.2.6",
1818
"svelte-preprocess": "^4.6.9",
1919
"typescript": "^4.2.3",
2020
"tslib": "^2.1.0"

packages/playground/default-svelte-template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"@sveltejs/vite-plugin-svelte": "workspace:*",
1111
"svelte": "^3.35.0",
1212
"svelte-hmr": "^0.13.0",
13-
"vite": "^2.1.0"
13+
"vite": "^2.1.2"
1414
}
1515
}

0 commit comments

Comments
 (0)