1.0.3 • Published 8 years ago

grunt-profile v1.0.3

Weekly downloads
1
License
-
Repository
github
Last release
8 years ago

Grunt: Profiles

Environment profiles configuration for grunt, many thanks for the idea to Logan Koester

Gittip

NPM

Getting Started

This plugin requires Grunt ~0.4.1

To install:

npm install grunt-profile --save-dev

How to use:

grunt.initConfig({
  // ...

  profile: {
    default: 'local',
    profiles: ['local', 'live']
  },

  concat: {
    options: {
      separator: ';',
      sourceMap: false,
      local: {
        sourceMap: true  
      }
    },
    // ...

  }
});

grunt.loadNpmTasks('grunt-profile');

You can use profile/profiles at any place in any task configuration, based on the current profile it would be automatically substituted with the correct one. For example running the snippet about with:

grunt concat

Will include the sourceMap, and with:

grunt profile:live concat

will not.

You can setup as many profiles as you like, these two is just for the reference.

1.0.3

8 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.4.2

9 years ago