Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
@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
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
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.