{"id":24529270,"url":"https://github.com/opencomponents/grunt-oc","last_synced_at":"2025-04-14T17:11:02.810Z","repository":{"id":1344153,"uuid":"42056987","full_name":"opencomponents/grunt-oc","owner":"opencomponents","description":"grunt wrapper for oc","archived":false,"fork":false,"pushed_at":"2022-04-08T16:05:43.000Z","size":107,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-03-28T05:51:02.617Z","etag":null,"topics":["grunt","opencomponents"],"latest_commit_sha":null,"homepage":null,"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/opencomponents.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":"2015-09-07T14:20:34.000Z","updated_at":"2021-09-12T23:21:41.000Z","dependencies_parsed_at":"2022-08-06T10:16:12.036Z","dependency_job_id":null,"html_url":"https://github.com/opencomponents/grunt-oc","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencomponents%2Fgrunt-oc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencomponents%2Fgrunt-oc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencomponents%2Fgrunt-oc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opencomponents%2Fgrunt-oc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opencomponents","download_url":"https://codeload.github.com/opencomponents/grunt-oc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248923764,"owners_count":21183954,"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":["grunt","opencomponents"],"created_at":"2025-01-22T07:35:42.600Z","updated_at":"2025-04-14T17:11:02.779Z","avatar_url":"https://github.com/opencomponents.png","language":"JavaScript","readme":"grunt-oc\n========\nGrunt wrapper for [OpenComponents cli](https://github.com/opentable/oc)\n\n[![linux build](https://img.shields.io/travis/opencomponents/grunt-oc/master.svg?label=linux+build)](http://travis-ci.org/opencomponents/grunt-oc)\n\nOC cli command / grunt-oc tasks\n* `oc dev` =\u003e `oc-dev` and `oc-dev-kill` tasks\n* `oc init` =\u003e `oc-init` task\n* `oc mock` =\u003e `oc-mock` task\n* `oc preview` =\u003e `oc preview` task\n* `oc publish` =\u003e `oc-publish` task\n* `oc registry` =\u003e `oc-registry` task\n\n# Config example\n\n```js\ngrunt.initConfig({\n  'oc-dev': {\n    myFolder: {\n      options: {\n        dirPath: '.',\n        port: 3030,\n        baseUrl: 'http://localhost:3030/',\n        hotReloading: false\n      }\n    }\n  },\n  'oc-dev-kill': {\n    allInstances: {\n      options: {}\n    }\n  },\n  'oc-init': {\n    newComponent: {\n      options: {\n        componentName: 'newComponent',\n        templateType: 'jade'\n      }\n    }\n  },\n  'oc-mock': {\n    getToggle: {\n      options: {\n        targetType: 'plugin',\n        targetName: 'hello',\n        targetValue: 'world'\n      }\n    }\n  },\n  'oc-preview': {\n    myComponent: {\n      options: {\n        componentHref: 'https://components.com/my-component'\n      }\n    }\n  },\n  'oc-publish': {\n    myComponent: {\n      options: {\n        registry: 'http://localhost:3030/',\n        username: 'myuser',\n        password: 'password',\n        componentPath: './my-component/'\n      }\n    }\n  }\n});\n\ngrunt.loadNpmTasks('grunt-oc');\n```\n\n# License\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencomponents%2Fgrunt-oc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopencomponents%2Fgrunt-oc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopencomponents%2Fgrunt-oc/lists"}