Skip to content

Plugin to ease the extraction of the final html file from the Movilizer HTML5 Forms framework

Notifications You must be signed in to change notification settings

Movilizer/gulp-movilizer-report-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-movilizer-report-html

Plugin to ease the extraction of the final html file from the Movilizer HTML5 Forms framework.

This plugin save

Config

Add the following task to your gulpfile.js:

gulp.task('report.html', ['build.debug'], function () {
    return gulp.src('build/index.html')
        .pipe(reportHtml({
            inject: 'scripts/print_brigde.js',
            timeout: 20000
        }))
        .pipe(gulp.dest('report/'));
});

Output

The plugin returns a HTML file with the original name plus the following appendix '-return'.

Options

These options are available in the plugin:

  • inject (optional): js file to be injected before running the html file through phantomjs (relative to cwd, project root)
  • timeout (optional): time in milliseconds to consider that phantomjs has failed in its execution. Default: 5000 milliseconds

Requisites

Needed tools:

Development setup

Open a command line in your projects folder and run the following commands:

git clone https://github.com/Movilizer/gulp-movilizer-report-html.git
cd gulp-movilizer-report-html
npm install

Commands available

  • npm run clean - Cleans the dist and build folders
  • npm run build - Generates all files for the project in the build folder

About

Plugin to ease the extraction of the final html file from the Movilizer HTML5 Forms framework

Resources

Stars

Watchers

Forks

Packages

No packages published