All Projects → angular → Angular Cli

angular / Angular Cli

Licence: mit
CLI tool for Angular

Programming Languages

typescript
32286 projects
Starlark
911 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
EJS
674 projects
shell
77523 projects

Projects that are alternatives of or similar to Angular Cli

Angular Cli Webpack
Webpack configuration modifier for @angular/cli
Stars: ✭ 72 (-99.71%)
Mutual labels:  cli, angular-cli
Generator Ngx Rocket
🚀 Extensible Angular 11+ enterprise-grade project generator
Stars: ✭ 1,329 (-94.7%)
Mutual labels:  cli, angular-cli
Angular Ssr
Angular 4+ server-side rendering solution compatible with @angular/material, jQuery, and other libraries that touch the DOM (as well as providing a rich feature set!)
Stars: ✭ 283 (-98.87%)
Mutual labels:  cli, angular-cli
Swiftcli
A powerful framework for developing CLIs in Swift
Stars: ✭ 673 (-97.32%)
Mutual labels:  cli
Yoda
Wise and powerful personal assistant, available in your nearest terminal
Stars: ✭ 674 (-97.31%)
Mutual labels:  cli
Uber Apk Signer
A cli tool that helps signing and zip aligning single or multiple Android application packages (APKs) with either debug or provided release certificates. It supports v1, v2 and v3 Android signing scheme has an embedded debug keystore and auto verifies after signing.
Stars: ✭ 677 (-97.3%)
Mutual labels:  cli
Cheat.sh
the only cheat sheet you need
Stars: ✭ 27,798 (+10.75%)
Mutual labels:  cli
Universal
Seed project for Angular Universal apps featuring Server-Side Rendering (SSR), Webpack, CLI scaffolding, dev/prod modes, AoT compilation, HMR, SCSS compilation, lazy loading, config, cache, i18n, SEO, and TSLint/codelyzer
Stars: ✭ 669 (-97.33%)
Mutual labels:  angular-cli
Pcp
📦 Command line peer-to-peer data transfer tool based on libp2p.
Stars: ✭ 687 (-97.26%)
Mutual labels:  cli
Buildxl
Microsoft Build Accelerator
Stars: ✭ 676 (-97.31%)
Mutual labels:  cli
Streamhut
Stream your terminal to web without installing anything 🌐
Stars: ✭ 676 (-97.31%)
Mutual labels:  cli
Diskus
A minimal, fast alternative to 'du -sh'
Stars: ✭ 674 (-97.31%)
Mutual labels:  cli
Ok Mdx
Browser-based MDX editor
Stars: ✭ 681 (-97.29%)
Mutual labels:  cli
Arkit
JavaScript architecture diagrams and dependency graphs
Stars: ✭ 671 (-97.33%)
Mutual labels:  cli
So
A terminal interface for Stack Overflow
Stars: ✭ 694 (-97.23%)
Mutual labels:  cli
Binci
🐳 Containerize your development workflow.
Stars: ✭ 671 (-97.33%)
Mutual labels:  cli
Clipp
easy to use, powerful & expressive command line argument parsing for modern C++ / single header / usage & doc generation
Stars: ✭ 687 (-97.26%)
Mutual labels:  cli
Legit
Git for Humans, Inspired by GitHub for Mac™.
Stars: ✭ 5,682 (-77.36%)
Mutual labels:  cli
Structured Text Tools
A list of command line tools for manipulating structured text data
Stars: ✭ 6,180 (-75.38%)
Mutual labels:  cli
Backslide
💦 CLI tool for making HTML presentations with Remark.js using Markdown
Stars: ✭ 679 (-97.29%)
Mutual labels:  cli

Angular CLI

Development tools and libraries specialized for Angular

This is the home of the DevKit and the Angular CLI code. You can find the Angular CLI specific README here.

CircleCI branch Dependency Status devDependency Status

License

GitHub forks GitHub stars

Quick Links

Gitter Contributing Angular CLI

The Goal of Angular CLI

The Angular CLI creates, manages, builds and test your Angular projects. It's built on top of the Angular DevKit.

The Goal of DevKit

DevKit's goal is to provide a large set of libraries that can be used to manage, develop, deploy and analyze your code.

Getting Started - Local Development

Installation

To get started locally, follow these instructions:

  1. If you haven't done it already, make a fork of this repo.
  2. Clone to your local computer using git.
  3. Make sure that you have Node 12.14 or 14.0 installed. See instructions here.
  4. Make sure that you have yarn installed; see instructions here.
  5. Run yarn (no arguments) from the root of your clone of this project to install dependencies.

