{"id":13516977,"url":"https://github.com/boomyjee/bergamot","last_synced_at":"2026-03-06T10:14:25.840Z","repository":{"id":143855334,"uuid":"253345491","full_name":"boomyjee/bergamot","owner":"boomyjee","description":"TeaCSS/CommonJS capable simple and blazing fast bundler without AST transforms","archived":false,"fork":false,"pushed_at":"2022-07-20T23:44:56.000Z","size":55,"stargazers_count":43,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-01T21:35:51.857Z","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/boomyjee.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-04-05T22:35:57.000Z","updated_at":"2024-03-24T06:11:29.000Z","dependencies_parsed_at":"2023-12-08T19:15:09.128Z","dependency_job_id":null,"html_url":"https://github.com/boomyjee/bergamot","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/boomyjee%2Fbergamot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boomyjee%2Fbergamot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boomyjee%2Fbergamot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boomyjee%2Fbergamot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boomyjee","download_url":"https://codeload.github.com/boomyjee/bergamot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246432899,"owners_count":20776481,"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-08-01T05:01:28.036Z","updated_at":"2026-03-06T10:14:24.990Z","avatar_url":"https://github.com/boomyjee.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\r\n    \u003cimg alt=\"Bergamot\" title=\"Bergamot\" src=\"/images/bergamot.jpg\"\u003e\r\n\u003c/p\u003e\r\n\r\n\u003cp align=\"center\"\u003e\r\n    \u003cimg alt=\"license\" src=\"https://img.shields.io/badge/license-MIT-blue.svg\"\u003e\r\n    \u003cimg alt=\"awesome\" src=\"https://camo.githubusercontent.com/fef0a78bf2b1b477ba227914e3eff273d9b9713d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617765736f6d652533462d796573212d627269676874677265656e2e737667\"\u003e\r\n    \u003cimg alt=\"state\" src=\"https://img.shields.io/badge/state-success-lightgrey\"\u003e\r\n    \u003cimg alt=\"javascript\" src=\"https://img.shields.io/badge/javascript-+-green\"\u003e\r\n\u003c/p\u003e\r\n\r\n\u003cp align=\"center\"\u003e\r\n    TeaCSS/CommonJS capable simple and blazing fast ES6-only bundler without AST transforms.\r\n\u003c/p\u003e\r\n\r\n\r\n## Description\r\nBundle css \u0026 js into single file\r\nCan also process `.tea` files (see teacss.org)\r\n\r\n## Install\r\n```\r\nnpm install --global bergamot \r\n\r\n// or run without install\r\nnpx bergamot watch\r\n```\r\n\r\n## Use\r\ncreate \"bergamot.config.js\"\r\n```javascript\r\nmodule.exports = {\r\n    project: {\r\n        entry_point: \"\u003cpath_to_folder\u003e/index.js\",\r\n        bundle_path: \"\u003cpath_to_bundle\u003e/bundle.min.js\",\r\n        js_transform: (js) =\u003e require(\"@babel/core\").transform(js, {\r\n            plugins: [\"@babel/plugin-transform-arrow-functions\"]\r\n        }); // custom js transformation (can be used with babel) \r\n    }\r\n}\r\n```\r\n\r\nThen in console:\r\n```\r\nbergamot \u003ccommand\u003e \u003cconfig-key\u003e\r\n```\r\n\r\n### Commands\r\n- \"build\"  - build project files (dev build)\r\n- \"watch\"  - build and watch for changes\r\n- \"minify\" - build and minify (for production)\r\n\r\nYou can have multiple bundles in one config file:\r\n```javascript\r\nmodule.exports = {\r\n    config_key: {\r\n        root_path: \"\u003cpath_to_root_folder\u003e\",\r\n        entry_point: \"\u003cpath_to_folder\u003e/index.js\",\r\n        bundle_path: \"\u003cpath_to_bundle\u003e/bundle.min.js\", //file name can be changed\r\n        js_transform: (js) =\u003e ''// custom js transformation \r\n    },\r\n    other_config_key: {\r\n        entry_point: \"\u003cpath_to_folder\u003e/index.js\",\r\n        bundle_path: \"\u003cpath_to_bundle\u003e/bundle.min.js\", //file name can be changed\r\n    }\r\n}\r\n```\r\nthen call\r\n```\r\nbergamot watch other_config_key\r\n```\r\n\r\n### License\r\n\r\nApplication is [MIT licensed](./LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboomyjee%2Fbergamot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboomyjee%2Fbergamot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboomyjee%2Fbergamot/lists"}