Skip to content

Commit

Permalink
chore: add launch script (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
pure-js authored Nov 10, 2023
1 parent 98daba9 commit 9fdbb89
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 5 deletions.
47 changes: 47 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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"]
}
]
}
7 changes: 4 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"npm.packageManager": "pnpm"
}
12 changes: 12 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "dev",
"problemMatcher": [],
"label": "pnpm: dev",
"detail": "vite serve"
}
]
}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ CRUD implemenation with React;
- React
- TypeScript
- TailwindCSS
- Storybook

## Contribution

$ pnpm i
$ pnpm start
$ pnpm run dev

## Production build

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9fdbb89

Please sign in to comment.