{"id":17023162,"url":"https://github.com/muchisx/rollup-theme-extensions","last_synced_at":"2025-04-12T09:32:57.273Z","repository":{"id":242460969,"uuid":"809568969","full_name":"muchisx/rollup-theme-extensions","owner":"muchisx","description":"A generator for Rollup configs to build Shopify theme app extensions with typescript and (in the future) css preprocessors.","archived":false,"fork":false,"pushed_at":"2024-06-25T21:41:54.000Z","size":73,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-31T11:51:43.864Z","etag":null,"topics":["rollup-config","shopify-app","shopify-theme"],"latest_commit_sha":null,"homepage":"","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/muchisx.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-03T02:51:44.000Z","updated_at":"2024-06-25T21:38:50.000Z","dependencies_parsed_at":"2024-06-03T06:42:12.098Z","dependency_job_id":"f60ad162-7120-4eac-be5e-0a0aaabb95c1","html_url":"https://github.com/muchisx/rollup-theme-extensions","commit_stats":null,"previous_names":["muchisx/rollup-theme-extensions"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muchisx%2Frollup-theme-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muchisx%2Frollup-theme-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muchisx%2Frollup-theme-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muchisx%2Frollup-theme-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muchisx","download_url":"https://codeload.github.com/muchisx/rollup-theme-extensions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223510342,"owners_count":17157306,"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":["rollup-config","shopify-app","shopify-theme"],"created_at":"2024-10-14T07:12:27.744Z","updated_at":"2024-11-07T12:04:35.766Z","avatar_url":"https://github.com/muchisx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rollup Theme Extensions (Shopify Apps)\n\n![NPM Version](https://img.shields.io/npm/v/rollup-theme-extensions)\n![GitHub last commit (branch)](https://img.shields.io/github/last-commit/muchisx/rollup-theme-extensions/main)\n\nThis is a generator for Rollup configs to build Shopify theme app extensions with typescript and (in the future) css preprocessors.\n\n## Features:\n\n- Typescript compilation\n- Typescript minification (optional)\n- Rollup bundling\n- Sourcemaps (currently turned off because Shopify doesn't allow sourcemaps file extension inside the /assets folder)\n- CSS minification (optional)\n- Custom source folder\n- Custom output folder\n\n## Installation\n\n```bash\nnpm install --save-dev rollup-theme-extensions rollup\n```\n\n## Usage\n\n\u003e _in `rollup.config.mjs`_\n\n```js\n// @ts-check\nimport { createRollupConfig } from \"rollup-theme-extensions\";\n\nconst extensionsSourceDir = \"extensions.src\";\nconst extensionsDir = \"extensions\";\n\nexport default createRollupConfig({\n  extensionsSourceDir,\n  extensionsDir,\n  minifyCss: true,\n  minifyJs: true,\n});\n```\n\n\u003e _in `package.json`_\n\n```json\n{\n  \"scripts\": {\n    \"ext:theme-build\": \"npx rollup -c\",\n    \"ext:theme-watch\": \"npx rollup -c --watch\"\n  }\n}\n```\n\nYou can call your scripts however you want, the ones above are just examples, and you can also make them more specific to your project (like launch a specific config file).\n\n## Options\n\n- `extensionsSourceDir` (string): The source folder where your extension files are located (it will look for folders that start with `theme-` prefix, and inside them, it will look for a folder called `assets`, and use those files for compilation).\n- `extensionsDir` (string): The output folder where the compiled files will be placed (they will always be placed inside an `assets` folder).\n- `minifyCss` (boolean): Whether to minify the CSS files or not.\n- `minifyJs` (boolean): Whether to minify the JS files or not.\n\n## License\n\nMIT License\n\n## Contributing\n\nFeel free to open an issue or a pull request if you have any suggestions or improvements.\n\n## Author\n\n[muchisx](https://github.com/muchisx)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuchisx%2Frollup-theme-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuchisx%2Frollup-theme-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuchisx%2Frollup-theme-extensions/lists"}