Skip to content

Commit

Permalink
Merge pull request #3 from team-nabi/NABI-51
Browse files Browse the repository at this point in the history
🎉 프로젝트 코드 스니펫 작성
  • Loading branch information
oaoong authored Oct 26, 2023
2 parents 06025a9 + 2dd59a2 commit ca54d62
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#9a95fa",
"activityBar.background": "#9a95fa",
"activityBar.foreground": "#15202b",
"activityBar.inactiveForeground": "#15202b99",
"activityBarBadge.background": "#d5140a",
"activityBarBadge.foreground": "#e7e7e7",
"commandCenter.border": "#e7e7e799",
"sash.hoverBorder": "#9a95fa",
"statusBar.background": "#6c64f8",
"statusBar.foreground": "#e7e7e7",
"statusBarItem.hoverBackground": "#9a95fa",
"statusBarItem.remoteBackground": "#6c64f8",
"statusBarItem.remoteForeground": "#e7e7e7",
"titleBar.activeBackground": "#6c64f8",
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveBackground": "#6c64f899",
"titleBar.inactiveForeground": "#e7e7e799"
},
"peacock.color": "#6C64F8"
}
29 changes: 29 additions & 0 deletions .vscode/stories.tsx.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"storyTemplate": {
"prefix": "!story",
"description": "storybook 기초 템플릿입니다.",
"body": [
"import type { Meta, StoryObj } from '@storybook/react'",

"",
"const meta = {",
" title: 'UI/컴포넌트이름',",
" component: 컴포넌트이름,",
" tags: ['autodocs'],",
" argTypes: {},",
"} satisfies Meta<typeof 컴포넌트이름>",
"",
"export default meta",
"type Story = StoryObj<typeof meta>",
"",
"export const Normal: Story = {",
" args: {}",
"}",
"",
"export const Disabled: Story = {",
" args: {}",
"}"
],
"scope": "stories.tsx, typescript, javascript, javascriptreact, typescriptreact"
}
}
18 changes: 18 additions & 0 deletions .vscode/test.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"vitestTemplate": {
"prefix": "!test",
"description": "vitest 기초 템플릿입니다.",
"body": [
"import { describe, it } from 'vitest'",
"",
"describe('테스트 주제', () => {",
" it('테스트 케이스 ex)classname을 적절히 merge합니다', () => {",
" ",
" })",
"})",
""
],
"description": "testTemplate",
"scope": "stories.tsx, typescript, javascript, javascriptreact, typescriptreact"
}
}

0 comments on commit ca54d62

Please sign in to comment.