gulp-qmlweb

0.0.7 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-qmlweb

Weekly Downloads

0

Version

0.0.7

License

none

Last publish

Collaborators

  • chalker