{"id":15827469,"url":"https://github.com/wellwind/ngx-convert-to-standalone","last_synced_at":"2025-03-15T03:31:00.644Z","repository":{"id":153553438,"uuid":"629827989","full_name":"wellwind/ngx-convert-to-standalone","owner":"wellwind","description":"https://www.npmjs.com/package/ngx-convert-to-standalone","archived":false,"fork":false,"pushed_at":"2023-04-19T05:41:33.000Z","size":10,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-12T10:17:24.788Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/wellwind.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-19T05:36:19.000Z","updated_at":"2023-04-20T01:20:49.000Z","dependencies_parsed_at":"2023-05-19T12:45:31.041Z","dependency_job_id":null,"html_url":"https://github.com/wellwind/ngx-convert-to-standalone","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"0393e470345d70e52e502bfd64afa468db741510"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellwind%2Fngx-convert-to-standalone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellwind%2Fngx-convert-to-standalone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellwind%2Fngx-convert-to-standalone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wellwind%2Fngx-convert-to-standalone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wellwind","download_url":"https://codeload.github.com/wellwind/ngx-convert-to-standalone/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243681024,"owners_count":20330152,"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-05T10:05:38.887Z","updated_at":"2025-03-15T03:31:00.638Z","avatar_url":"https://github.com/wellwind.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"ngx-convert-to-standalone\n===\n\nConvert a new Angular project to standalone settings.\n\nThis sechmatics will convert `angular.json` in Angular, add `standalone: true` settings to `projects.[project].schematics.@schematics/angular:[component|directive|pipe]`.\n\nBy default setting, will convert `angular.json` settings like following.\n\n```json\n{\n  \"$schema\": \"./node_modules/@angular/cli/lib/config/schema.json\",\n  \"version\": 1,\n  \"newProjectRoot\": \"projects\",\n  \"projects\": {\n    \"demo1\": {\n      \"projectType\": \"application\",\n      \"schematics\": {\n        \"@schematics/angular:component\": {\n          \"inlineTemplate\": true,\n          \"inlineStyle\": true,\n          \"standalone\": true,\n          \"flat\": true\n        },\n        \"@schematics/angular:directive\": {\n          \"standalone\": true\n        },\n        \"@schematics/angular:pipe\": {\n          \"standalone\": true\n        }\n      },\n    }\n  }\n}\n```\n\nUsage\n---\n\n```bash\nng add ngx-convert-to-standalone\n```\n\nYou can skip some settings, for example, `--skip-component-inline-template=false`.\n\n```bash\nng add ngx-convert-to-standalone --skip-component-inline-template\n```\n\nThen `projects.[project].schematics.@schematics/angular:component` will not be changed.\n\nIf you have multiple projects, you can specify the project name.\n\n```bash\nng add ngx-convert-to-standalone --project=demo1\n```\n\nArguments\n---\n\n* `--project`: Specify the project name. If not set, will set the first project.\n* `--skip-component-inline-template`: Skip setting `\"inlineTemplate\": true` in `@schematics/angular:component` settings. Default is `false`.\n* `--skip-component-inline-style`: Skip setting `\"inlineStyle\": true` in `@schematics/angular:component` settings. Default is `false`.\n* `--skip-component-standalone`: Skip setting `\"standalone\": true` in `@schematics/angular:component` settings. Default is `false`.\n* `--skip-component-flat`: Skip setting `\"flat\": true` in `@schematics/angular:component` settings. Default is `false`.\n* `--skip-directive-standalone`: Skip setting `\"standalone\": true` in `@schematics/angular:directive` settings. Default is `false`.\n* `--skip-pipe-standalone`: Skip setting `\"standalone\": true` in `@schematics/angular:pipe` settings. Default is `false`.\n\nLicense\n---\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwellwind%2Fngx-convert-to-standalone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwellwind%2Fngx-convert-to-standalone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwellwind%2Fngx-convert-to-standalone/lists"}