-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 라이브러리 빌드를 위한 Vite 설정 추가 * fix: TextField type이 password 인 경우, Arial font로 변경하도록 개선
- Loading branch information
Showing
13 changed files
with
138 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
## 작업 주제 | ||
|
||
- 관련 작업에 대한 타이틀을 작성합니다. | ||
|
||
## optional 작업 내용(어떤 부분을 리뷰어가 집중해서 봐야할까요?) | ||
|
||
- 어떤 목적으로 작업을 진행한 것인지 설명합니다. | ||
- 리뷰어가 이 작업이 왜 필요했는지 이해할 수 있도록 도와주는 것이 목적입니다. | ||
- 상세히 어떤 작업을 수행했는지 설명합니다. 커밋 단위로 설명해주는 것이 직관적입니다. | ||
|
||
## optional 화면 스크린샷 | ||
|
||
- 작업을 진행함으로써 화면의 어떤 부분이 변경되었는지 이미지로 공유합니다. | ||
|
||
## optional 관련 Docs | ||
|
||
- 작업을 진행하면서 참고한 문서 혹은 자료를 공유합니다. | ||
- 리뷰어 혹은 PR을 보는 동료들과 새롭게 알게된 지식을 공유하기 위한 것이 목적입니다. | ||
- 또한, 리뷰에 도움을 주는 것도 목적입니다. | ||
|
||
## optional 추가 코멘트 | ||
|
||
- 추가적으로 리뷰어에게 전달하고 싶은 내용이 있다면 작성합니다. | ||
|
||
## 체크리스트(PR 올리기 전 아래의 내용을 확인해주세요.) | ||
|
||
- [ ] base, compare branch가 적절하게 선택되었나요? | ||
- [ ] 로컬 환경에서 충분히 테스트 하셨나요? | ||
|
||
## 리뷰 규칙 | ||
|
||
- P1: 꼭/적극적 반영해 주세요 (Request changes) | ||
- P2: 웬만하면 반영해 주세요 (Comment) | ||
- P3: 반영해도 좋고 넘어가도 좋습니다 (Approve) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare module '*.png' { | ||
const value: string; | ||
export default value; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import type { PaymentCancel, PaymentResult } from './payments'; | ||
import { useLoadNearPayments } from './payments'; | ||
import { OverlayProvider } from './shared'; | ||
|
||
export type { PaymentCancel, PaymentResult }; | ||
export { useLoadNearPayments }; | ||
export { OverlayProvider }; | ||
|
||
export * from './shared'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
import { Global, css } from '@emotion/react'; | ||
|
||
export const GlobalStyles = () => ( | ||
<Global | ||
styles={css` | ||
*, | ||
*::before, | ||
*::after { | ||
export const GlobalStyles = () => <Global styles={css` | ||
*, | ||
*::before, | ||
*::after { | ||
box-sizing: border-box; | ||
} | ||
`} | ||
/> | ||
); | ||
} | ||
`} />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "./dist", | ||
"declaration": true, | ||
"module": "ESNext", | ||
"target": "es6", | ||
"jsx": "react-jsx" | ||
}, | ||
"include": ["src/index.ts", "src/payments", "src/shared", "src/custom.d.ts"], | ||
"exclude": ["node_modules", "vite.config.ts", "src/**/*.stories.tsx"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import path from 'path'; | ||
import { defineConfig } from 'vite'; | ||
import dts from 'vite-plugin-dts'; | ||
import tsconfigPaths from 'vite-tsconfig-paths'; | ||
import react from '@vitejs/plugin-react'; | ||
|
||
export default defineConfig({ | ||
plugins: [ | ||
react(), | ||
tsconfigPaths(), | ||
dts({ | ||
tsconfigPath: './tsconfig.lib.json', | ||
}), | ||
], | ||
resolve: { | ||
alias: [ | ||
{ | ||
find: 'src', | ||
replacement: path.resolve(__dirname, 'src'), | ||
}, | ||
], | ||
}, | ||
build: { | ||
lib: { | ||
entry: path.resolve(__dirname, 'src/index.ts'), | ||
name: 'near-payments', | ||
formats: ['es'], | ||
fileName: () => 'index.js', | ||
}, | ||
rollupOptions: { | ||
external: ['react', 'react-dom', '@xstate/react', 'xstate', 'react/jsx-runtime'], | ||
output: { | ||
globals: { | ||
react: 'React', | ||
'react-dom': 'ReactDOM', | ||
'@xstate/react': '@xstate/react', | ||
xstate: 'xstate', | ||
'react/jsx-runtime': 'jsxRuntime', | ||
}, | ||
}, | ||
}, | ||
}, | ||
define: { | ||
'process.env': {}, | ||
}, | ||
assetsInclude: ['src/assets/**/*'], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters