{"id":13451951,"url":"https://github.com/FredKSchott/pika-pack","last_synced_at":"2025-03-23T19:33:23.988Z","repository":{"id":42222113,"uuid":"165472526","full_name":"FredKSchott/pika-pack","owner":"FredKSchott","description":"📦⚡️ Build your npm package using composable plugins. https://www.pika.dev/blog/introducing-pika-pack/","archived":true,"fork":false,"pushed_at":"2022-04-10T00:00:46.000Z","size":888,"stargazers_count":2314,"open_issues_count":8,"forks_count":36,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-05-30T16:33:58.459Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FredKSchott.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-13T06:14:38.000Z","updated_at":"2024-05-19T05:52:46.000Z","dependencies_parsed_at":"2022-08-25T04:21:29.634Z","dependency_job_id":null,"html_url":"https://github.com/FredKSchott/pika-pack","commit_stats":null,"previous_names":["pikapkg/pack"],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FredKSchott%2Fpika-pack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FredKSchott%2Fpika-pack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FredKSchott%2Fpika-pack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FredKSchott%2Fpika-pack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FredKSchott","download_url":"https://codeload.github.com/FredKSchott/pika-pack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221900704,"owners_count":16898986,"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-07-31T07:01:08.027Z","updated_at":"2024-10-28T18:30:25.080Z","avatar_url":"https://github.com/FredKSchott.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","📦 Legacy \u0026 Inactive Projects"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Logo\" src=\"https://www.pika.dev/static/img/pika-pack-logo.jpg\" width=\"280\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003e@pika/pack\u003c/strong\u003e • npm package building, reimagined.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Demo\" src=\"https://www.pika.dev/static/img/pack-build-demo.gif\" width=\"720\"\u003e\n\u003c/p\u003e\n\n\n## @pika/pack helps you build amazing packages without the hassle:\n\n- **Simple** \u0026nbsp;⚡️\u0026nbsp; Use pre-configured plugins to build your package for you.\n- **Flexible** \u0026nbsp;🏋️‍♀️\u0026nbsp; Choose plugins and optimizations to match your needs.\n- **Holistic** \u0026nbsp;⚛️\u0026nbsp; Let us build the entire package... *including package.json.*\n\n\n## Quickstart\n\n```bash\nnpx @pika/pack                           # Run once.\nnpm install --dev @pika/pack             # Or, run multiple times using \"pika pack\" in any package.json scripts\n```\n\n😎🆒! So now what? If you run `pika build` with an empty pipeline, you'll get an empty package build. **@pika/pack** lets you connect pre-configured plugins to build and optimize your package for you. Plugins wrap already-popular tools like Babel and Rollup with npm-optimized config options, removing the need to fiddle with much (if any) configuration yourself. You even get a generated package.json manifest configured for you ***automatically***.\n\n### 1. Create a project pipeline out of simple, pluggable builders.\n\n```js\n// Before: Your top-level package.json manifest:\n{\n  \"name\": \"simple-package\",\n  \"version\": \"1.0.0\",\n  \"@pika/pack\": {\n    \"pipeline\": [\n      [\"@pika/plugin-standard-pkg\", {\"exclude\": [\"__tests__/**/*\"]}],\n      [\"@pika/plugin-build-node\"],\n      [\"@pika/plugin-build-web\"],\n      [\"@pika/plugin-build-types\"]\n    ]\n  }\n}\n```\n\nBuilders are simple, single-purpose build plugins defined in your `package.json`. For example, `@pika/plugin-build-node` \u0026 `@pika/plugin-build-web` build your package for those different environments. Other, more interesting builders can bundle your web build for [unpkg](https://unpkg.com), generate TypeScript definitions from your JavaScript, addon a standard CLI wrapper for Node.js builds, and even compile non-JS languages to WASM (with JS bindings added).\n\n### 2. Builders handle everything, including package configuration.\n\n```js\n// After: your built \"pkg/\" package.json manifest:\n{\n  \"name\": \"simple-package\",\n  \"version\": \"1.0.0\",\n  // Multiple distributions, built \u0026 configured automatically:\n  \"esnext\": \"dist-src/index.js\",\n  \"main\": \"dist-node/index.js\",\n  \"module\": \"dist-web/index.js\",\n  \"types\": \"dist-types/index.d.ts\",\n  // With sensible package defaults:\n  \"sideEffects\": false,\n  \"files\": [\"dist-*/\", \"assets/\", \"bin/\"]\n}\n```\n\nThis is all possible because **@pika/pack** builds your entire package: code, assets, and even package.json manifest. By building the entire package, you end up with a fully-built `pkg/` directory, ready to publish. Entry points like \"main\", \"module\", \"umd:main\", \"types\", \"unpkg\", \"files\", and even advanced options like \"sideEffects\" are all handled by your build pipeline.\n\n\n## Build Plugins\n\n**[Check out the full list](https://github.com/pikapkg/builders)** of official \u0026 community-written @pika/pack plugins!\n\n\n## Lerna Support\n\nCurious about integrating @pika/pack with Lerna? Our official collection of plugins is a Lerna repo that uses @pika/pack to build each package! [Check it out](https://github.com/pikapkg/builders) to see how easy it is to use the two tools together.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFredKSchott%2Fpika-pack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFredKSchott%2Fpika-pack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFredKSchott%2Fpika-pack/lists"}