{"id":19985887,"url":"https://github.com/aeberdinelli/bundlerj","last_synced_at":"2026-05-13T04:32:39.301Z","repository":{"id":57191582,"uuid":"181077045","full_name":"aeberdinelli/bundlerj","owner":"aeberdinelli","description":"A simplified javascript bundler to generate a single file with all the app dependencies.","archived":false,"fork":false,"pushed_at":"2024-02-27T01:54:47.000Z","size":18,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T12:57:19.580Z","etag":null,"topics":["bundler","es6","minify","node","uglifyjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/aeberdinelli.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":"2019-04-12T20:11:52.000Z","updated_at":"2019-07-03T16:28:38.000Z","dependencies_parsed_at":"2024-11-13T06:15:33.636Z","dependency_job_id":null,"html_url":"https://github.com/aeberdinelli/bundlerj","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aeberdinelli%2Fbundlerj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aeberdinelli%2Fbundlerj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aeberdinelli%2Fbundlerj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aeberdinelli%2Fbundlerj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aeberdinelli","download_url":"https://codeload.github.com/aeberdinelli/bundlerj/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241419695,"owners_count":19959962,"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":["bundler","es6","minify","node","uglifyjs"],"created_at":"2024-11-13T04:26:42.720Z","updated_at":"2025-11-27T06:06:20.325Z","avatar_url":"https://github.com/aeberdinelli.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bundler JS (bundlerj)\nA simplified javascript bundler to generate a single file with all the app dependencies\n\n## Options\nThe bundler receives parameters within an object, here's an example:\n\n```javascript\nconst options = {\n\t/**\n\t * The source to get your files from.\n\t * You can use a string with a folder name or an array with folders\n\t */\n\t\"files\": \"src/\",\n\n\t/**\n\t * The route to the destination file\n\t */\n\t\"output\": \"dist/app.packed.js\",\n\n\t/**\n\t * You can add blacklist rules which will be translated into regex to ignore certain files\n\t */\n\t\"blacklist\": [\n\t\t// If you have angular libs, you can ignore those from your packed app\n\t\t\"^(.*)angular-(.*)$\", \n\t\t\n\t\t// Let's say you want to ignore all html or xml files\n\t\t\"^(.*)\\\\.(html|xml)$\" \n\t],\n\n\t/**\n\t * This puts every JS file content into an anonymous function.\n\t * You should consider using this if you have several variables with the same names around more than one file.\n\t * For example:\n\t * \n\t * (function() {\n\t *     console.log('Hello world');\n\t * })();\n\t */\n\t\"isolate\": true,\n\n\t/**\n\t * Give some feedback to the console while creating the bundle\n\t */\n\t\"debug\": true\n}\n```\n\n## Install\nJust run:\n```\nnpm install --save-dev bundlerj\n```\n\nYou can install it globally for using CLI in several proyects too:\n```\nnpm install -g bundlerj\n```\n\n## Usage\n### CLI\nSome command line options are available.\n\n```\nUsage: bundler [options] [command]\n\nOptions:\n  -V, --version           output the version number\n  -g, --config \u003cfile\u003e     Ignores everything else and uses a config file instead\n  -f, --source \u003cfolders\u003e  Specify the folder to get the source files from\n  -o, --output \u003coutput\u003e   Specify the full path to the output file, including name\n  -i, --isolate           Puts every file content inside an anonymous function\n  -s, --sort              Sort the file paths alphabetically before creating the bundle\n  -p, --progress          Show progress\n  --ignore-charset        Do not try to get the file charset (assumes everything is UTF-8, improves speed)\n  -h, --help              output usage information\n\nCommands:\n  generate                Generates the bundled javascript file\n  clear                   Clears the output file\n  help [cmd]              display help for [cmd]\n```\n\nFor example:\n```\nbundle generate --source src/js --output dist/bundle.js --progress\n```\n\n### Using the available method\n```javascript\nconst bundle = require('bundlerj');\n\nconst SETTINGS = {\n\t// Your settings here\n};\n\nbundle(SETTINGS);\n```\n\n### Using gulp\nYou may setup a gulp task in order to build your bundle every time a file is updated:\n\n```javascript\nconst gulp = require('gulp');\nconst bundler = require('bundlerj');\n\ngulp.task('bundle-js', function() {\n\tbundler({\n\t\t// Settings\n\t});\n});\n\ngulp.task('default', ['bundle-js'], function() {\n\tgulp.watch('./src/js/**/*.js', ['bundle-js']);\n});\n```\n\nThat will watch changes in your `src/js` folder and then run the bundler.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faeberdinelli%2Fbundlerj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faeberdinelli%2Fbundlerj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faeberdinelli%2Fbundlerj/lists"}