
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@americanexpress/generator-one-app-module
Advanced tools
yeoman generator for a bare-bones One App
holocron
Module
Assuming you have npx installed (comes with npm
on versions 5.2.0 and above):
npx -p yo -p @americanexpress/generator-one-app-module -- yo @americanexpress/one-app-module
The generator will start up and prompt you with the following questions:
If you'd like to include internationalization in your module without being prompted, you can pass in the --setupInternationalizationByDefault
flag. Your command will look as follows:
yo @americanexpress/one-app-module --setupInternationalizationByDefault
Alternatively, if you choose to compose generator-one-app-module
with another generator, you can pass the setupInternationalizationByDefault
value in an object as the second argument to the Yeoman ComposeWith
function, like so:
const CustomExtension = require.resolve('./path-to-custom-extension');
module.exports = class extends Generator {
initializing() {
this.composeWith(require.resolve('@americanexpress/generator-one-app-module/generators/app'),
{ setupInternationalizationByDefault: true });
this.composeWith(CustomExtension);
}
};
Doing this, you're able to extend the generator-one-app-module
generator, enable internationalization by default, and add additional prompts and logic in your custom extension.
More on composing generators here.
For more information about what happens after bundling your module, read Bundling modules
After making changes to the generator, test your changes locally:
npm install --global yo
npm link
yo @americanexpress/one-app-module
npm unlink
Please see our contributing guide for more details.
FAQs
generator for One App Modules
The npm package @americanexpress/generator-one-app-module receives a total of 0 weekly downloads. As such, @americanexpress/generator-one-app-module popularity was classified as not popular.
We found that @americanexpress/generator-one-app-module demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.