
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.
angular-grunt-build
Advanced tools
A Grunt plugin that allows to write code using modular structure without including dependency names.
A Grunt plugin that allows to write code using modular structure without including dependency names.
This plugin requires Grunt ~0.4.5
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins.
To install plugin using npm run this command:
npm install angular-grunt-build
Once the plugin has been installed, it may be enabled inside your Gruntfile:
grunt.loadNpmTasks('angular-grunt-build');
Next, add a section named angular_build to the data object passed into grunt.initConfig().
grunt.initConfig({
angular_build: {
your_target: {
source: 'source directory of a project, e.g. app or <%= app.src %>',
destination: 'directory where result will be generated',
appName: 'your application name, e.g. myApp'
},
},
});
So your Gruntfile should look like this:
module.exports = function (grunt) {
grunt.loadNpmTasks('angular-grunt-build');
grunt.initConfig({
app: appConfig,
angular_build: {
dist: {
appName: 'myApp',
source: 'app',
destination: 'public'
}
}
});
grunt.registerTask('default', ['angular_build:dist']);
};
In the root of your app source folder you need to add the app.js file like this:
angular.module('myApp', [/* list of used modules */]);
You can also add bootstrap.js file:
angular.element(document).ready(function () {
angular.bootstrap(document, ['myApp']);
});
Next, you have the following list of permitted folder names to get the MVC-like structure:
All listed folders are able to place appropriate Angular files in it (model and service are just other names for factory).
Files in folders should look like this:
var <controller/directive/etc name> = function (/* list of dependencies, e.g. $scope */) {
/* your code below */
};
FAQs
A Grunt plugin that allows to write code using modular structure without including dependency names.
We found that angular-grunt-build 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
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.