{"id":24510742,"url":"https://github.com/rhdeck/lernaman","last_synced_at":"2025-03-15T09:41:32.564Z","repository":{"id":104234097,"uuid":"118772090","full_name":"rhdeck/lernaman","owner":"rhdeck","description":"Manager for lerna repositories as sub-components of NPM-managed apps","archived":false,"fork":false,"pushed_at":"2018-02-02T15:39:22.000Z","size":14,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T00:35:29.460Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rhdeck.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-24T13:54:38.000Z","updated_at":"2018-01-24T13:54:43.000Z","dependencies_parsed_at":"2023-06-18T18:10:59.442Z","dependency_job_id":null,"html_url":"https://github.com/rhdeck/lernaman","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"dc9cbbd0ba980f177282f3ebfd6cfeaf86ec7e7e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Flernaman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Flernaman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Flernaman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhdeck%2Flernaman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhdeck","download_url":"https://codeload.github.com/rhdeck/lernaman/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243713393,"owners_count":20335566,"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":"2025-01-22T00:30:49.859Z","updated_at":"2025-03-15T09:41:32.539Z","avatar_url":"https://github.com/rhdeck.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lernaman\n\nManager for arranging/managing lerna-based packages under your app project.\n\n# Why?\n\nReact-native's metro builder really doesn't like working with peer directories. So the easiest way to get benefit from managing your JS modules is to use a lerna-managed monorepo, and then link those packages to your app in a parent/ancestor directory.\n\nBasically,it makes JS development for nontrivial React-native much much easier.\n\n# Installation\n\nThis is easier than manual work, but it still has some steps:\n\n1. Make a lerna-based repository with the code you want to use. (for example https://github.com/me/modules)\n2. Make an app using `react-native init` or `create-react-native-app`\n3. Switch to your app directory\n4. `yarn add lernaman`\n5. `yarn run lernaman add https://github.com/me/modules --update`\n6. Set your \"root\" component to be one of your modules - using the pakage name. (I like to use `react-native-set-root` for this, eg `react-native-set-root @rhdeck/rootmodule`)\n7. `yarn start`\n8. Oops! Discover your missing dependencies (probably defined as `peerDependencies` in your module) and `yarn add` them.\n9. 'yarn start' again, and watch everything _just work_\n\n# Rehydration\n\nLater, when you have committed your app then pull it down somewhere later, after your initial `git clone` and `yarn install` steps, run `yarn run lernaman init --update` to get your lerna packages deployed into your app. That's all there is to it!\n\n# Usage\n\n## lernaman --help\n\nGet listing of commands. Useful.\n\n## lernaman add \u003curl\u003e [name][--init] [--update]\n\n## lernaman init [name][--update]\n\nInitialize lerna package [name] that is specified in `package.json` by copying/cloning into the appropriate directory. If --update is passed, the functionality of `lernaman update [name]` gets applied subsequently.\n\nIf name is not supplied, it will run the link process for all.\n\n## lernaman update [name]\n\nNPM/Yarn isntall an initialized lerna package `[name]`, bootstrap it, and run the \"build\" script defined within. Will automatically run the `lernaman link` functionality immediately after.\n\nIf name is not supplied, it will run the link process for all.\n\n## lernaman link [name]\n\nDeploy symbolic links from the packages managed at `lernas/[name]` to your immediate node_modules directory. No bootstrap or other build process is applied.\n\nIf name is not supplied, it will run the link process for all.\n\n## lernaman remove \u003cname\u003e\n\nRemove the package at `lernas/[name]`. The package itself is recursively removed and the entry in package.json is eliminated to prevent future re-hydration.\n\n# Notes\n\nThis tool is for handling a complex situation, so it takes a little more work to get the most out of it. But\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhdeck%2Flernaman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhdeck%2Flernaman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhdeck%2Flernaman/lists"}