gulp-vtex-render
v0.5.0
Published
Gulp plugin to build VTEX Render apps
Downloads
22
Readme
gulp-vtex-render
VTEX Render gulp plugin
Install
$ npm install --save-dev gulp-vtex-render
Usage
import gulp from 'gulp'
import babel from 'gulp-babel'
import vtexRender from 'gulp-vtex-render/dist/'
import manifest from './manifest.json'
gulp.task('render', function() {
return gulp.src('./render/assets/**/*.js')
.pipe(babel())
.pipe(gulp.dest('./.build/render/assets'))
.pipe(vtexRender({manifest: manifest}))
.pipe(gulp.dest('./.build/render/components'))
})
gulp.task('default', ['render'])
API
vtexRender({parameters})
parameters
manifest
App JSON manifest
License
MIT © VTEX