{"id":13725480,"url":"https://github.com/d4rekanguok/gatsby-plugin-node-reload","last_synced_at":"2025-05-07T20:32:34.500Z","repository":{"id":57244717,"uuid":"234769796","full_name":"d4rekanguok/gatsby-plugin-node-reload","owner":"d4rekanguok","description":"Restart Gatsby automatically when gatsby-node (and others) changes","archived":true,"fork":false,"pushed_at":"2020-01-18T18:03:59.000Z","size":30,"stargazers_count":9,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-06T10:51:31.557Z","etag":null,"topics":["gatsby","gatsby-plugin"],"latest_commit_sha":null,"homepage":"","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/d4rekanguok.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":"2020-01-18T17:19:52.000Z","updated_at":"2023-05-12T16:57:27.000Z","dependencies_parsed_at":"2022-09-01T06:12:03.367Z","dependency_job_id":null,"html_url":"https://github.com/d4rekanguok/gatsby-plugin-node-reload","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/d4rekanguok%2Fgatsby-plugin-node-reload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d4rekanguok%2Fgatsby-plugin-node-reload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d4rekanguok%2Fgatsby-plugin-node-reload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d4rekanguok%2Fgatsby-plugin-node-reload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d4rekanguok","download_url":"https://codeload.github.com/d4rekanguok/gatsby-plugin-node-reload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224645382,"owners_count":17346139,"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":["gatsby","gatsby-plugin"],"created_at":"2024-08-03T01:02:24.679Z","updated_at":"2024-11-14T15:31:22.053Z","avatar_url":"https://github.com/d4rekanguok.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"![gatsby-plugin-node-reload](assets/gatsby-plugin-node-reload.png)\n\n# Gatsby Reload\n\nRestart Gatsby's process when `gatsby-*` files changes (`gatsby-node`, `gatsby-config`, `gatsby-browser`, and `gatsby-ssr`).\n\n## Install\n\n```bash\nyarn add gatsby-plugin-node-reload\n```\n\n```js\n// gatsby-config.js\n\nmodule.exports = {\n  plugins: [\n    'gatsby-plugin-node-reload',\n  ]\n}\n```\n\n## Important: End the newly spawned process\n\nThis plugin works by ending the current process when a watched file changes \u0026 replace it with a new one. This newly spawned child process will then write output to the same terminal window. However, `cmd + C` will not end the new process. You'd have to end it manually.\n\nAt the beginning of the new process, this plugin will output the new process' PID so you can end it manually:\n\n```bash\ninfo PID: 5894\n```\n\nThen, on MacOS, you can end the new process by doing the following:\n\n```\nkill -15 5894\n```\n\n## Options\n\nAdd additional files to watch:\n```js\n// gatsby-config.js\n\nmodule.exports = {\n  plugins: [\n    resolve: 'gatsby-plugin-node-reload',\n    options: {\n      watch: ['./directory-to-watch', './file-to-watch.js']\n    }\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd4rekanguok%2Fgatsby-plugin-node-reload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd4rekanguok%2Fgatsby-plugin-node-reload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd4rekanguok%2Fgatsby-plugin-node-reload/lists"}