https://github.com/opencomponents/grunt-oc
grunt wrapper for oc
https://github.com/opencomponents/grunt-oc
grunt opencomponents
Last synced: 10 months ago
JSON representation
grunt wrapper for oc
- Host: GitHub
- URL: https://github.com/opencomponents/grunt-oc
- Owner: opencomponents
- License: mit
- Created: 2015-09-07T14:20:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-04-08T16:05:43.000Z (almost 4 years ago)
- Last Synced: 2025-03-28T05:51:02.617Z (11 months ago)
- Topics: grunt, opencomponents
- Language: JavaScript
- Size: 104 KB
- Stars: 2
- Watchers: 24
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
grunt-oc
========
Grunt wrapper for [OpenComponents cli](https://github.com/opentable/oc)
[](http://travis-ci.org/opencomponents/grunt-oc)
OC cli command / grunt-oc tasks
* `oc dev` => `oc-dev` and `oc-dev-kill` tasks
* `oc init` => `oc-init` task
* `oc mock` => `oc-mock` task
* `oc preview` => `oc preview` task
* `oc publish` => `oc-publish` task
* `oc registry` => `oc-registry` task
# Config example
```js
grunt.initConfig({
'oc-dev': {
myFolder: {
options: {
dirPath: '.',
port: 3030,
baseUrl: 'http://localhost:3030/',
hotReloading: false
}
}
},
'oc-dev-kill': {
allInstances: {
options: {}
}
},
'oc-init': {
newComponent: {
options: {
componentName: 'newComponent',
templateType: 'jade'
}
}
},
'oc-mock': {
getToggle: {
options: {
targetType: 'plugin',
targetName: 'hello',
targetValue: 'world'
}
}
},
'oc-preview': {
myComponent: {
options: {
componentHref: 'https://components.com/my-component'
}
}
},
'oc-publish': {
myComponent: {
options: {
registry: 'http://localhost:3030/',
username: 'myuser',
password: 'password',
componentPath: './my-component/'
}
}
}
});
grunt.loadNpmTasks('grunt-oc');
```
# License
MIT