{"id":16294040,"url":"https://github.com/axetroy/libpack","last_synced_at":"2025-07-23T00:03:53.945Z","repository":{"id":20159388,"uuid":"89039715","full_name":"axetroy/libpack","owner":"axetroy","description":"Build your library without tears.:rofl:","archived":false,"fork":false,"pushed_at":"2022-11-05T20:47:31.000Z","size":199,"stargazers_count":9,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T10:38:59.405Z","etag":null,"topics":["configless","library","packer","webpack"],"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/axetroy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-22T02:48:16.000Z","updated_at":"2023-03-02T08:54:19.000Z","dependencies_parsed_at":"2022-09-14T03:40:36.869Z","dependency_job_id":null,"html_url":"https://github.com/axetroy/libpack","commit_stats":null,"previous_names":["axetroy/webpack-configless"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/axetroy/libpack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Flibpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Flibpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Flibpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Flibpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axetroy","download_url":"https://codeload.github.com/axetroy/libpack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Flibpack/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265612774,"owners_count":23798154,"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":["configless","library","packer","webpack"],"created_at":"2024-10-10T20:13:57.244Z","updated_at":"2025-07-23T00:03:53.915Z","avatar_url":"https://github.com/axetroy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libpack\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/axetroy/libpack.svg)](https://greenkeeper.io/)\n[![Build Status](https://travis-ci.org/axetroy/libpack.svg?branch=master)](https://travis-ci.org/axetroy/libpack)\n[![Dependency](https://david-dm.org/axetroy/libpack.svg)](https://david-dm.org/axetroy/libpack)\n![License](https://img.shields.io/badge/license-MIT-green.svg)\n[![Prettier](https://img.shields.io/badge/Code%20Style-Prettier-green.svg)](https://github.com/prettier/prettier)\n![Node](https://img.shields.io/badge/node-%3E=6.0-blue.svg?style=flat-square)\n[![npm version](https://badge.fury.io/js/%40axetroy%2Flibpack.svg)](https://badge.fury.io/js/%40axetroy%2Flibpack)\n\nCLI tool for quickly build your library with zero configuration.\n\nSupport:\n\n* [x] es2015/es2016/es2017/es2018...\n* [x] Flow\n* [x] Typescript\n* [x] React\n* [x] Vue\n\n## Installation\n\n```bash\nnpm install @axetroy/libpack -g\n```\n\n## Usage\n\n```\n$ libpack --help\n\n   libpack 0.5.2 - Build your library without tears.\n\n   USAGE\n\n     libpack \u003centry\u003e \u003coutput\u003e\n\n   ARGUMENTS\n\n     \u003centry\u003e       Entry file path      required      default: \"./index.js\"\n     \u003coutput\u003e      Output dir path      required      default: \"./build/\"  \n\n   OPTIONS\n\n     --cwd \u003ccwd\u003e                          Current work dir                                                                              optional\n     -w, --watch                          Watch the file change                                                                         optional      default: false\n     --server                             Server the file                                                                               optional      default: false\n     --target \u003ctarget\u003e                    Build target, https://webpack.js.org/concepts/targets/                                        optional      default: \"web\"\n     --prepack                            Prepack the Javascript with facebook/prepack                                                  optional      default: false\n     --library \u003clibrary\u003e                  Output library name, default your package.json name field                                     optional\n     --libraryTarget \u003clibraryTarget\u003e      Output library target, https://webpack.js.org/configuration/output/#output-librarytarget      optional      default: \"umd\"\n     --externals \u003cexternals\u003e              Externals library, eg. \"--externals react,react-dom\"                                          optional      default: []\n\n   GLOBAL OPTIONS\n\n     -h, --help         Display help\n     -V, --version      Display version\n     --no-color         Disable colors\n     --quiet            Quiet mode - only displays warn and error messages\n     -v, --verbose      Verbose mode - will also output debug messages\n```\n\n## API\n\n```javascript\nconst libpack = require(\"@axetroy/libpack\");\n\nlibpack({\n  cwd: process.cwd(),\n  watch: false,\n  entry: \"./index.js\",\n  output: \"./build\",\n  prepack: false,\n  library: \"my-library-name\",\n  libraryTarget: \"umd\",\n  externals: [],\n  target: \"web\",\n  server: false\n})\n  .then(function() {\n    console.log(\"build success...\");\n  })\n  .catch(function(err) {\n    console.error(err);\n  });\n```\n\n## Example\n\n```bash\nlibpack ./index.js ./build\nlibpack ./index.jsx ./build\nlibpack ./index.ts ./build\nlibpack ./index.tsx ./build\nlibpack ./index.vue ./build\n```\n\n## Contributing\n\n```bash\ngit clone https://github.com/axetroy/libpack.git\ncd ./libpack\nnpm i\nnpm test\n```\n\nYou can flow [Contribute Guide](https://github.com/axetroy/libpack/blob/master/contributing.md)\n\n## Contributors\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\n| [\u003cimg src=\"https://avatars1.githubusercontent.com/u/9758711?v=3\" width=\"100px;\"/\u003e\u003cbr /\u003e\u003csub\u003eAxetroy\u003c/sub\u003e](http://axetroy.github.io)\u003cbr /\u003e[💻](https://github.com/axetroy/libpack/commits?author=axetroy) 🔌 [⚠️](https://github.com/axetroy/libpack/commits?author=axetroy) [🐛](https://github.com/axetroy/libpack/issues?q=author%3Aaxetroy) 🎨 |\n| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |\n\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\n## License\n\nThe [MIT License](https://github.com/axetroy/libpack/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxetroy%2Flibpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxetroy%2Flibpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxetroy%2Flibpack/lists"}