{"id":17233862,"url":"https://github.com/caseywebdev/guard-mirror","last_synced_at":"2025-09-07T10:38:42.670Z","repository":{"id":3527934,"uuid":"4587161","full_name":"caseywebdev/guard-mirror","owner":"caseywebdev","description":"A CoffeeScript, Stylus, and Jade (HTML and JST) Guard that mirrors your source files (.coffee/.styl/.jst.jade/.html.jade) in another location (public/www/etc...).","archived":false,"fork":false,"pushed_at":"2015-03-09T21:13:08.000Z","size":117,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-27T21:05:35.322Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caseywebdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-07T15:51:24.000Z","updated_at":"2015-03-09T21:13:09.000Z","dependencies_parsed_at":"2022-08-20T09:40:44.391Z","dependency_job_id":null,"html_url":"https://github.com/caseywebdev/guard-mirror","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/caseywebdev/guard-mirror","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseywebdev%2Fguard-mirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseywebdev%2Fguard-mirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseywebdev%2Fguard-mirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseywebdev%2Fguard-mirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caseywebdev","download_url":"https://codeload.github.com/caseywebdev/guard-mirror/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseywebdev%2Fguard-mirror/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271400674,"owners_count":24752927,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-15T05:27:03.024Z","updated_at":"2025-09-07T10:38:42.639Z","avatar_url":"https://github.com/caseywebdev.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"guard-mirror\n============\n\nA CoffeeScript, Stylus, and Jade (HTML and JST) Guard that mirrors your source\nfiles (.coffee/.styl/.jst.jade/.html.jade) in another location\n(public/www/etc...). guard-mirror also can compress the files on the fly for\nuse in production with a simple `compress: true` option. Google Closure\nCompiler is used for JS and YUI Compressor for CSS. Jade -\u003e HTML files are\nautomatically shrinkwrapped. Sprockets is used for file requiring and\nconcatination so all of the same Sprockets syntax can be used.\n\nI created this to help with PhoneGap/Cordova development and it's working out really nice!\n\nInstallation\n------------\n\nIn your `Gemfile`...\n\n```ruby\nsource :rubygems\n\ngem 'guard-mirror'\n# Optionally a notifier like Growl. Syntax/parse errors will be displayed in\n# notifications which becomes very handy!\n# Use the `notify: false` option to turn this off\n# gem 'growl'\n```\n\nIf you want to use nib, you'll have to have the module installed. I recommend adding a `package.json` file to your root directory with something like...\n\n```json\n{\n  \"name\": \"app-name\",\n  \"version\": \"0.0.1\",\n  \"author\": \"Your Name \u003cyou@example.com\u003e\",\n  \"dependencies\": [\n    \"coffee-script\",\n    \"stylus\",\n    \"nib\",\n    \"jade\"\n  ]\n}\n```\n\nAnd then running...\n\n```bash\ncd to/your/root\nnpm install\n```\n\nConfiguration\n-------------\n\nIn your `Guardfile`...\n\n```ruby\nguard :mirror,\n    paths: ['src/js/templates', 'src/js'],\n    # If a target is specified, only this file will be compiled when any\n    # watched file changes.\n    target: 'app.coffee',\n    dest: 'www',\n    compress: true do\n  watch %r{^src/js/(.+\\..+)}\nend\n\nguard :mirror,\n    paths: ['src/css'],\n    target: 'app.styl',\n    dest: 'www',\n    # nib is supported with this flag\n    nib: true,\n    compress: true do\n  watch %r{^src/css/(.+\\..+)}\nend\n\nguard :mirror,\n    paths: ['src/html'],\n    dest: 'www' do\n  watch(%r{^src/html/(.+\\..+)}) { |m| m[1] }\nend\n```\n\nRunning It\n----------\n\n```bash\nbundle update\nbundle --binstubs\nbin/guard\n```\n\nProfit!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaseywebdev%2Fguard-mirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaseywebdev%2Fguard-mirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaseywebdev%2Fguard-mirror/lists"}