Skip to content

Commit

Permalink
Upgrade ESMTK
Browse files Browse the repository at this point in the history
  • Loading branch information
evanplaice committed May 11, 2021
1 parent 2b648da commit c90188b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// src/wc-social-link.js
class WCSocialLink extends HTMLElement {
var WCSocialLink = class extends HTMLElement {
static get observedAttributes() {
return ["network", "handle", "href"];
}
Expand Down Expand Up @@ -187,7 +187,7 @@ class WCSocialLink extends HTMLElement {
</symbol>
</svg>`;
}
}
};
customElements.define("wc-social-link", WCSocialLink);
export {
WCSocialLink
Expand Down
4 changes: 2 additions & 2 deletions index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
"scripts": {
"start": "npx live-server --no-browser --port=5500 --open=dev",
"lint": "esmtk lint",
"build": "npm run bundle && npm run minify",
"bundle": "esmtk bundle src/wc-social-link.js index.js",
"minify": "esmtk minify src/wc-social-link.js index.min.js",
"build": "npm run build:esm && npm run build:min",
"build:esm": "esmtk bundle src/wc-social-link.js index.js",
"build:min": "esmtk minify src/wc-social-link.js index.min.js",
"package": "npx rimraf package && npm pack | tail -n 1 | xargs tar -xf",
"preversion": "npm run lint",
"postversion": "git push --follow-tags"
},
"devDependencies": {
"esmtk": "^0.4.0"
"esmtk": "^0.5.6"
},
"standard": {
"ignore": [
Expand Down

0 comments on commit c90188b

Please sign in to comment.