1.0.12 • Published 10 years ago

grunt-angular-build v1.0.12

Weekly downloads
15
License
-
Repository
github
Last release
10 years ago

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

10 years ago

1.0.11

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago