0.1.1 • Published 9 years ago
gulp-bye-bye-magento-wysiwyg v0.1.1
gulp-bye-bye-magento-wysiwyg
Take the pain out of the editing Magento CMS content and say "bye bye" to the WYSIWYG.
Edit your file locally in your editor of choice. Use gulp to watch the file and run the "byeBye" task against it. The relevant record will automatically be updated in the Magento database every time you save.
Usage
Sample gulpfile.js
.
var gulp = require('gulp');
var gutil = require('gulp-util');
var byeBye = require('gulp-bye-bye-magento-wysiwyg');
gulp.task('byeBye', function() {
gulp.watch(gutil.env.file, function() {
byeBye.run();
});
})
And then at the command line...
gulp byeBye --db mydb --file mydata.html --type block --id 34
You should create and grab to ID of the CMS page or block before running
Arguments
Pass the following arguments at the command line
db
: DB namehost
: DB host. Defaults tolocalhost
port
: DB port. Defaults to3306
user
: DB user. Defaults toroot
pass
: DB password. Blank by defaultfile
: The name of the file you are editingtype
: Eitherblock
(for static blocks) orpage
(for pages)id
: The ID of the CMS page or block