Skip to content

stephenmdangelo/gulp-qmlweb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Gulp plugin to produce pre-parsed assets for QmlWeb

Join the chat at https://gitter.im/qmlweb/qmlweb

npm GitHub tag

Installation

Add the following dependencies to your package.json:

{
  "name": "QmlWebProject",
  "devDependencies": {
    "gulp": "~3.6.0",
    "gulp-concat": "~2.1.7",
    "gulp-qmlweb": "~0.0.7"
  }
}

Usage

var qml = require('gulp-qmlweb');
var concat = require('gulp-concat');

gulp.task('scripts', function() {
  return gulp.src(['qml/**/*.qml', 'qml/**/*.js', 'qml/**/qmldir'])
    .pipe(qml())
    .pipe(concat('qrc.js'))
    .pipe(gulp.dest('./dist/'));
});

This will compile all your QML sources (qml and javascript) and concatenate them in the /dist/qrc.js file.

About

A Gulp plugin for QmlWeb

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%