{"id":16295706,"url":"https://github.com/hamlim/rgkp","last_synced_at":"2025-04-09T13:17:57.059Z","repository":{"id":65490040,"uuid":"309193628","full_name":"hamlim/rgkp","owner":"hamlim","description":"pkgr 🤔","archived":false,"fork":false,"pushed_at":"2020-11-09T01:59:17.000Z","size":35929,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T00:47:47.736Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/hamlim.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}},"created_at":"2020-11-01T21:39:32.000Z","updated_at":"2020-11-09T01:59:20.000Z","dependencies_parsed_at":"2023-01-26T00:32:40.231Z","dependency_job_id":null,"html_url":"https://github.com/hamlim/rgkp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"hamlim/template-react-library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamlim%2Frgkp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamlim%2Frgkp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamlim%2Frgkp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamlim%2Frgkp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hamlim","download_url":"https://codeload.github.com/hamlim/rgkp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045270,"owners_count":21038557,"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-10-10T20:19:35.046Z","updated_at":"2025-04-09T13:17:57.023Z","avatar_url":"https://github.com/hamlim.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rgkp\n\nTransform a collection of source files into a browser compatible collection of\nfiles.\n\n## Install and Run\n\n```sh\nyarn add -D rgkp\n```\n\n```sh\nyarn rgkp ./src/application.tsx\n```\n\n## Usage via Node:\n\n```tsx\nimport rgkp, { RgkpConfig } from 'rgkp'\n\nrgkp({\n  source: 'path/to/file.tsx',\n  // Optional\n  // Function to return `@babel/parser`'s `parse` options\n  // Will be merged with `'sourceType': 'module'`\n  resolveBabelParseOptions({ filename, content }) {\n    return {\n      plugins: ['jsx', 'typescript'],\n    }\n  },\n  // Optional\n  // Function to return the file extension for any ambiguous imports\n  // e.g. `import './Counter'`\n  // Will be called with `source` which is the full filepath to the file importing the ambiguous file\n  // and with `imported`, the import specifier encountered\n  resolveAmbiguousImportedFileExtension({ source, imported }) {\n    return `.tsx`\n  },\n  // Optional\n  // Function to resolve the NPM dependencies of a project to URL's\n  // Note: Many of the defaults here _may_ not be what you want!\n  resolveAmbiguousDependencies(packageJSON) {\n    return {\n      react: `https://unpkg.com/react@16.14.0/umd/react.production.min.js`,\n    }\n  },\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamlim%2Frgkp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamlim%2Frgkp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamlim%2Frgkp/lists"}