diff --git a/README.md b/README.md index a08e8d7..802a7c8 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,11 @@ Emoji 表情组件 ### Install ```bash -npm install @InvisibleFuture/emoji --save +npm install satori-emoji --save ``` ```javascript -import Emoji from '@InvisibleFuture/emoji' +import Emoji from 'satori-emoji' const emoji = new Emoji({ input: document.querySelector('#input') , // 绑定的输入框元素(非必选) diff --git a/counter.js b/counter.js deleted file mode 100644 index 6f641a7..0000000 --- a/counter.js +++ /dev/null @@ -1,16 +0,0 @@ -import Emoji from './emoji.js' - -var emoji = new Emoji({}) - -export function setupCounter(element) { - let counter = 0 - const setCounter = (count) => { - counter = count - element.innerHTML = `count is ${counter}` - } - element.addEventListener('click', () => { - setCounter(++counter) - emoji.show() - }) - setCounter(0) -} diff --git a/javascript.svg b/javascript.svg deleted file mode 100644 index f9abb2b..0000000 --- a/javascript.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/package.json b/package.json index 26cfbae..e248a06 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,6 @@ { - "name": "emoji", - "private": true, - "version": "0.0.0", + "name": "satori-emoji", + "version": "1.0.1", "type": "module", "scripts": { "dev": "vite", @@ -10,5 +9,21 @@ }, "devDependencies": { "vite": "^3.0.7" - } -} \ No newline at end of file + }, + "description": "Emoji 表情组件", + "main": "emoji.js", + "repository": { + "type": "git", + "url": "git+https://github.com/InvisibleFuture/emoji.git" + }, + "keywords": [ + "emoji", + "input" + ], + "author": "satori.love", + "license": "MIT", + "bugs": { + "url": "https://github.com/InvisibleFuture/emoji/issues" + }, + "homepage": "https://github.com/InvisibleFuture/emoji#readme" +}