Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@ngx-rocket/cli
Advanced tools
DEPRECATED: The CLI has now been integrated as part of
ngX-Rocket generator, this repository will not be updated
anymore.
CLI for creating Angular apps with ngX-Rocket generators.
Leverage ngX-Rocket generator with community add-ons and improve your developer experience. From scaffolding to deployment, use this CLI to accelerate your workflow. You can also make your very own add-on directly from the CLI, to make your next project even faster!
npm install -g @ngx-rocket/cli
ngx --help
__ __
_ _ __ _\ \./ / ____ ____ ____ _ _ ____ ___
| ' \/ _` |> < |--< [__] |___ |-:_ |=== |
|_||_\__, /_/°\_\ ENTERPRISE APP STARTER -~*=>
|___/
Usage: ngx [new|update|config|list|<script>] [options]
n, new [name]
Creates a new app.
-a, --addon Creates an add-on instead.
--packageManager <yarn|npm> Uses specified package manager.
--automate <json_file> Automate prompt answers using JSON file.
u, update
Updates an existing app or add-on.
c, config
Configures add-ons to use for new apps.
All available add-ons are used by default.
l, list
Lists available add-ons.
-n, --npm Show installable add-ons on NPM
<script>
Runs specified script from your package.json.
Works just like npm run <script>
ngx new
npm start
Navigate to http://localhost:4200/
.
The app will automatically reload if you change any of the source files.
To get more information about generated project, see ngX-Rocket generator.
Note: any ngX-Rocket generator option can be used with
ngx new
orngx update
.
Make you have no uncommitted changes in your project folder, then:
ngx update
The simplest and safest way is then to overwrite everything in case of conflict, then use your SCM to revert/merge changes one file at once.
ngX-Rocket add-ons are additional generators running on top of ngX-Rocket generator that complement or modify the project template.
Use ngx list
to show currently installed add-ons on the system.
To show add-ons available for installation, use npm list --npm
.
By default all installed add-ons are used for new projects.
However, you selectively enable or disable add-ons using ngx config
.
You can use the command ngx new --addon
to create a new ngX-Rocket add-on.
See ngx-rocket/core for the complete documentation about add-on creation.
package.json
In a generated project folder, you can use the command ngx <script>
to run any package.json
script.
This is only a convenience shortcut, it works exactly like npm run <script>
, except that you do need to add --
to
pass arguments to the underlying command.
For example in a ngX-Rocket project you can use these commands:
ngx start --env=prod
ngx generate component myComponent --module myModule
ngx build --build-optimizer
Instead of typing the full script name, you can also type only the first letters:
ngx s --env=prod
ngx g component myComponent --module myModule
ngx b --build-optimizer
If there is more than one script matching, the first one will be used. You can then use any number of additional letters to discriminate the script you want to run.
FAQs
CLI for creating Angular apps with ngX-Rocket generators
The npm package @ngx-rocket/cli receives a total of 0 weekly downloads. As such, @ngx-rocket/cli popularity was classified as not popular.
We found that @ngx-rocket/cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.