{"id":20083645,"url":"https://github.com/marko-js/marko-migrate","last_synced_at":"2025-05-06T01:31:29.296Z","repository":{"id":57291353,"uuid":"52622402","full_name":"marko-js/marko-migrate","owner":"marko-js","description":"Tool for migrating a project using marko v2 to marko v3","archived":false,"fork":false,"pushed_at":"2021-10-21T17:50:31.000Z","size":259,"stargazers_count":5,"open_issues_count":16,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-09-01T01:49:07.502Z","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/marko-js.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":"2016-02-26T17:54:53.000Z","updated_at":"2024-01-07T04:41:30.000Z","dependencies_parsed_at":"2022-08-27T16:41:09.994Z","dependency_job_id":null,"html_url":"https://github.com/marko-js/marko-migrate","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marko-js%2Fmarko-migrate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marko-js%2Fmarko-migrate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marko-js%2Fmarko-migrate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marko-js%2Fmarko-migrate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marko-js","download_url":"https://codeload.github.com/marko-js/marko-migrate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224479523,"owners_count":17318290,"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-11-13T15:48:11.841Z","updated_at":"2024-11-13T15:48:12.406Z","avatar_url":"https://github.com/marko-js.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Marko v2 =\u003e v3 Migration Tool\n=======================\n\n## For v3 =\u003e v4 use https://github.com/marko-js/cli/blob/main/packages/migrate/README.md\n\nThis tool can be used to migrate a project that uses Marko v2 to be compatible with Marko v3. All taglibs and templates within the project (excluding anything under `node_modules`) will automatically be migrated.\n\n# Installation\n\n```\nnpm install marko-migrate --global\n```\n\n# Usage\n\n:warning: :warning: ___WARNING:___ This tool modifies a project in place! Make sure you are using source control or have your code backed up! If you are using source control then make sure everything has been committed first! :warning: :warning:\n\n___IMPORTANT:___ Make sure you run an `npm install` for your current project _before_ running the migration script!\n\n___NOTE:___ Node.js v4+ is required\n\n## Migrate a project and use the HTML syntax\n\n```\ncd my-project/\nmarko-migrate --syntax html\n```\n\n## Migrate a project and use the concise syntax\n\n```\ncd my-project/\nmarko-migrate --syntax concise\n```\n\n## Migrate a single file and use the concise syntax\n\n```\ncd my-project/\nmarko-migrate --template src/template.marko --syntax concise\n```\n\n# Example Output\n\nYou will receive output similar to the following:\n\n```text\nmarko-migrate --syntax html\n[modified] package.json\n  - [info] Updated \"marko\" version: ^2.7.3 → ^3.0.0-rc.1 (in \"dependencies\")\n  - [info] Updated \"marko-widgets\" version: ^5.0.0-beta → ^6.0.0-alpha.1 (in \"dependencies\")\n  - [info] Updated \"lasso\" version: ^1.10.1 → ^2.0.0 (in \"dependencies\")\n[modified] test/mocha-phantomjs/test-page.marko\n[modified] src/pages/home/template.marko\n[modified] src/pages/error/template.marko\n[modified] src/components/app-todo-item/template.marko\n[modified] src/components/app-notifications-overlay/template.marko\n[modified] src/components/app-notification/template.marko\n[modified] src/components/app-main/template.marko\n[modified] src/components/app-header/template.marko\n[modified] src/components/app-footer/template.marko\n[modified] src/components/app/template.marko\n[moved] src/marko-taglib.json → src/marko.json\n\nPENDING TASKS:\n[task] The following installed package should now be migrated: node_modules/browser-refresh-taglib/marko-taglib.json\n[task] The following installed package should now be migrated: node_modules/lasso/marko-taglib.json\n[task] The following installed package should now be migrated: node_modules/marko-widgets/marko-taglib.json\n\nMigration completed successfully!:\n- 0 warning(s)\n- 3 pending task(s)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarko-js%2Fmarko-migrate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarko-js%2Fmarko-migrate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarko-js%2Fmarko-migrate/lists"}