diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 433788d..720cd18 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,11 +1,14 @@ ## Summary ## Check List + - [ ] PR 제목을 commit convention에 맞게 작성 - [ ] reviewer 추가 ## Issue + - close # ## Test -__테스트 영상을 올리면 됩니다__ \ No newline at end of file + +**테스트 영상을 올리면 됩니다** diff --git a/README.md b/README.md index 63b7b26..a87058c 100644 --- a/README.md +++ b/README.md @@ -26,12 +26,16 @@ $ up-d4te --help ``` ## For Developer + for install packages and make watcher for build program + ```bash $ npm i $ npm run dev ``` + and run in another terminal + ```bash $ npm start ``` diff --git a/package-lock.json b/package-lock.json index e4620b6..8e3f268 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "up-d4te", - "version": "0.0.1", + "version": "0.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "up-d4te", - "version": "0.0.1", + "version": "0.0.2", "license": "MIT", "dependencies": { "axios": "^1.4.0", @@ -35,7 +35,6 @@ "eslint-plugin-react-hooks": "^4.6.0", "import-jsx": "^5.0.0", "ink-testing-library": "^3.0.0", - "prettier": "^2.8.7", "xo": "^0.53.1" }, "engines": { diff --git a/package.json b/package.json index f674f68..fd3d7ab 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,6 @@ "eslint-plugin-react-hooks": "^4.6.0", "import-jsx": "^5.0.0", "ink-testing-library": "^3.0.0", - "prettier": "^2.8.7", "xo": "^0.53.1" }, "ava": { diff --git a/source/store.js b/source/store.js index 65cc259..e0de7fc 100644 --- a/source/store.js +++ b/source/store.js @@ -1,33 +1,33 @@ -import { observable, action } from "mobx"; -import { createContext } from "react"; +import {observable, action} from 'mobx'; +import {createContext} from 'react'; export class Store { - // input - @observable - input = ""; - @action - updateInput = (input) => { - this.input = input; - }; + // input + @observable + input = ''; + @action + updateInput = input => { + this.input = input; + }; - // selectedIndex - @observable - selectedIndex = 0; - @action - selectNext = () => { - const index = this.selectedIndex + 1; - if (index >= 0 && this.results.length > index) { - this.selectedIndex = index; - } - }; - @action - selectPrev = () => { - const index = this.selectedIndex - 1; - if (index >= 0 && this.results.length > index) { - this.selectedIndex = index; - } - }; - } - - export const store = new Store(); - export const StoreContext = createContext(store); \ No newline at end of file + // selectedIndex + @observable + selectedIndex = 0; + @action + selectNext = () => { + const index = this.selectedIndex + 1; + if (index >= 0 && this.results.length > index) { + this.selectedIndex = index; + } + }; + @action + selectPrev = () => { + const index = this.selectedIndex - 1; + if (index >= 0 && this.results.length > index) { + this.selectedIndex = index; + } + }; +} + +export const store = new Store(); +export const StoreContext = createContext(store);