|
318 | 318 | ],
|
319 | 319 | "description": "The devcontainer for a micro-service.",
|
320 | 320 | "devcontainer": {
|
321 |
| - "postCreateCommand": "sudo chmod u+x ./setup && ./setup", |
| 321 | + "postCreateCommand": "sudo chmod u+x scripts/setup && scripts/setup", |
322 | 322 | "mounts": [
|
323 | 323 | "source=./codeforlife-package-javascript,target=/workspace/codeforlife-package-javascript,type=bind,consistency=cached",
|
324 | 324 | "source=./codeforlife-package-python,target=/workspace/codeforlife-package-python,type=bind,consistency=cached"
|
|
335 | 335 | "name": "package-javascript"
|
336 | 336 | }
|
337 | 337 | ]
|
| 338 | + }, |
| 339 | + "vscode": { |
| 340 | + "tasks": { |
| 341 | + "version": "2.0.0", |
| 342 | + "tasks": [ |
| 343 | + { |
| 344 | + "label": "hard-install", |
| 345 | + "type": "shell", |
| 346 | + "command": "sudo chmod u+x scripts/hard-install && scripts/hard-install", |
| 347 | + "problemMatcher": [] |
| 348 | + } |
| 349 | + ] |
| 350 | + } |
338 | 351 | }
|
339 | 352 | },
|
340 | 353 | "service.backend": {
|
|
360 | 373 | ]
|
361 | 374 | },
|
362 | 375 | "tasks": {
|
363 |
| - "version": "2.0.0", |
364 | 376 | "tasks": [
|
365 | 377 | {
|
366 |
| - "label": "pipenv-install-dev", |
367 |
| - "type": "shell", |
368 |
| - "command": "pipenv install --dev" |
369 |
| - }, |
370 |
| - { |
371 |
| - "label": "migrate-db", |
| 378 | + "label": "setup", |
372 | 379 | "type": "shell",
|
373 |
| - "dependsOn": [ |
374 |
| - "pipenv-install-dev" |
375 |
| - ], |
376 |
| - "command": "pipenv run python ./manage.py migrate" |
| 380 | + "command": "sudo chmod u+x scripts/setup && scripts/setup", |
| 381 | + "problemMatcher": [] |
377 | 382 | }
|
378 | 383 | ]
|
379 | 384 | },
|
|
391 | 396 | "runserver",
|
392 | 397 | "localhost:8000"
|
393 | 398 | ],
|
394 |
| - "preLaunchTask": "migrate-db" |
| 399 | + "preLaunchTask": "setup" |
395 | 400 | }
|
396 | 401 | ]
|
397 | 402 | }
|
|
408 | 413 | ],
|
409 | 414 | "vscode": {
|
410 | 415 | "tasks": {
|
411 |
| - "version": "2.0.0", |
412 | 416 | "tasks": [
|
413 | 417 | {
|
414 |
| - "label": "start-react-dev-server", |
| 418 | + "label": "start-vite-server", |
415 | 419 | "isBackground": true,
|
416 |
| - "type": "npm", |
417 |
| - "script": "start", |
| 420 | + "command": "sudo chmod u+x scripts/run && scripts/run", |
| 421 | + "type": "shell", |
418 | 422 | "options": {
|
419 | 423 | "env": {
|
420 | 424 | "BROWSER": "none"
|
|
428 | 432 | "version": "0.2.0",
|
429 | 433 | "configurations": [
|
430 | 434 | {
|
431 |
| - "name": "React Dev Server", |
| 435 | + "name": "Vite Server", |
432 | 436 | "type": "chrome",
|
433 | 437 | "request": "launch",
|
434 | 438 | "url": "http://localhost:5173",
|
435 |
| - "preLaunchTask": "start-react-dev-server" |
| 439 | + "preLaunchTask": "start-vite-server" |
436 | 440 | }
|
437 | 441 | ]
|
438 | 442 | }
|
|
0 commit comments