{"id":19299177,"url":"https://github.com/bmatcuk/glslify-brunch","last_synced_at":"2025-02-24T01:16:46.671Z","repository":{"id":34752345,"uuid":"38733041","full_name":"bmatcuk/glslify-brunch","owner":"bmatcuk","description":"Run glsl files through glslify in brunch","archived":false,"fork":false,"pushed_at":"2022-12-30T20:14:36.000Z","size":169,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T02:02:38.051Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bmatcuk.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":"2015-07-08T05:06:03.000Z","updated_at":"2020-07-23T22:35:25.000Z","dependencies_parsed_at":"2023-01-15T09:01:28.585Z","dependency_job_id":null,"html_url":"https://github.com/bmatcuk/glslify-brunch","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmatcuk%2Fglslify-brunch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmatcuk%2Fglslify-brunch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmatcuk%2Fglslify-brunch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmatcuk%2Fglslify-brunch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bmatcuk","download_url":"https://codeload.github.com/bmatcuk/glslify-brunch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240400334,"owners_count":19795333,"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-09T23:10:25.405Z","updated_at":"2025-02-24T01:16:46.621Z","avatar_url":"https://github.com/bmatcuk.png","language":"JavaScript","funding_links":[],"categories":["Brunch plugins"],"sub_categories":["Compilers"],"readme":"# glslify-brunch\nRun glsl files through [glslify](https://github.com/stackgl/glslify) in [brunch](http://brunch.io/).\n\n## Installation\nInstall the plugin via npm with `npm install --save glslify-brunch`\n\nOr manually:\n\n* Add `\"glslify-brunch\": \"x.y.z\"` to `package.json` and run `npm install`\n* If you want to use the git version, add: `\"glslify-brunch\": \"git+ssh://git@github.com:bmatcuk/glslify-brunch.git\"`\n\n## Configuration\nIn your `brunch-config.coffee`, you can add glslify transform options:\n\n```coffee\nexports.config =\n  ...\n  plugins:\n    glslify:\n      transform: ...\n```\n\nTransform options are passed unmolested straight into glslify, so see the [glslify documentation](https://github.com/stackgl/glslify#source-transforms) for the format of the options.\n\nYou can also configure how glslify-brunch converts your GLSL into javascript. The default depends on your `modules.wrapper` setting in your `brunch-config.coffee` file:\n\n* If `modules.wrapper = 'commonjs'` (the default brunch setting), the output will be:\n\n  ```javascript\n  module.exports = \"...glsl...\";\n  ```\n* If `modules.wrapper = 'amd'`, the output will be:\n\n  ```javascript\n  define([], function() {\n    return \"...glsl...\";\n  });\n  ```\n* Otherwise, the output will be:\n\n  ```javascript\n  \u003cbase filename\u003eGlsl = \"...glsl...\";\n  ```\n\n  Where `\u003cbase filename\u003e` of `/path/to/file.ext` would be `file`.\n\nIf you'd like to change this behavior, you can set the `wrapper` option:\n\n```coffee\nexports.config =\n  ...\n  plugins:\n    glslify:\n      wrapper: function(path, data) { return \"...whatever...\"; }\n```\n\nMake sure to `JSON.stringify(data)`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmatcuk%2Fglslify-brunch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbmatcuk%2Fglslify-brunch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmatcuk%2Fglslify-brunch/lists"}