{"id":30107059,"url":"https://github.com/benignware/grunt-css-wrap","last_synced_at":"2025-08-10T01:33:02.030Z","repository":{"id":17341503,"uuid":"20112840","full_name":"benignware/grunt-css-wrap","owner":"benignware","description":"Wrap CSS rules in a namespace","archived":false,"fork":false,"pushed_at":"2016-11-13T17:48:00.000Z","size":158,"stargazers_count":5,"open_issues_count":3,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-06T08:43:18.456Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benignware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-23T20:19:10.000Z","updated_at":"2022-10-14T05:43:04.000Z","dependencies_parsed_at":"2022-09-26T21:21:14.003Z","dependency_job_id":null,"html_url":"https://github.com/benignware/grunt-css-wrap","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/benignware/grunt-css-wrap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fgrunt-css-wrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fgrunt-css-wrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fgrunt-css-wrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fgrunt-css-wrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benignware","download_url":"https://codeload.github.com/benignware/grunt-css-wrap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benignware%2Fgrunt-css-wrap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269663320,"owners_count":24455798,"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-09T02:00:10.424Z","response_time":111,"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":"2025-08-10T01:32:08.199Z","updated_at":"2025-08-10T01:33:01.975Z","avatar_url":"https://github.com/benignware.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-css-wrap\n\n\u003e Wrap CSS rules in a namespace\n\n## Getting Started\nThis plugin requires Grunt `~0.4.5`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-css-wrap --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-css-wrap');\n```\n\n## The \"css_wrap\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `css_wrap` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  css_wrap: {\n    options: {\n      // Task-specific options go here.\n    },\n    your_target: {\n      // Target-specific file lists and/or options go here.\n    },\n  },\n});\n```\n\n### Options\n\n#### options.selector\nType: `String`\nDefault value: `''`\n\nThe selector of the css-wrapper\n\n### Usage Examples\n\n#### Default Options\nWrap all rules in a css-file with a certain selector.\n\n```js\ncss_wrap: {\n  compile: {\n    src: 'src/styles.css',\n    dest: 'build/styles.css',\n    options: {\n      selector: '.my-app'\n    }\n  }\n}\n```\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n -  0.1.3: Fixed wrong dependency for module css-wrap.\n -  0.1.2: Moved business to separate module [css-wrap](https://github.com/benignware/css-wrap)\n -  0.1.1: Updated to enable processing of media queries\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenignware%2Fgrunt-css-wrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenignware%2Fgrunt-css-wrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenignware%2Fgrunt-css-wrap/lists"}