{
  "config": {
    "tasks": [
      {
        "label": "Web packager",
        "isBackground": true,
        "options": { "cwd": "${workspaceFolder}/apps/web" },
        "presentation": { "group": "run" },
        "command": "yarn dev",
        "runOptions": { "runOn": "folderOpen" }
      }
    ]
  },
  "instructions": "",
  "commands": [
    {
      "command": {
        "darwin": "yarn create next-app --typescript web",
        "win32": "npx create-next-app@latest --ts web",
        "linux": "yarn create next-app --typescript web"
      },
      "description": "Creating next-app"
    },

    {
      "command": {
        "darwin": "cd web && rm -rf .git",
        "win32": "cd web && rmdir .git /s /q",
        "linux": "cd web && rm -rf .git"
      },
      "description": "Removing web git folder"
    },
    {
      "command": "cd web && yarn add react@17.0.2 react-dom@17.0.2",
      "description": "Install right react version to prevent invalid hook call"
    },
    {
      "command": "cd web && yarn add core@* ui@* react-query react-with-native react-with-native-store react-with-native-router next-transpile-modules @badrap/bar-of-progress",
      "description": "Installing web dependencies"
    },
    {
      "command": "cd web && yarn add -D config@* tsconfig@*",
      "description": "Installing web devDependencies"
    },

    {
      "command": "cd web && yarn add react-datepicker react-dropzone react-map-gl react-autosuggest react-stars rc-time-picker react-datetime",
      "description": "Installing react-with-native-form-inputs"
    },

    {
      "command": "cd web && yarn add -D @types/react-datepicker @types/react-autosuggest @types/react-stars",
      "description": "Installing react-with-native-form-inputs devDependencies"
    },
    {
      "command": {
        "darwin": "rm -rf web/pages web/styles",
        "win32": "rmdir \"web/pages\" \"web/styles\" /s /q",
        "linux": "rm -rf web/pages web/styles"
      },
      "description": "Remove unused boilerplate"
    },
    {
      "command": "cd web && yarn add -D tailwindcss postcss autoprefixer && npx tailwindcss init -p",
      "description": "Install tailwind in your web project"
    }
  ]
}
