grunt-angular-build

1.0.12 • Public • Published

grunt-angular-build v1.0.5 Build Status: Windows

NPM Version NPM Downloads

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'
    }     
  },
});

Readme

Keywords

Package Sidebar

Install

npm i grunt-angular-build

Weekly Downloads

1

Version

1.0.12

License

none

Last publish

Collaborators

  • mdarlea