Building and Installing the CLI

To make a local build:

yarn build --local

This generates a number of tarballs in the dist/ directory. To actually use the locally built tools, switch to another repository reproducing the specific issue you want to fix (or just generate a local repo with ng new). Then install the locally built packages:

cd "${EXAMPLE_ANGULAR_PROJECT_REPO}"
npm install -D ${CLI_REPO}/dist/*.tgz

Builds of this example project will use tooling created from the previous local build and include any local changes. When using the CLI, it will automatically check for a local install and use that if present. This means you can just run:

npm install -g @angular/cli

to get a global install of the latest CLI release. Then running any ng command in the example project will automatically find and use the local build of the CLI.

Note: If you are testing ng update, be aware that installing all the tarballs will also update the framework (@angular/core) to the latest version. In this case, simply install the CLI alone with npm install -D ${CLI_REPO}/dist/_angular_cli.tgz, that way the rest of the project remains to be upgraded with ng update.

Debugging

To debug an invocation of the CLI, build and install the CLI for an example project, then run the desired ng command as:

node --inspect-brk node_modules/.bin/ng ...

This will trigger a breakpoint as the CLI starts up. You can connect to this using the supported mechanisms for your IDE, but the simplest option is to open Chrome to chrome://inspect and then click on the inspect link for the node_modules/.bin/ng Node target.

Unfortunately, the CLI dynamically require()'s other files mid-execution, so the debugger is not aware of all the source code files before hand. As a result, it is tough to put breakpoints on files before the CLI loads them. The easiest workaround is to use the debugger; statement to stop execution in the file you are interested in, and then you should be able to step around and set breakpoints as expected.

Testing

There are two different test suites which can be run locally:

Unit tests

  • Run all tests: yarn bazel test //packages/...
  • Run a subset of the tests, use the full Bazel target example: yarn bazel test //packages/schematics/angular:angular_test
  • For a complete list of test targets use the following Bazel query: yarn bazel query "tests(//packages/...)"

You can find more info about debugging tests with Bazel in the docs.

End to end tests

  • Run: node tests/legacy-cli/run_e2e.js
  • Run a subset of the tests: node tests/legacy-cli/run_e2e.js tests/legacy-cli/e2e/tests/i18n/ivy-localize-*

When running the debug commands, Node will stop and wait for a debugger to attach. You can attach your IDE to the debugger to stop on breakpoints and step through the code. Also, see IDE Specific Usage for a simpler debug story.

When debugging a specific test, change describe() or it() to fdescribe() and fit() to focus execution to just that one test. This will keep the output clean and speed up execution by not running irrelevant tests.

IDE Specific Usage

Some additional tips for developing in specific IDEs.

Intellij IDEA / WebStorm

To load the project in Intellij products, simply Open the repository folder. Do not Import Project, because that will overwrite the existing configuration.

Once opened, the editor should automatically detect run configurations in the workspace. Use the drop down to choose which one to run and then click the Run button to start it. When executing a debug target, make sure to click the Debug icon to automatically attach the debugger (if you click Run, Node will wait forever for a debugger to attach).

Intellij IDEA run configurations

Creating New Packages

Adding a package to this repository means running two separate commands:

  1. schematics devkit:package PACKAGE_NAME. This will update the .monorepo file, and create the base files for the new package (package.json, src/index, etc).
  2. devkit-admin templates. This will update the README and all other template files that might have changed when adding a new package.

For private packages, you will need to add a "private": true key to your package.json manually. This will require re-running the template admin script.

Packages

This is a monorepo which contains many tools and packages:

Tools

Project Package Version Links
Angular CLI @angular/cli latest README snapshot
Architect CLI @angular-devkit/architect-cli latest snapshot
Schematics CLI @angular-devkit/schematics-cli latest snapshot

Packages

Project Package Version Links
Architect @angular-devkit/architect latest README snapshot
Build Angular @angular-devkit/build-angular latest README snapshot
Build Optimizer @angular-devkit/build-optimizer latest README snapshot
Build Webpack @angular-devkit/build-webpack latest README snapshot
Core @angular-devkit/core latest README snapshot
Schematics @angular-devkit/schematics latest README snapshot

Schematics

Project Package Version Links
Angular PWA Schematics @angular/pwa latest snapshot
Angular Schematics @schematics/angular latest snapshot

Misc

Project Package Version Links
Webpack Angular Plugin @ngtools/webpack latest snapshot
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].