{"id":21037476,"url":"https://github.com/vintasoftware/grunt-wait-port","last_synced_at":"2026-04-22T23:31:28.485Z","repository":{"id":12435726,"uuid":"15092616","full_name":"vintasoftware/grunt-wait-port","owner":"vintasoftware","description":"Grunt task to run a server, wait for its port to open, then run another task","archived":false,"fork":false,"pushed_at":"2013-12-11T15:36:21.000Z","size":104,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-20T16:22:14.146Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vintasoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-10T23:25:03.000Z","updated_at":"2013-12-11T15:36:23.000Z","dependencies_parsed_at":"2022-09-04T16:11:49.055Z","dependency_job_id":null,"html_url":"https://github.com/vintasoftware/grunt-wait-port","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vintasoftware%2Fgrunt-wait-port","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vintasoftware%2Fgrunt-wait-port/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vintasoftware%2Fgrunt-wait-port/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vintasoftware%2Fgrunt-wait-port/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vintasoftware","download_url":"https://codeload.github.com/vintasoftware/grunt-wait-port/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243482877,"owners_count":20297897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T13:26:30.412Z","updated_at":"2025-12-30T00:14:31.884Z","avatar_url":"https://github.com/vintasoftware.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-wait-port\n\nGrunt task to run a server, wait for its port to open, then run another task.  \nWorks only on Unix-based systems.\n\n## Installation\n\nAdd the following to your `package.json`:\n\n```javascript\n  \"grunt-wait-port\": \"git+https://github.com/vintasoftware/grunt-wait-port.git\",\n```\n\nAdd the folloing to your `grunt.js`. Here, we assume you have two tasks defined, `run_server` and `run_tests`:\n\n```javascript\ngrunt.loadNpmTasks('grunt-wait-port');\n\ngrunt.initConfig({\n\n  //...\n\n  waitport: {\n    test: {\n      options: {\n        server: ['run_server'],\n        port: 3000,\n        other: ['run_tests']\n      }\n    }\n  }\n\n  //...\n\n});\n```\n\n\n## Shortcuts\n\nCreate shortcut tasks by giving common tasks easy names.\n\n```javascript\ngrunt.registerTask(\"test\", 'build waitport:test');\n```\n\n## Output\n\nBy default, waitport will ignore the output of `server` and will show the output of `other` task.  \nYou can override this by using the `stdioServer` and `stdioOther` options, which accept values according [node.js `child_process.spawn` stdio param](http://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvintasoftware%2Fgrunt-wait-port","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvintasoftware%2Fgrunt-wait-port","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvintasoftware%2Fgrunt-wait-port/lists"}