Skip to content

Commit

Permalink
swap to rollup / web dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
KonnorRogers committed Jul 4, 2022
1 parent 42a2dcb commit e032a51
Show file tree
Hide file tree
Showing 14 changed files with 5,068 additions and 764 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ dist

# TernJS port file
.tern-port
dist/
examples/dist
.parcel-cache
34 changes: 34 additions & 0 deletions examples/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>TipTapElement</title>
<script type="module">
import "../dist/index.js"
</script>
</head>
<body>
The following can be instantiated like this:

<br>

<code>
&lt;form&gt;
<br>
&nbsp;&nbsp;&lt;input id="my-input" type="hidden"&gt;
<br>
&nbsp;&nbsp;&lt;tip-tap-trix input="my-input"&gt;&lt;/tip-tap-element&gt;
<br>
&lt;/form&gt;
</code>

<br><br><br><br><br>

<form>
<input id="my-input" type="hidden">
<tip-tap-trix input="my-input"></tip-tap-element>
</form>

<tip-tap-trix readonly></tip-tap-trix>
</body>
</html>
1 change: 1 addition & 0 deletions examples/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "../dist/index.js"
20 changes: 20 additions & 0 deletions examples/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"private": true,
"name": "examples",
"version": "1.0.0",
"description": "",
"type": "module",
"browserslist": "> 0.5%, last 2 versions, not dead",
"scripts": {
"start": "",
"build": ""
},
"author": "Konnor Rogers",
"license": "MIT",
"dependencies": {
"tip-tap-element": "link:../"
},
"devDependencies": {
"parcel": "^2.6.2"
}
}
Loading

0 comments on commit e032a51

Please sign in to comment.