-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into feat/489-search
- Loading branch information
Showing
109 changed files
with
5,119 additions
and
3,994 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,16 @@ | ||
import ReactFreshBabelPlugin from 'react-refresh/babel'; | ||
|
||
/** @type {import('@babel/core').TransformOptions} */ | ||
export default { | ||
presets: [ | ||
[ | ||
'@babel/preset-react', | ||
{ | ||
runtime: 'automatic', | ||
development: process.env.NODE_ENV === 'development', | ||
}, | ||
], | ||
'@babel/preset-typescript', | ||
], | ||
plugins: [process.env.NODE_ENV === 'development' && false && ReactFreshBabelPlugin].filter(Boolean), | ||
}; |
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 |
---|---|---|
|
@@ -10,14 +10,15 @@ | |
"solo5star <[email protected]>" | ||
], | ||
"scripts": { | ||
"start": "cross-env NODE_ENV=development webpack serve --config webpack.development.js", | ||
"start": "node scripts/start.js", | ||
"build": "cross-env NODE_ENV=production webpack --config webpack.production.js", | ||
"storybook": "cross-env NODE_ENV=development storybook dev -p 6006", | ||
"build:storybook": "cross-env NODE_ENV=production storybook build", | ||
"cypress:open": "cypress open --e2e --browser chrome", | ||
"cypress:run": "cypress run --e2e --browser chrome --headless" | ||
}, | ||
"dependencies": { | ||
"@googlemaps/react-wrapper": "^1.1.35", | ||
"@tanstack/react-query": "^4.29.19", | ||
"@tanstack/react-query-devtools": "^4.32.1", | ||
"axios": "^1.4.0", | ||
|
@@ -32,19 +33,21 @@ | |
"@babel/preset-react": "^7.22.5", | ||
"@babel/preset-typescript": "^7.22.5", | ||
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10", | ||
"@storybook/addon-essentials": "7.0.25", | ||
"@storybook/addon-interactions": "7.0.25", | ||
"@storybook/addon-links": "7.0.25", | ||
"@storybook/addon-styling": "^1.3.4", | ||
"@storybook/blocks": "7.0.25", | ||
"@storybook/react": "^7.0.25", | ||
"@storybook/react-webpack5": "7.0.25", | ||
"@storybook/testing-library": "0.0.14-next.2", | ||
"@storybook/addon-essentials": "^7.4.5", | ||
"@storybook/addon-interactions": "^7.4.5", | ||
"@storybook/addon-links": "^7.4.5", | ||
"@storybook/addon-styling": "^1.3.7", | ||
"@storybook/blocks": "^7.4.5", | ||
"@storybook/react": "^7.4.5", | ||
"@storybook/react-webpack5": "^7.4.5", | ||
"@storybook/testing-library": "0.2.1", | ||
"@types/google.maps": "^3.54.0", | ||
"@types/react": "^18.2.14", | ||
"@types/react-dom": "^18.2.6", | ||
"@typescript-eslint/eslint-plugin": "^5.61.0", | ||
"@typescript-eslint/parser": "^5.61.0", | ||
"babel-loader": "^9.1.2", | ||
"commander": "^11.0.0", | ||
"copy-webpack-plugin": "^11.0.0", | ||
"cross-env": "^7.0.3", | ||
"cypress": "^12.17.4", | ||
|
@@ -59,15 +62,18 @@ | |
"eslint-plugin-promise": "^6.1.1", | ||
"eslint-plugin-react": "^7.33.1", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"eslint-plugin-storybook": "^0.6.12", | ||
"eslint-plugin-storybook": "^0.6.14", | ||
"favicons": "^7.1.4", | ||
"favicons-webpack-plugin": "^6.0.1", | ||
"fork-ts-checker-webpack-plugin": "^8.0.0", | ||
"html-webpack-plugin": "^5.5.3", | ||
"msw": "^1.2.2", | ||
"msw": "^1.3.1", | ||
"msw-storybook-addon": "^1.8.0", | ||
"postcss-styled-syntax": "^0.4.0", | ||
"prettier": "^2.8.8", | ||
"react-refresh": "^0.14.0", | ||
"start-server-and-test": "^2.0.0", | ||
"storybook": "7.0.25", | ||
"storybook": "^7.4.5", | ||
"stylelint": "^15.9.0", | ||
"stylelint-config-clean-order": "^5.0.1", | ||
"stylelint-no-unsupported-browser-features": "^7.0.0", | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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,76 @@ | ||
#!/usr/bin/env node | ||
|
||
import { program } from 'commander'; | ||
import webpack from 'webpack'; | ||
import WebpackDevServer from 'webpack-dev-server'; | ||
import webpackConfig from '../webpack.development.js'; | ||
|
||
process.env.NODE_ENV = 'development'; | ||
|
||
/** @type {Record<string, import('webpack-dev-server').ProxyConfigMap | null>} */ | ||
const profiles = { | ||
msw: {}, | ||
local: { | ||
'/api': { | ||
changeOrigin: true, | ||
target: 'http://localhost:8080', | ||
pathRewrite: { | ||
'^/api': '', | ||
}, | ||
}, | ||
}, | ||
dev: { | ||
'/api': { | ||
changeOrigin: true, | ||
target: 'https://dev.yozm.cafe', | ||
}, | ||
'/images': { | ||
changeOrigin: true, | ||
target: 'https://dev.yozm.cafe', | ||
}, | ||
}, | ||
prod: { | ||
'/api': { | ||
changeOrigin: true, | ||
target: 'https://yozm.cafe', | ||
}, | ||
'/images': { | ||
changeOrigin: true, | ||
target: 'https://yozm.cafe', | ||
}, | ||
}, | ||
}; | ||
|
||
program.option( | ||
'--profile <profile>', | ||
`API 서버 프로필을 지정합니다. ${Object.keys(profiles).join(', ')} 중 하나를 선택할 수 있습니다`, | ||
'msw', | ||
); | ||
program.parse(); | ||
|
||
const options = program.opts(); | ||
const profile = profiles[options.profile]; | ||
|
||
if (!profile) { | ||
program.error( | ||
`"${options.profile}"는 존재하지 않는 프로필입니다. ${Object.keys(profiles).join(', ')} 중 하나를 선택해주세요.`, | ||
); | ||
} | ||
|
||
if (options.profile === 'msw') { | ||
process.env.MSW = 'true'; | ||
} | ||
|
||
const compiler = webpack(webpackConfig); | ||
const devServerConfig = { | ||
...webpackConfig.devServer, | ||
proxy: profile, | ||
}; | ||
const server = new WebpackDevServer(devServerConfig, compiler); | ||
|
||
const runServer = async () => { | ||
console.log(`Starting server with profile ${options.profile}`); | ||
await server.start(); | ||
}; | ||
|
||
runServer(); |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.