diff --git a/package.json b/package.json index e83ffc6..28079e7 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/src/custom-elements.json b/src/custom-elements.json index ec73332..8a368d5 100644 --- a/src/custom-elements.json +++ b/src/custom-elements.json @@ -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",