@exercism/codemirror-lang-dart 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +22 -27
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.0.1
2
+
3
+ The README is restructured. This release is the first published from GitHub Actions, with npm provenance.
4
+
1
5
  ## 1.0.0
2
6
 
3
7
  This is Exercism's first release of the package, published as
package/README.md CHANGED
@@ -1,30 +1,9 @@
1
1
  # @exercism/codemirror-lang-dart
2
2
 
3
- This is Exercism's fork of
4
- [@codincod/codemirror-lang-dart](https://codeberg.org/reeven/codemirror-lang-dart),
5
- written by CodinCod. Exercism uses it in the Dart editor on
6
- [exercism.org](https://exercism.org). Our changes are on the `main` branch.
7
-
8
- The fork changes the completion. The grammar is upstream's.
9
-
10
- - Completion offers the names declared in the file that are in scope at the
11
- cursor. That covers classes, mixins, enums and their values, extensions,
12
- typedefs, functions, methods, getters and setters, fields, top-level and
13
- local variables, parameters, type parameters, import prefixes, and the
14
- variables bound by `for`, `catch` and patterns. Completion offers a local
15
- variable after its declaration.
16
- - Completion offers snippets for `main`, functions, classes, mixins, enums,
17
- extensions, typedefs, getters, `if`, `if case`, the `for` loops, `while`,
18
- `do`, both kinds of `switch`, `try`, `throw` and `import`.
19
- - After a dot, completion offers the common members of the core types, and
20
- nothing else. Completion is switched off inside strings and comments, except
21
- inside a `${}` interpolation.
22
-
23
- The rest of this README is upstream's.
24
-
25
3
  This package implements Dart language support for the
26
4
  [CodeMirror](https://codemirror.net/) code editor, using a
27
5
  [Lezer](https://lezer.codemirror.net/) grammar written for this package.
6
+ Exercism uses it in the Dart editor on [exercism.org](https://exercism.org).
28
7
 
29
8
  CodeMirror 6 has never shipped Dart, and no Lezer grammar for it existed before
30
9
  this one. What gets used instead is the C-family stream mode ported from
@@ -34,11 +13,7 @@ cursor is. It also predates most of the language: string interpolation,
34
13
  cascades, null safety, records and patterns all come out as plain text or as
35
14
  something else entirely.
36
15
 
37
- Written in part for [CodinCod](https://codincod.com/), a competitive coding
38
- platform, where it colours the editor people solve puzzles in.
39
-
40
- This code is released under an
41
- [MIT license](https://codeberg.org/reeven/codemirror-lang-dart/src/branch/master/LICENSE).
16
+ This code is released under an [MIT license](LICENSE).
42
17
 
43
18
  ## Install
44
19
 
@@ -66,6 +41,21 @@ const view = new EditorView({
66
41
  })
67
42
  ```
68
43
 
44
+ ## Completion
45
+
46
+ - Completion offers the names declared in the file that are in scope at the
47
+ cursor. That covers classes, mixins, enums and their values, extensions,
48
+ typedefs, functions, methods, getters and setters, fields, top-level and
49
+ local variables, parameters, type parameters, import prefixes, and the
50
+ variables bound by `for`, `catch` and patterns. Completion offers a local
51
+ variable after its declaration.
52
+ - Completion offers snippets for `main`, functions, classes, mixins, enums,
53
+ extensions, typedefs, getters, `if`, `if case`, the `for` loops, `while`,
54
+ `do`, both kinds of `switch`, `try`, `throw` and `import`.
55
+ - After a dot, completion offers the common members of the core types, and
56
+ nothing else. Completion is switched off inside strings and comments, except
57
+ inside a `${}` interpolation.
58
+
69
59
  ## Coverage
70
60
 
71
61
  Dart 3. Classes, mixins, enums with constructors and members, extensions and
@@ -144,3 +134,8 @@ npm install # installs the dependencies and builds dist/
144
134
  npm run build # regenerates the parser and rebuilds dist/
145
135
  npm test # builds, then runs the tests
146
136
  ```
137
+
138
+ ## Contributing
139
+
140
+ Please read about how to [contribute to Exercism](https://exercism.org/docs/building).
141
+ Be sure to read the Exercism [Code of Conduct](https://exercism.org/docs/using/legal/code-of-conduct).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exercism/codemirror-lang-dart",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Dart language support for the CodeMirror code editor",
5
5
  "keywords": [
6
6
  "editor",
@@ -46,7 +46,7 @@
46
46
  "homepage": "https://github.com/exercism/codemirror-lang-dart",
47
47
  "repository": {
48
48
  "type": "git",
49
- "url": "https://github.com/exercism/codemirror-lang-dart"
49
+ "url": "git+https://github.com/exercism/codemirror-lang-dart.git"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"