Skip to content

Commit

Permalink
Serve static examples during local dev
Browse files Browse the repository at this point in the history
Closes #97
  • Loading branch information
markcellus committed Mar 13, 2021
1 parent 42ba92a commit dacaedd
Show file tree
Hide file tree
Showing 7 changed files with 830 additions and 16 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,17 @@ content-editable {
white-space: pre;
}
```

## Development

Run tests

```bash
npm test
```

Run static server in examples directory

```bash
npm start
```
9 changes: 9 additions & 0 deletions examples/basic.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<html>
<head>
<title>Basic</title>
<script type="module" src="dist/content-editable.js"></script>
</head>
<body>
<content-editable>Change Me</content-editable>
</body>
</html>
9 changes: 9 additions & 0 deletions examples/dist/content-editable.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export declare class ContentEditable extends HTMLElement {
previousInnerHTML?: HTMLElement['textContent'];
connectedCallback(): void;
disconnectedCallback(): void;
handleEvent(e: Event | KeyboardEvent): void;
private commit;
private parseLinks;
private parse;
}
523 changes: 523 additions & 0 deletions examples/dist/content-editable.js

Large diffs are not rendered by default.

Loading

0 comments on commit dacaedd

Please sign in to comment.