Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
schematics-utilities
Advanced tools
Installation · Usage · Disclaimer
At the moment, none of the utilities from the Angular Schematics package are exported.
This project was created from that purpose - providing a collection of general and useful utilities for Schematics, based on non-exported existing utilities and further.
You might use this project as a polyfill until these utilities will be exported officially by the relevant teams (and then just replace the path you import). However, consider sticking with this project for additional and unique utilities which are planned for the future.
To Install using npm, simply do:
npm install schematics-utilities
import { Rule, Tree } from '@angular-devkit/schematics';
// 1. Import the needed utilities
import { addPackageJsonDependency, NodeDependency, NodeDependencyType } from 'schematics-utilities';
function addDependencies(host: Tree): Tree {
const dependencies: NodeDependency[] = [{ type: NodeDependencyType.Default, version: '4.17.10', name: 'lodash-es' }];
// 2. Just use it whenever you need :)
dependencies.forEach(dependency => addPackageJsonDependency(host, dependency));
return host;
}
export default function(): Rule {
return (tree: Tree) => {
addDependencies(tree);
return tree;
};
}
Check out the API docs for the available utilities.
This repository contains code which is directly taken from:
All credits go to the respective developers! 👏
This is an open source project. Any contribution would be greatly appreciated!
[2.0.3] - 2021-04-25
FAQs
🛠️ Useful exported utilities for working with Schematics
We found that schematics-utilities 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.