{"id":21811472,"url":"https://github.com/dnbard/gulp-melchior","last_synced_at":"2025-03-21T09:15:16.134Z","repository":{"id":21074080,"uuid":"24373622","full_name":"dnbard/gulp-melchior","owner":"dnbard","description":"Gulp plugin for Melchior.js modules optimization","archived":false,"fork":false,"pushed_at":"2014-10-13T15:29:18.000Z","size":176,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T06:38:16.367Z","etag":null,"topics":[],"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/dnbard.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":"2014-09-23T13:57:59.000Z","updated_at":"2014-10-06T16:26:11.000Z","dependencies_parsed_at":"2022-08-02T10:38:58.354Z","dependency_job_id":null,"html_url":"https://github.com/dnbard/gulp-melchior","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbard%2Fgulp-melchior","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbard%2Fgulp-melchior/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbard%2Fgulp-melchior/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbard%2Fgulp-melchior/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnbard","download_url":"https://codeload.github.com/dnbard/gulp-melchior/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244767798,"owners_count":20507110,"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":[],"created_at":"2024-11-27T13:44:47.584Z","updated_at":"2025-03-21T09:15:16.085Z","avatar_url":"https://github.com/dnbard.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Gulp Melchior\n=============\n\nOptimize (concatenate) [melchior.js](https://github.com/voronianski/melchior.js) projects using Gulp plugin.\n\nGetting Started\n---------------\n\nIf you haven't used [Gulp](http://gulpjs.com/) before, be sure to check out the [Getting Started](https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md#getting-started) guide, as it explains how to create a `Gulpfile` as well as install and use Gulp plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install gulp-melchior --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gulpfile with this line of JavaScript:\n\n```js\nvar melchior = require('gulp-melchior');\n```\n\nMelchior task\n-------------\n\nThis is basic task to concatenate all files in Melchior project\n\n```js\ngulp.task('melchior', function(){\n  gulp.src('config.js')\n    .pipe(melchior())\n    .pipe(gulp.dest('build'));\n});\n```\n\nOptions\n-------\n\n`melchior` plugin can be initialized with options object. In example:\n\n```js\n.pipe(melchior({\n  path: 'folder/'\n}));\n```\n\npath: String\n____________\n\nThis option is used when file with Melchior config isn't in the same folder as Gulp(this is normal).\n\nFolder structure:\n```\n├──gulpfile.js\n└──app\n   ├──js\n   │  ├──config.js\n   │  ├──app.js\n   │  └──module.js\n   ├──html\n   └──css\n```\n\nMelchiorJS config:\n```js\nmelchiorjs.config({\n  paths: {\n    'module': 'js/module.js'\n  }\n});\n```\n\nGulp Task example:\n```js\ngulp.task('melchior', function(){\n  gulp.src('app/js/config.js')\n    .pipe(melchior({\n      path: 'app/'\n    }))\n    .pipe(gulp.dest('build'));\n});\n```\n\n*Please end `path` with correct path delimeter character.*\n\nConcatenation of non-local files\n--------------------------------\n\nRight now non-local files don't concatenated in result file.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnbard%2Fgulp-melchior","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnbard%2Fgulp-melchior","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnbard%2Fgulp-melchior/lists"}