{"id":21889262,"url":"https://github.com/mikecao/gulp-glsl","last_synced_at":"2025-04-15T10:49:41.825Z","repository":{"id":57257656,"uuid":"69641505","full_name":"mikecao/gulp-glsl","owner":"mikecao","description":"Gulp plugin that converts GLSL code into minified strings","archived":false,"fork":false,"pushed_at":"2018-06-24T03:55:45.000Z","size":21,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T19:12:57.893Z","etag":null,"topics":["glsl","gulp-plugins","minified-strings","shaders"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikecao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-30T06:50:16.000Z","updated_at":"2020-10-08T16:18:30.000Z","dependencies_parsed_at":"2022-08-25T21:22:46.696Z","dependency_job_id":null,"html_url":"https://github.com/mikecao/gulp-glsl","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/mikecao%2Fgulp-glsl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikecao%2Fgulp-glsl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikecao%2Fgulp-glsl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikecao%2Fgulp-glsl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikecao","download_url":"https://codeload.github.com/mikecao/gulp-glsl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249057389,"owners_count":21205904,"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":["glsl","gulp-plugins","minified-strings","shaders"],"created_at":"2024-11-28T11:21:05.435Z","updated_at":"2025-04-15T10:49:41.801Z","avatar_url":"https://github.com/mikecao.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-glsl\nGulp plugin that converts GLSL code into minified strings.\n\n# Installation\n\n```\nnpm install gulp-glsl\n```\n\n# Usage\n\n```\nconst gulp = require('gulp');\nconst glsl = require('gulp-glsl');\n\ngulp.src('shaders/**/*.glsl')\n  .pipe(glsl())\n  .pipe(gulp.dest('build'));\n```\n\n# Options\n\n`format` - Output format (default: 'module')\n\n```\nglsl({ format: 'module' })\n```\n\n* `module`: The the output will be a CommonJS module:\n\n```\nmodule.exports = \"(GLSL code)\";\n```\n\n* `string`: The output will be a JSON encoded string:\n\n```\n\"(GLSL code)\"\n```\n\n* `raw`: The output will be a raw string:\n\n```\n(GLSL code)\n```\n\n* `object`: The output will be a single JSON object containing\nthe code for all passed in files:\n\n```\nmodule.exports = { \"file1\": \"(GLSL code)\", \"file2\": \"(GLSL code)\" };\n```\n\nIf the files are in subfolders, the JSON object will be nested with the folder names:\n\n```\nmodule.exports = {\n  \"folder1\": { file1\": \"(GLSL code)\" },\n  \"folder2\": { file2\": \"(GLSL code)\" }\n};\n```\n\n* `json`: Same as `object` but without the `module.exports` syntax:\n\n```\n{ \"file1\": \"(GLSL code)\", \"file2\": \"(GLSL code)\" }\n```\n\n`filename` - Filename for output object file. (default: 'glsl.js')\n\nYou can specify your own name by using the `filename` option. This only applies when \nthe format is `object` or `json`:\n\n```\nglsl({ format: 'object', filename: 'custom.js' })\n```\n\n`ext` - Extension to give output files. (default: '.js')\n\nThis only applies when the format is not `object` or `json`:\n\n```\nglsl({ format: 'raw', ext: '.txt' })\n```\n\n`es6` - Export an ES6 module. (default: false)\n\n```\nglsl({ es6: true })\n```\n\nWill use `export default` instead of `module.exports`.\n\n```\nexport default \"(GLSL code)\"\n```\n\n# License\n\nMIT License","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikecao%2Fgulp-glsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikecao%2Fgulp-glsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikecao%2Fgulp-glsl/lists"}