From 89ad9c0a164e271005a24860ad81c9802de5e2db Mon Sep 17 00:00:00 2001 From: Arthur Green Date: Fri, 10 Nov 2023 16:04:37 +0400 Subject: [PATCH] chore: add launch script --- .vscode/launch.json | 47 +++++++++++++++++++++++++++++++++++++++++++ .vscode/settings.json | 7 ++++--- .vscode/tasks.json | 12 +++++++++++ README.md | 3 ++- package.json | 1 - 5 files changed, 65 insertions(+), 5 deletions(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..d6e40843 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,47 @@ +{ + "configurations": [ + { + "type": "pwa-msedge", + "name": "Launch Microsoft Edge", + "request": "launch", + "runtimeArgs": ["--remote-debugging-port=9222"], + "preLaunchTask": "pnpm: dev", + "url": "http://localhost:5173/", // Provide your project's url to finish configuring + "presentation": { + "hidden": true + } + }, + { + "type": "pwa-msedge", + "name": "Launch Microsoft Edge in headless mode", + "request": "launch", + "runtimeArgs": ["--headless", "--remote-debugging-port=9222"], + "url": "http://localhost:5173/", // Provide your project's url to finish configuring + "presentation": { + "hidden": true + } + }, + { + "type": "vscode-edge-devtools.debug", + "name": "Open Edge DevTools", + "request": "attach", + "url": "http://localhost:5173/", // Provide your project's url to finish configuring + "presentation": { + "hidden": true + } + } + ], + "compounds": [ + { + "name": "Launch Edge Headless and attach DevTools", + "configurations": [ + "Launch Microsoft Edge in headless mode", + "Open Edge DevTools" + ] + }, + { + "name": "Launch Edge and attach DevTools", + "configurations": ["Launch Microsoft Edge", "Open Edge DevTools"] + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 89d1965f..4bd8fb4b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,5 @@ { - "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode" -} \ No newline at end of file + "editor.formatOnSave": true, + "editor.defaultFormatter": "esbenp.prettier-vscode", + "npm.packageManager": "pnpm" +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000..bbdc64eb --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,12 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "dev", + "problemMatcher": [], + "label": "pnpm: dev", + "detail": "vite serve" + } + ] +} diff --git a/README.md b/README.md index cccc2ca8..2a99a253 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,12 @@ CRUD implemenation with React; - React - TypeScript - TailwindCSS +- Storybook ## Contribution $ pnpm i - $ pnpm start + $ pnpm run dev ## Production build diff --git a/package.json b/package.json index e2474262..dfc5eb27 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,6 @@ "type": "module", "scripts": { "preinstall": "npx only-allow pnpm", - "start": "npm run dev", "dev": "vite serve", "build": "vite build", "preview": "vite preview",