
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
generator-nodes
Advanced tools
Generator for AngularJS apps, with an oppinionated and tailored workflow
Opinionated workflow and toolkit used for Angular front-end development at Nodes, feel free to use it for your own projects aswell.
Install yo, grunt-cli, bower and generator-nodes globally:
npm install -g grunt-cli bower yo generator-mpdes
Make a new directory, and cd into it:
mkdir my-new-project && cd $_
Run yo nodes:
yo nodes
The following grunt tasks are available:
app folderdist folderAvailable basic generators:
Available advanced generators:
├── app
├── assets - fonts, images, etc…
├── common - Common components, sharable across modules (directives, filters, etc.)
├── config - Project specific configuration files (endpoints, config/bootstrap etc.)
├── models - API Communication, Buisness Models etc.
├── modules - Views / Routes
└── styles - Application wide styles
In our experience, having some "high level" wrapper states around an application greatly improves flexibility and removes alot of noice from the $rootScope. With this in mind we have structured our states like this:
[ui-view="root"] element.[ui-view="application"] which is located in the _application.template.html file.tl;dr: You don't need to write annotated code as the build step will handle it for you.
By default, generators produce unannotated code. Without annotations, AngularJS's DI system will break when minified. Typically, these annotations that make minification safe are added automatically at build-time, after application files are concatenated, but before they are minified. The annotations are important because minified code will rename variables, making it impossible for AngularJS to infer module names based solely on function parameters.
The recommended build process uses ng-annotate, a tool that automatically adds these annotations. However, if you'd rather not use it, you have to add these annotations manually yourself. Why would you do that though? If you find a bug
in the annotated code, please file an issue at ng-annotate.
By default, new scripts are added to the index.html file. However, this may not always be suitable. Some use cases:
To skip adding them to the index, pass in the skip-add argument:
yo nodes:service serviceName --skip-add
The following modules are always installed by the generator:
The following components can be installed when running the generator:
We keep a list of javascript modules to be ignored by wiredep in our gruntfile. Use this ie. to ignore jQuery plugins from third-party modules.
FAQs
Generator for AngularJS apps, with an oppinionated and tailored workflow
We found that generator-nodes demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.