grunt-oc
v3.0.13
Published
grunt wrapper for oc cli
Downloads
58
Readme
grunt-oc
Grunt wrapper for OpenComponents cli
OC cli command / grunt-oc tasks
oc dev
=>oc-dev
andoc-dev-kill
tasksoc init
=>oc-init
taskoc mock
=>oc-mock
taskoc preview
=>oc preview
taskoc publish
=>oc-publish
taskoc registry
=>oc-registry
task
Config example
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