···2233File dropzone for Svelte
4455+## Usage
66+77+```svelte
88+<script lang="ts">
99+ function handleFiles(files: File[]) {
1010+ console.log(file.name)
1111+ }
1212+</script>
1313+<FileDrop {handleFiles} let:droppable>
1414+ <div class="zone" class:droppable>
1515+ Select or drop files here
1616+ </div>
1717+</FileDrop>
1818+```
1919+2020+## Dev instructions
2121+2222+### Get started
2323+2424+1. Install Node.js (v14 works)
2525+2. Run `npm install`
2626+527## Commands
628729- `npm run dev`: Start in dev mode
···931- `npm run preview`: Preview production app
1032- `npm run lint`: Lint
1133- `npm run format`: Format
3434+3535+### Publish new version
3636+3737+1. Update `CHANGELOG.md`
3838+2. Check for errors
3939+ ```
4040+ npm run check
4141+ ```
4242+3. Bump the version number
4343+ ```
4444+ npm version --no-git-tag <version>
4545+ ```
4646+4. Generate the package
4747+ ```
4848+ npm run build:package
4949+ ```
5050+5. Publish the package
5151+ ```
5252+ npm publish ./package
5353+ ```
5454+6. Commit with a tag in format "v#.#.#"
5555+7. Create GitHub release with release notes