Skip to content
This repository was archived by the owner on Oct 24, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .eslintrc

This file was deleted.

9 changes: 9 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
plugins: ['vue', 'prettier'],
extends: ['tui/es6', 'plugin:vue/base', 'plugin:prettier/recommended'],
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 7,
sourceType: 'module'
}
};
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"printWidth": 100,
"singleQuote": true,
"bracketSpacing": false,
"arrowParens": "always"
}
11 changes: 11 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import Vue from 'vue';
import TuiGrid from 'tui-grid';

type FunctionKeys<T extends object> = {[K in keyof T]: T[K] extends Function ? K : never}[keyof T];

type GridFnKeys = FunctionKeys<TuiGrid>;

export declare class Grid extends Vue {
invoke<T extends GridFnKeys>(fname: T, ...args: Parameters<TuiGrid[T]>): ReturnType<TuiGrid[T]>;
getRootElement(): HTMLElement;
}
82 changes: 70 additions & 12 deletions package-lock.json

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

10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "@toast-ui/vue-grid",
"version": "1.0.4",
"version": "1.0.5",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package-lock.js의 version도 함께 바껴야할 것 같습니다.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 반영하긴 했는데..
생각해보니 package-lock.json 버전은 매번 업데이트 하면 안되겠네요.
이 파일은 직접 관리하는 파일이 아니라 자동 생성되는 파일이라서 수동으로 수정하면 안될 것 같아요.
이 패키지의 버전이 올라가도 디펜던시가 추가되거나 업데이트 된 게 아니라면 그대로 유지하는 게 맞는 것 같습니다.

"description": "TOAST UI Grid for Vue",
"main": "dist/toastui-vue-grid.js",
"files": [
"dist",
"src"
"src",
"index.d.ts"
],
"scripts": {
"lint": "eslint src/**",
Expand All @@ -26,15 +27,20 @@
"babel-eslint": "^9.0.0",
"babel-loader": "^8.0.4",
"eslint": "^5.5.0",
"eslint-config-prettier": "^4.1.0",
"eslint-config-tui": "^2.0.0",
"eslint-loader": "^2.1.0",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-vue": "^4.7.1",
"vue": "^2.5.17",
"vue-loader": "^15.4.1",
"vue-template-compiler": "^2.5.17",
"webpack": "^4.17.2",
"webpack-cli": "^3.1.0"
},
"peerDependencies": {
"vue": "^2.5.0"
},
"dependencies": {
"tui-grid": "^3.5.0"
}
Expand Down
Loading