Skip to content

Commit 4b0ba1f

Browse files
committed
Migrate to TypeScript + functional tests
1 parent f823037 commit 4b0ba1f

17 files changed

+7048
-2285
lines changed

.esdoc.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

.eslintrc.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ module.exports = {
33
"browser": true,
44
"es6": true
55
},
6-
"extends": ["eslint:recommended", "plugin:import/errors"],
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:import/errors",
9+
"plugin:@typescript-eslint/recommended"
10+
],
711
"parserOptions": {
812
"ecmaVersion": 2019,
913
"sourceType": "module"
1014
},
1115
plugins: [
12-
"import"
16+
"import",
17+
"@typescript-eslint"
1318
],
1419
"rules": {
1520
"indent": [

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/node_modules/
22
/dist/
3-
/docs/
3+
/types/
4+
/docs/
5+
/tests/build/

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [1.1.0]
10+
11+
### Added
12+
13+
- Functional tests
14+
15+
### Changed
16+
17+
- Migrate the code to TypeScript
18+
919
## [1.0.0] - 2020-09-12
1020

1121
First version
1222

13-
[Unreleased]: https://github.com/MacFJA/svelte-undoable/compare/1.0.0...HEAD
23+
[Unreleased]: https://github.com/MacFJA/svelte-undoable/compare/1.1.0...HEAD
24+
[1.1.0]: https://github.com/MacFJA/svelte-undoable/releases/tag/1.0.0...1.1.0
1425
[1.0.0]: https://github.com/MacFJA/svelte-undoable/releases/tag/1.0.0

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
Check your code by running the command:
3434
```sh
3535
npm run lint
36+
npm run test
3637
```
3738
The command will output any information worth knowing. No error should be left.
3839

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ name.redo()
3030

3131
## Example
3232

33-
```sveltehtml
33+
```html
3434
<script>
3535
import { undoable, undo, redo, reset, canUndo, canRedo } from "@macfja/svelte-undoable"
3636
import { derived } from "svelte/store"

0 commit comments

Comments
 (0)