{"id":15207139,"url":"https://github.com/jamen/dist-js","last_synced_at":"2026-02-28T05:19:54.304Z","repository":{"id":57120116,"uuid":"108798023","full_name":"jamen/dist-js","owner":"jamen","description":"Create dist version of your JS.","archived":false,"fork":false,"pushed_at":"2017-11-02T20:00:25.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-02T00:54:12.960Z","etag":null,"topics":[],"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/jamen.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":"2017-10-30T03:36:18.000Z","updated_at":"2023-02-19T08:50:38.000Z","dependencies_parsed_at":"2022-08-23T20:00:11.036Z","dependency_job_id":null,"html_url":"https://github.com/jamen/dist-js","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jamen/dist-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fdist-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fdist-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fdist-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fdist-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamen","download_url":"https://codeload.github.com/jamen/dist-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamen%2Fdist-js/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270385467,"owners_count":24574556,"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","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09-28T06:22:31.250Z","updated_at":"2026-02-28T05:19:49.284Z","avatar_url":"https://github.com/jamen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# @jamen/dist-js\n\n\u003e Create dist version of your JS.\n\nCombines tools for adding comptibility and optimizations to your JS compiler's\noutput.\n\n```sh\n$ dist-js dist/app.js\n```\n\nThis will\n\n- Run `babel` with `babel-preset-env`.\n- Run `uglify-es`.\n- Use sourcemaps when given input and output paths.\n\nAlso see [`@jamen/dist-css`](https://github.com/jamen/dist-css) for your CSS files.\n\n## Install\n\n```sh\n$ npm i -D @jamen/dist-js\n```\n\n### `dist-js [file] [...options]`\n\nThe easiest way to use the tool is transforming a file in place:\n\n```sh\n$ dist-js dist/app.js\n```\n\nIt will also detect when you want to use stdio:\n\n```sh\n# Using stdout\n$ dist-js dist/app.js | wc -c\n6780\n\n# Using stdin\n$ echo \"console.log(1 + 2)\" | dist-js dist/app.js\nfinished dist-js at dist/app.js\n\n# Using both\n$ echo \"1 + 2\" | dist-js \u003e dist/app.js\n```\n\nAlternative to this, use the `--input`, `-i` and `--output`, `-o` flags, where\nif a flag is absent it uses the stdio equivalent instead.\n\nAlso note that you can only accept a sourcemap with an input path, and write a\nsourcemap with an output path.  Inline sourcemaps are not supported out of\nsimplicity.\n\nTo disable sourcemaps regardless, supply the `--no-sourcemap` flag:\n\n```sh\n$ dist-js --no-sourcemap dist/app.js\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fdist-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamen%2Fdist-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamen%2Fdist-js/lists"}