{"id":19985920,"url":"https://github.com/qmlweb/gulp-qmlweb","last_synced_at":"2025-05-04T07:30:54.174Z","repository":{"id":57258653,"uuid":"51691317","full_name":"qmlweb/gulp-qmlweb","owner":"qmlweb","description":"A Gulp plugin for QmlWeb","archived":false,"fork":false,"pushed_at":"2022-04-04T15:03:11.000Z","size":23,"stargazers_count":5,"open_issues_count":2,"forks_count":3,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-10-06T11:19:00.502Z","etag":null,"topics":["gulp","qml","qmlweb"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qmlweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-14T11:05:03.000Z","updated_at":"2022-03-23T01:03:35.000Z","dependencies_parsed_at":"2022-08-28T19:31:54.800Z","dependency_job_id":null,"html_url":"https://github.com/qmlweb/gulp-qmlweb","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qmlweb%2Fgulp-qmlweb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qmlweb%2Fgulp-qmlweb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qmlweb%2Fgulp-qmlweb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qmlweb%2Fgulp-qmlweb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qmlweb","download_url":"https://codeload.github.com/qmlweb/gulp-qmlweb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224388539,"owners_count":17303104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gulp","qml","qmlweb"],"created_at":"2024-11-13T04:26:50.758Z","updated_at":"2024-11-13T04:26:51.296Z","avatar_url":"https://github.com/qmlweb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## A Gulp plugin to produce pre-parsed assets for [QmlWeb](https://github.com/qmlweb/qmlweb)\n\n[![Join the chat at https://gitter.im/qmlweb/qmlweb](https://badges.gitter.im/qmlweb/qmlweb.svg)](https://gitter.im/qmlweb/qmlweb)\n\n[![npm](https://img.shields.io/npm/v/gulp-qmlweb.svg)](https://www.npmjs.com/package/gulp-qmlweb)\n[![GitHub tag](https://img.shields.io/github/tag/qmlweb/gulp-qmlweb.svg)](https://github.com/qmlweb/gulp-qmlweb/releases)\n\nThis gulp plugin takes your project's Qt resource file (qrc) and generates a\nJavaScript file (qrc.js) that you can bundle along with your qmlweb\napplication, allowing you to load assets in your project using the `qrc:/`\nscheme.\n\n## Installation\n\nAdd the following dependencies to your `package.json`:\n\n```js\n{\n  \"name\": \"QmlWebProject\",\n  \"scripts\": {\n    \"rcc\": \"gulp rcc\",\n    \"watch\": \"gulp watch\"\n  },\n  \"devDependencies\": {\n    \"gulp\": \"^4.0.0\",\n    \"gulp-qmlweb\": \"~0.1.0\"\n  }\n}\n```\n\n## Usage\n\nCreate a `Gulpfile.js` file such as:\n\n```js\nvar gulp = require(\"gulp\");\nvar qrc = require(\"gulp-qmlweb\");\n\nvar qrcSource = \"resources.qrc\";\nvar sources = [\n    qrcSource,\n    \"qml/**/*.qml\",\n    \"qml/**/*.js\",\n    \"qml/**/qmldir\"\n];\nvar output = \"./dist/\";\n\ngulp.task(\"rcc\", function() {\n  return gulp.src(qrcSource)\n    .pipe(qrc())\n    .pipe(gulp.dest(output));\n});\n\ngulp.task(\"watch\", gulp.series(\"rcc\", function() {\n  return gulp.watch(sources, gulp.series(\"rcc\"));\n}));\n```\n\nRunning `npm run rcc` will parse your Qt resource file, and generate a\n`dist/qrc.js` file.\n\nRunning `npm run watch` will watch the files specified in the `qrcSource` and\n`sources` variable in your Gulpfile, and run the `rcc` task whenever a change\nis detected.\n\nThe generated file will be availabel at `./dist/qrc.js`. Including this file in\nyour application will make all the registered resources available to QmlWeb\nthrough `QmlWeb.qrc`, allowing you to use QML imports, or loading files (such\nas pictures) using the `qrc:/` scheme.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqmlweb%2Fgulp-qmlweb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqmlweb%2Fgulp-qmlweb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqmlweb%2Fgulp-qmlweb/lists"}