@railway/inkwell 0.1.4 → 1.0.0

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 CHANGED
@@ -1,12 +1,12 @@
1
1
  # ✒️ Inkwell
2
2
 
3
- [![inkwell.build](https://img.shields.io/badge/inkwell.build-8b5cf6)](https://inkwell.build)
4
- [![llms.txt](https://img.shields.io/badge/llms.txt-8b5cf6)](https://inkwell.build/llms.txt)
5
- [![ci](https://img.shields.io/github/actions/workflow/status/railwayapp/inkwell/ci.yml?branch=main)](https://github.com/railwayapp/inkwell/actions)
6
- [![npm](https://img.shields.io/npm/v/@railway/inkwell)](https://www.npmjs.com/package/@railway/inkwell)
3
+ [![inkwell.build](https://img.shields.io/badge/inkwell.build-7B3FA0)](https://inkwell.build)
4
+ [![llms.txt](https://img.shields.io/badge/llms.txt-7B3FA0)](https://inkwell.build/llms.txt)
5
+ [![ci](https://img.shields.io/github/actions/workflow/status/railwayapp/inkwell/ci.yml?branch=main&label=ci&color=7B3FA0)](https://github.com/railwayapp/inkwell/actions)
6
+ [![npm](https://img.shields.io/npm/v/@railway/inkwell?color=7B3FA0)](https://www.npmjs.com/package/@railway/inkwell)
7
7
 
8
8
  Inkwell is a Markdown editor and renderer for React with an extensible plugin
9
- system and real-time collaboration support.
9
+ system.
10
10
 
11
11
  ## Usage
12
12
 
@@ -19,11 +19,13 @@ pnpm add @railway/inkwell
19
19
  ### Editor
20
20
 
21
21
  ```tsx
22
+ import "@railway/inkwell/styles.css";
22
23
  import { InkwellEditor } from "@railway/inkwell";
23
24
  import { useState } from "react";
24
25
 
25
26
  function App() {
26
27
  const [content, setContent] = useState("# Hello **world**");
28
+
27
29
  return <InkwellEditor content={content} onChange={setContent} />;
28
30
  }
29
31
  ```
@@ -49,19 +51,26 @@ pnpm dev
49
51
 
50
52
  ## Releases
51
53
 
52
- Releases are published to npm via GitHub Actions.
54
+ Versioning and `CHANGELOG.md` are managed by [Changesets](https://github.com/changesets/changesets). Publishing to npm runs via GitHub Actions on a `v*` tag push.
55
+
56
+ When you open a PR that should show up in the changelog:
57
+
58
+ ```bash
59
+ pnpm changeset # pick bump type, write a user-facing summary
60
+ ```
61
+
62
+ Commit the generated `.changeset/*.md` file alongside your code.
63
+
64
+ To cut a release from `main`:
53
65
 
54
66
  ```bash
55
- cd packages/inkwell
56
- npm version patch --no-git-tag-version # or minor / major
57
- cd ../..
58
- git add packages/inkwell/package.json
59
- git commit -m "🚀 release: v$(node -p "require('./packages/inkwell/package.json').version")"
67
+ pnpm changeset version # bumps packages/inkwell/package.json + writes CHANGELOG.md
68
+ git commit -am "🚀 release: v$(node -p "require('./packages/inkwell/package.json').version")"
60
69
  git tag "v$(node -p "require('./packages/inkwell/package.json').version")"
61
- git push && git push --tags
70
+ git push --follow-tags
62
71
  ```
63
72
 
64
- Pushing a `v*` tag triggers the publish workflow.
73
+ Pushing the `v*` tag triggers the publish workflow.
65
74
 
66
75
  ## License
67
76