@danielx/civet 0.1.1 → 0.2.2
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.
- package/README.md +9 -2
- package/dist/browser.js +725 -425
- package/dist/browser.js.map +2 -2
- package/dist/civet +11 -11
- package/dist/cli.js.map +3 -3
- package/dist/main.js +725 -425
- package/package.json +4 -2
- package/register.js +12 -0
- package/register.mjs +40 -0
package/README.md
CHANGED
|
@@ -7,6 +7,11 @@ A new CoffeeScript. Much closer to ES2015+ (for better or worse).
|
|
|
7
7
|
|
|
8
8
|
Also TypeScript, the sky is the limit.
|
|
9
9
|
|
|
10
|
+
```bash
|
|
11
|
+
npm install -g @danielx/civet
|
|
12
|
+
civet < source.civet > output.ts
|
|
13
|
+
```
|
|
14
|
+
|
|
10
15
|

|
|
11
16
|
|
|
12
17
|
Code Sample
|
|
@@ -55,9 +60,11 @@ Things Kept from CoffeeScript
|
|
|
55
60
|
- OptionalChain shorthand for index and function application `a?[b]` -> `a?.[b]`, `a?(b)` -> `a?.(b)`
|
|
56
61
|
- `@` -> `this`
|
|
57
62
|
- `@id` -> `this.id`
|
|
63
|
+
- JSX 😿
|
|
58
64
|
- TODO
|
|
59
|
-
- `"""` Strings (for compatibility with existing .coffee code)
|
|
60
|
-
- `///` Heregexp
|
|
65
|
+
- [ ] `"""` Strings (for compatibility with existing .coffee code)
|
|
66
|
+
- [ ] `///` Heregexp
|
|
67
|
+
- [ ] Chained comparisons
|
|
61
68
|
|
|
62
69
|
Things Removed from CoffeeScript
|
|
63
70
|
---
|