{"id":18609644,"url":"https://github.com/unlight/fusebox-gulp-plugin","last_synced_at":"2025-04-10T22:31:33.435Z","repository":{"id":57243300,"uuid":"77477860","full_name":"unlight/fusebox-gulp-plugin","owner":"unlight","description":"Adapt gulp plugins to work with fuse-box","archived":false,"fork":false,"pushed_at":"2017-04-26T17:57:57.000Z","size":28,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T19:07:18.307Z","etag":null,"topics":["fusebox"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/unlight.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-12-27T19:25:21.000Z","updated_at":"2017-07-14T14:29:24.000Z","dependencies_parsed_at":"2022-09-15T09:02:59.487Z","dependency_job_id":null,"html_url":"https://github.com/unlight/fusebox-gulp-plugin","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Ffusebox-gulp-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Ffusebox-gulp-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Ffusebox-gulp-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unlight%2Ffusebox-gulp-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unlight","download_url":"https://codeload.github.com/unlight/fusebox-gulp-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248309703,"owners_count":21082263,"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":["fusebox"],"created_at":"2024-11-07T03:06:45.439Z","updated_at":"2025-04-10T22:31:33.160Z","avatar_url":"https://github.com/unlight.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"fusebox-gulp-plugin\n===================\nAdapt gulp plugins to work with fuse-box.\n\n## Usage\n```js\nconst fsbx = require('fuse-box');\nconst g = require('gulp-load-plugins')();\nconst { GulpPlugin } = require('fusebox-gulp-plugin');\n\nconst fuseBox = fsbx.FuseBox.init({\n    homeDir: 'src/',\n    outFile: './build/app.js',\n    plugins: [\n        // Other fusebox plugins...\n        GulpPlugin([\n        \t(file) =\u003e g.replace('foo', 'bar'),\n        \t// Other gulp plugins...\n        ])\n    ]\n});\n```\n\n**Note:**\nGulpPlugin is applicable to all files, so you must control type of transform by `ChainPlugin`\n(see examples below).\n\nAlso, you can use only those plugins which only manipulates `contents` property of vinyl file.  \nApplying of some plugins, like `gulp-rename`, does not make sense,\nbecause they do not affect `contents`, but others - path, dirname, etc.\n\n\n### API\n```js\nfunction GulpPlugin(streamFactories: ((file: File) =\u003e stream.Transform)[])\n```\n\n### Examples\n\n```js\nconst { GulpPlugin } = require('fusebox-gulp-plugin');\nconst g = require('gulp-load-plugins')();\n```\n\n#### Markdown\n```js\nconst plugins = [\n    [\n        /\\.md$/,\n        GulpPlugin([\n            () =\u003e g.markdown(),\n        ]),\n        RawPlugin({ extensions: ['.md'] }),\n    ]\n];\n```\n```js\nvar doc = require('./doc.md')\n```\n\n#### JSON5\n```js\nconst plugins = [\n    {\n        init: (k) =\u003e k.allowExtension('.json5')\n    },\n    [\n        /\\.json5$/,\n        GulpPlugin([\n            () =\u003e g.json5(),\n        ]),\n        JSONPlugin({}),\n    ]\n];\n```\n```js\nconst data = require('./data.json5');\n```\n\n### DEBUG\n```\ninspect node_modules/ava/profile.js lib/index.spec.js\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funlight%2Ffusebox-gulp-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funlight%2Ffusebox-gulp-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funlight%2Ffusebox-gulp-plugin/lists"}