Skip to content

Commit 8adcf19

Browse files
authored
update config (#113)
1 parent b4fbf91 commit 8adcf19

File tree

1 file changed

+23
-19
lines changed

1 file changed

+23
-19
lines changed

.submodules/config/configs.jsonc

+23-19
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318
],
319319
"description": "The devcontainer for a micro-service.",
320320
"devcontainer": {
321-
"postCreateCommand": "sudo chmod u+x ./setup && ./setup",
321+
"postCreateCommand": "sudo chmod u+x scripts/setup && scripts/setup",
322322
"mounts": [
323323
"source=./codeforlife-package-javascript,target=/workspace/codeforlife-package-javascript,type=bind,consistency=cached",
324324
"source=./codeforlife-package-python,target=/workspace/codeforlife-package-python,type=bind,consistency=cached"
@@ -335,6 +335,19 @@
335335
"name": "package-javascript"
336336
}
337337
]
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+
}
338351
}
339352
},
340353
"service.backend": {
@@ -360,20 +373,12 @@
360373
]
361374
},
362375
"tasks": {
363-
"version": "2.0.0",
364376
"tasks": [
365377
{
366-
"label": "pipenv-install-dev",
367-
"type": "shell",
368-
"command": "pipenv install --dev"
369-
},
370-
{
371-
"label": "migrate-db",
378+
"label": "setup",
372379
"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": []
377382
}
378383
]
379384
},
@@ -391,7 +396,7 @@
391396
"runserver",
392397
"localhost:8000"
393398
],
394-
"preLaunchTask": "migrate-db"
399+
"preLaunchTask": "setup"
395400
}
396401
]
397402
}
@@ -408,13 +413,12 @@
408413
],
409414
"vscode": {
410415
"tasks": {
411-
"version": "2.0.0",
412416
"tasks": [
413417
{
414-
"label": "start-react-dev-server",
418+
"label": "start-vite-server",
415419
"isBackground": true,
416-
"type": "npm",
417-
"script": "start",
420+
"command": "sudo chmod u+x scripts/run && scripts/run",
421+
"type": "shell",
418422
"options": {
419423
"env": {
420424
"BROWSER": "none"
@@ -428,11 +432,11 @@
428432
"version": "0.2.0",
429433
"configurations": [
430434
{
431-
"name": "React Dev Server",
435+
"name": "Vite Server",
432436
"type": "chrome",
433437
"request": "launch",
434438
"url": "http://localhost:5173",
435-
"preLaunchTask": "start-react-dev-server"
439+
"preLaunchTask": "start-vite-server"
436440
}
437441
]
438442
}

0 commit comments

Comments
 (0)