{"id":21972027,"url":"https://github.com/icfnext/grunt-slang","last_synced_at":"2025-04-28T12:22:19.133Z","repository":{"id":13865301,"uuid":"16563145","full_name":"icfnext/grunt-slang","owner":"icfnext","description":"Sling files to Sling","archived":false,"fork":false,"pushed_at":"2019-08-12T14:22:11.000Z","size":15,"stargazers_count":14,"open_issues_count":5,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T09:31:33.150Z","etag":null,"topics":[],"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/icfnext.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":"2014-02-05T23:58:29.000Z","updated_at":"2019-01-23T15:53:28.000Z","dependencies_parsed_at":"2022-09-26T19:52:23.596Z","dependency_job_id":null,"html_url":"https://github.com/icfnext/grunt-slang","commit_stats":null,"previous_names":["mnlsn/grunt-slang"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icfnext%2Fgrunt-slang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icfnext%2Fgrunt-slang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icfnext%2Fgrunt-slang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/icfnext%2Fgrunt-slang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/icfnext","download_url":"https://codeload.github.com/icfnext/grunt-slang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251271700,"owners_count":21562587,"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-29T15:00:52.320Z","updated_at":"2025-04-28T12:22:19.115Z","avatar_url":"https://github.com/icfnext.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-slang\n\n\u003e Deploy modified files to AEM's CRX using the Apache Sling Post servlet\n\n## Slang Task\n\n### Usage Example\n```js\nslang: {\n  // AEM author configuration\n  author: {\n   \toptions: {\n   \t  host: 'dev.example.com',\n   \t  port: '4502',\n   \t  ignorePaths: true\n   \t}\n  },\n  // AEM publish configuration\n  publish: {\n  \toptions: {\n  \t  host: 'dev.example.com',\n  \t  port: '4503',\n  \t  ignorePaths: true\n    }\n  }\n},\nwatch: {\n\t// watch task for AEM author\n\tauthor: {\n    files: ['\u003c%= pathTo.projectDesign %\u003e**/*.{css,html,js,jsp,txt}'],\n\t\ttasks: ['slang:author'],\n\t\toptions: {\n\t\t\tspawn: false\n\t  }\n\t},\n\t// watch task for AEM publish\n\tpublish: {\n\t  files: ['\u003c%= pathTo.projectDesign %\u003e**/*.{css,html,js,jsp,txt}'],\n\t\t  tasks: ['slang:publish'],\n\t\t  options: {\n\t\t    spawn: false\n\t\t  }\n  }\n}\n```\nYou also need to set the path to the modified file on every watch event, since we only want to upload modified files/folders and not everything:\n\n```\n// we only want to upload the modified file to AEM, not all files\ngrunt.event.on('watch', function(action, filepath) {\n \tgrunt.config.set('slang.author.src', filepath);\n \tgrunt.config.set('slang.publish.src', filepath);\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficfnext%2Fgrunt-slang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ficfnext%2Fgrunt-slang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ficfnext%2Fgrunt-slang/lists"}