
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@danils/angular-builder
Advanced tools
Angular-builder allows you as a developer to scan their projects and represent into a json. Also, you can execute from one to many angular schematics.
ng add @danils/angular-builder or npm install -g @danils/angular-builder
When you have already installed, follow these steps:
ng g @danils/angular-builder:scanng g @danils/angular-builder:buildng g @danils/angular-builder:scan or ng g @danils/angular-builder:s
Angular Builder uses a json file to execute schematics at the same time. For this reason scan schematic allows you to scan your project and represent the result into a json file.
ng g @danils/angular-builder:build or ng g @danils/angular-builder:b
Example here: Custom JSON File.
Working with the Angular framework, you can use schematic's custom or by default like ng g component;
with this limitation, this schematic allows you to execute any schematic in any folder or at the root level.
That is an amazing feature because you can solve two main scenarios:
When you see the json structure for the first time, you can see the file has different levels.
At the root level, you can see these properties:
| Property name | Description | Optional |
|---|---|---|
| $schema | The reference to a file that allow you to know what properties can you add to the file. | |
| settings | settings contains collection and collections contain schematics settings | true |
| projects | angular workspaces allows you to have many projects. This section has all the existed projects but also if you add some that doesn't exist it will create it. | false |
| schematic | you can execute schematics at the root level, usually these schematics are for configuration purposes. |
The purpose of this property is to allow you to specify settings for all schematics.
For grouping purpose, settings have collections. For example, @schematics/angular are the collection for default schematics like components, services, pipes.
Every collection has schematics, in this section you can set all the properties that the schematic allows. I will list some of the most common schematics with links to see the angular default schematic settings.
Notes:
If you want that the schematic build installs collections, add these collections to global settings. No matter if you don't define any schematic inside.
| Schematics for @schematics/angular |
|---|
| component |
| service |
| directive |
Schematic's settings allow you to have an alias
The alias allows you to not specify the collection and also has a friendly name.
What is the structure of the settings?
"settings":{
"[COLLECTION-NAME]": {
"[SCHEMATIC-NAME]": {
"alias": "[ALIAS]",
"[PROPERTY-NAME]": [VALUE]
}
}
}
For example:
{
"settings": {
"@schematics/angular": {
"component": {
"alias": "components",
"standalone": true
}
}
}
}
Projects have all the projects created, but if you define someone that is not created, the schematic will create it. All the settings of every project are read from the angular.json Project structure
{
"[PROJECT-NAME]":{
"type": "library | application",
"settings": "something like global settings",
...project structures like folders or schematics.
}
}
{
"projects": {
"project-demo": {
"type": "application",
"settings": {
"@schematics/angular": {
"component": {
"style": "scss"
}
}
},
"src": {
"type": "folder",
"app": {
"type": "folder"
},
"assets": {
"type": "folder"
}
}
}
}
}
Inside every project, you will have two types of objects:
To differentiate between folders and schematics, you need to define the type. For example,
{
"components": {
"type": "schematic"
},
"assets": {
"type": "folder"
}
}
Schematics The properties that schematic object has are: The object is a key/value pair. You have two options for the key:
| Property name | Description | optional |
|---|---|---|
| type | false | |
| settings | All the setting of this schematic | true |
| instances | Execute many times with the same schematic base on name | true |
{
"components": {
"type": "schematic",
"settings": {
"prefix": "core"
},
"instances": {
"home": {},
"footer": {},
"header": {}
}
},
"@danils/schematicskit:prettier": {
"type": "schematic"
}
}
Folders Inside folder objects yoy can have another folder or schematics object.
{
"assets": {
"type": "folder",
"scss": {
"type": "folder"
}
}
}
The priority of settings is: instances > schematic > project > global
You can set some properties of the settings and mix them together. But if you put some property on global will be re-write in project settings.
FAQs
Angular builder
We found that @danils/angular-builder 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.