Skip to content

Commit

Permalink
fix: only include custom elements
Browse files Browse the repository at this point in the history
  • Loading branch information
abdmmar committed Dec 27, 2021
1 parent 306fe20 commit 15d2b63
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 106 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
],
"types": "./src/index.d.ts",
"scripts": {
"generate-ce": "cem analyze --globs \"./src/\" --outdir \"./src/\"",
"generate-ce": "cem analyze --globs \"./src/wc-*.js\" --outdir \"./src/\"",
"generate-dts": "tsc --allowJs -d --emitDeclarationOnly src/index.js",
"test:watch": "jest --watch --verbose false",
"test": "jest"
Expand Down
105 changes: 0 additions & 105 deletions src/custom-elements.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,111 +2,6 @@
"schemaVersion": "1.0.0",
"readme": "",
"modules": [
{
"kind": "javascript-module",
"path": "src\\custom-elements.json",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "src/index.js",
"declarations": [],
"exports": [
{
"kind": "js",
"name": "toast",
"declaration": {
"name": "toast",
"module": "src/index.js"
}
},
{
"kind": "js",
"name": "WCToast",
"declaration": {
"name": "WCToast",
"module": "src/index.js"
}
},
{
"kind": "js",
"name": "WCToastItem",
"declaration": {
"name": "WCToastItem",
"module": "src/index.js"
}
},
{
"kind": "js",
"name": "WCToastContent",
"declaration": {
"name": "WCToastContent",
"module": "src/index.js"
}
},
{
"kind": "js",
"name": "WCToastIcon",
"declaration": {
"name": "WCToastIcon",
"module": "src/index.js"
}
},
{
"kind": "js",
"name": "WCToastCloseButton",
"declaration": {
"name": "WCToastCloseButton",
"module": "src/index.js"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/toast.js",
"declarations": [
{
"kind": "variable",
"name": "toast"
},
{
"kind": "function",
"name": "toast",
"parameters": [
{
"name": "message",
"type": {
"text": "string"
}
},
{
"name": "options",
"type": {
"text": "@param {object} options.icon\r\n * @param {'success' | 'loading' | 'error' | 'custom' | 'svg'} options.icon.type\r\n * @param {string} options.icon.content\r\n * @param {number} options.duration\r\n * @param {object} options.theme\r\n * @param {'light' | 'dark' | 'custom'} options.theme.type\r\n * @param {object} options.theme.style\r\n * @param {string} options.theme.style.background\r\n * @param {string} options.theme.style.color\r\n * @param {string} options.theme.style.stroke\r\n * "
}
}
],
"description": "Create blank toast",
"return": {
"type": {
"text": "string"
}
}
}
],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "toast",
"module": "src/toast.js"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/wc-toast-close-button.js",
Expand Down

0 comments on commit 15d2b63

Please sign in to comment.