Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
feat: add refactor + tests (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
luwes authored Jan 12, 2023
1 parent e10e5b7 commit 61fd549
Show file tree
Hide file tree
Showing 6 changed files with 2,858 additions and 330 deletions.
2 changes: 1 addition & 1 deletion example.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<html>
<head>
<script type="module" src="./index.js"></script>
<script type="module" src="./youtube-video-element.js"></script>
</head>
<body>
<youtube-video controls src="https://www.youtube.com/watch?v=rubNgGj3pYo"></youtube-video>
Expand Down
325 changes: 0 additions & 325 deletions index.js

This file was deleted.

12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"version": "0.0.6",
"description": "Custom element (web component) for the YouTube player.",
"type": "module",
"main": "index.js",
"main": "youtube-video-element.js",
"files": [
"index.js",
"youtube-video-element.js",
"README.md"
],
"scripts": {
"dev": "npx serve .",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "web-test-runner test.js --node-resolve"
},
"repository": "muxinc/youtube-video-element",
"keywords": [
Expand All @@ -21,5 +21,9 @@
"custom element"
],
"author": "@muxinc",
"license": "MIT"
"license": "MIT",
"devDependencies": {
"@open-wc/testing": "^3.1.7",
"@web/test-runner": "^0.15.0"
}
}
Loading

0 comments on commit 61fd549

Please sign in to comment.