tasks.json 761 B

1234567891011121314151617181920212223242526272829303132333435
  1. {
  2. // These tasks will run in order when initializing your CodeSandbox project.
  3. "setupTasks": [
  4. {
  5. "name": "Install Dependencies",
  6. "command": "yarn install"
  7. }
  8. ],
  9. // These tasks can be run from CodeSandbox. Running one will open a log in the app.
  10. "tasks": {
  11. "build": {
  12. "name": "Build",
  13. "command": "yarn build",
  14. "runAtStart": false
  15. },
  16. "start": {
  17. "name": "Start Example",
  18. "command": "yarn start",
  19. "runAtStart": true,
  20. "preview": {
  21. "port": 3001
  22. }
  23. },
  24. "install-deps": {
  25. "name": "Install Dependencies",
  26. "command": "yarn install",
  27. "restartOn": {
  28. "files": ["yarn.lock"],
  29. "branch": false,
  30. "resume": false
  31. }
  32. }
  33. }
  34. }