{"id":16886200,"url":"https://github.com/mvila/on-save","last_synced_at":"2025-04-11T12:38:05.179Z","repository":{"id":138239413,"uuid":"53463440","full_name":"mvila/on-save","owner":"mvila","description":"Run a shell command when you save a file in Atom","archived":false,"fork":false,"pushed_at":"2020-07-18T04:51:20.000Z","size":693,"stargazers_count":20,"open_issues_count":1,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T08:51:23.923Z","etag":null,"topics":["atom","command","file","monitor","package","run","save","shell","watch"],"latest_commit_sha":null,"homepage":"https://atom.io/packages/on-save","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/mvila.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-09T02:59:36.000Z","updated_at":"2022-11-21T03:23:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e15a6ca-bcae-40e6-af42-74120e5d2d73","html_url":"https://github.com/mvila/on-save","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvila%2Fon-save","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvila%2Fon-save/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvila%2Fon-save/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvila%2Fon-save/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvila","download_url":"https://codeload.github.com/mvila/on-save/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248402436,"owners_count":21097331,"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":["atom","command","file","monitor","package","run","save","shell","watch"],"created_at":"2024-10-13T16:38:40.738Z","updated_at":"2025-04-11T12:38:05.167Z","avatar_url":"https://github.com/mvila.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cbr /\u003e\n  \u003cbr /\u003e\n  \u003cimg src=\"https://s3.amazonaws.com/on-save/on-save-logo-with-tagline.svg\" alt=\"on-save: Run a shell command when you save a file\" width=\"451\" height=\"65\" /\u003e\n  \u003cbr /\u003e\n\u003c/p\u003e\n\n## Caution\n\n**This project is in maintenance mode, and it will not get any new features.**\n\n## Installation\n\n```\napm install on-save\n```\n\n## Usage\n\nCreate an `.on-save.json` file at the root of your project (or anywhere in the path of the files you want to watch).\n\nFor example, if you want to babelify every `.js` file from `src` to `dist`, the `.on-save.json` file content might be something like:\n\n```json\n[\n  {\n    \"srcDir\": \"src\",\n    \"destDir\": \"dist\",\n    \"files\": \"**/*.js\",\n    \"command\": \"babel ${srcFile} --out-file ${destFile}\"\n  }\n]\n```\n\n## Configuration file\n\nThe content of the `.on-save.json` file must be an array of objects with the following properties:\n\n- `srcDir` _(default to `.on-save.json`'s directory)_: The source directory.\n- `destDir` _(default to `srcDir`)_: The destination directory.\n- `files`: The files you want to track. You can use a glob (see [minimatch](https://github.com/isaacs/minimatch)), or an array of globs.\n- `command`: The command to execute. You can use these variables:\n  - `${srcFile}`: The input file.\n  - `${destFile}`: The output file.\n  - `${destFileWithoutExtension}`: The output file without the extension.\n- `showOutput` _(default to `false`)_: A boolean indicating whether the output stream (stdout) should be displayed or not.\n- `showError` _(default to `true`)_: A boolean indicating whether the error stream (stderr) should be displayed or not.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvila%2Fon-save","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvila%2Fon-save","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvila%2Fon-save/lists"}