{"id":15154225,"url":"https://github.com/ngx-rocket/scripts","last_synced_at":"2025-07-18T15:36:16.147Z","repository":{"id":22973957,"uuid":"97494048","full_name":"ngx-rocket/scripts","owner":"ngx-rocket","description":":wrench: Support scripts for ngX-Rocket projects","archived":false,"fork":false,"pushed_at":"2022-11-28T15:00:17.000Z","size":905,"stargazers_count":9,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-09T01:08:11.518Z","etag":null,"topics":["angular","cli","cordova","enterprise","ionic","ngx","ngx-rocket","project","scripts","support","tools"],"latest_commit_sha":null,"homepage":"","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/ngx-rocket.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-07-17T15:51:51.000Z","updated_at":"2024-05-31T08:49:21.000Z","dependencies_parsed_at":"2022-08-18T05:15:20.461Z","dependency_job_id":null,"html_url":"https://github.com/ngx-rocket/scripts","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"purl":"pkg:github/ngx-rocket/scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngx-rocket%2Fscripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngx-rocket%2Fscripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngx-rocket%2Fscripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngx-rocket%2Fscripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngx-rocket","download_url":"https://codeload.github.com/ngx-rocket/scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngx-rocket%2Fscripts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265786780,"owners_count":23828332,"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":["angular","cli","cordova","enterprise","ionic","ngx","ngx-rocket","project","scripts","support","tools"],"created_at":"2024-09-26T17:04:32.797Z","updated_at":"2025-07-18T15:36:16.124Z","avatar_url":"https://github.com/ngx-rocket.png","language":"JavaScript","readme":"# :rocket: ngx-rocket/scripts\n\n[![NPM version](https://img.shields.io/npm/v/@ngx-rocket/scripts.svg)](https://www.npmjs.com/package/@ngx-rocket/scripts)\n[![Build Status](https://github.com/ngx-rocket/scripts/workflows/build/badge.svg)](https://github.com/ngx-rocket/scripts/actions)\n![Node version](https://img.shields.io/node/v/@ngx-rocket/scripts.svg)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\n\u003e Support scripts for ngX-Rocket projects.\n\nIn order to simplify the workflow of applications generated with\n[ngX-Rocket generator](https://github.com/ngx-rocket/generator-ngx-rocket), we made this repo to gather all additional\nscripts and build tools.\n\nSince this module is an independant package, you can even use for projects not built from ngX-Rocket if you find it\nuseful.\n\n## Installation\n\n```bash\nnpm install --save @ngx-rocket/scripts\n```\n\n## Usage\n\nThis modules provides CLI commands to be used in [NPM scripts](https://docs.npmjs.com/misc/scripts), along with some\n[Cordova hooks](https://cordova.apache.org/docs/en/latest/guide/appdev/hooks/) (see `hooks` folder).\n\n### Export environment variables to a JSON or JavaScript file\n\n`ngx-scripts env \u003cenv_var\u003e [\u003cenv_var2\u003e ...] [--out \u003cfile\u003e] [--format json|js] [--parse-json]`\n\nDefault output file is `src/environments/.env.ts` with JavaScript format.\n\n### Execute Cordova commands\n\n`ngx-scripts cordova \u003ccommand\u003e [options] [-- \u003ccordova_options\u003e]`\n\nUnless the `--fast` option is provided, the Angular app is rebuilt before executing the command, using `npm run build`.\nAny accepted Cordova option can be passed through after `--`.\n\n#### Options\n- `--app`: The name of the Angular app to build. Only useful if you have a workspace with multiples apps.\n- `--fast`: Skip Angular app rebuild\n- `--base-href \u003cref\u003e`: Change application base URL (default is `./`)\n- `--copy \u003cpath\u003e`: Copy built apps to the specified path (only works with `cordova build`)\n- `--dev`: Build Angular app in `dev` mode (default is `prod`)\n- `-c, --configuration \u003cname\u003e`: Target Angular CLI configuration for `npm run build`\n- `--device`: Deploy Cordova build to a device\n- `--emulate`: Deploy Cordova build to an emulator\n- `--debug`: Create a Cordova debug build\n- `--release`: Create a Cordova release build\n- `--verbose`: Show Cordova debug output\n- `--yarn`: Use [Yarn](https://yarnpkg.com) instead of NPM to run the `build` script\n- `--parse-json`: During `env`, if an environment variable's value is parsable JSON, it will be a proper object in `.env.ts`\n\n\u003e Note: Yarn is automatically used instead of NPM if the environment variable `NGX_PACKAGE_MANAGER` is set to `yarn` or\n\u003e if the current project was generated with ngX-Rocket using Yarn option (option is saved in `.yo-rc.json`).\n\n#### Examples\n```bash\nngx-scripts cordova prepare\nngx-scripts cordova run ios --dev --debug --emulate\nngx-scripts cordova build ios --configuration production --device --release -- --developmentTeam=\"ABCD\" --provisioningProfile=\"UUID\"\n````\n\n### Clean Cordova (`platforms`, `plugins`) and dist folders\n\n`clean [--cordova] [--dist] [--path \u003cpath\u003e]`\n\n#### Options\n- `--cordova`: Remove only Cordova folders\n- `--dist`: Remove only dist folder\n- `--path \u003cpath\u003e`: Remove only specified path\n\n# License\n\n[MIT](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngx-rocket%2Fscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngx-rocket%2Fscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngx-rocket%2Fscripts/lists"}