1.0.12 • Published 9 years ago
grunt-angular-build v1.0.12
grunt-angular-build v1.0.5
Packages JavaScript files written in AngularJS
Getting Started
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. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-angular-build --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-angular-build');
The "build" task
Overview
In your project's Gruntfile, add a section named build
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
build: {
options: {
filename: 'sw-social',
prefix: 'sw',
modulePrefix: 'sw',
moduleName: 'sw.social'
}
}
});
Options
options.filename
Type: String
Default value: ''
options.prefix
Type: String
Default value: ''
options.modulePrefix
Type: String
Default value: 'sw'
options.moduleName
Type: String
Default value: ''
Usage Examples
Custom Options
In this example, custom options are used
grunt.initConfig({
build: {
options: {
filename: 'sw-social',
moduleName: 'sw.social'
}
},
});