Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
grunt-newrelic will generate a newrelic.js file and add it to the route of your project; with a license key and app_name pulled from a config file.
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config
tasks
.gitignore
.npmignore
Gruntfile.js
README.md
package.json updating version number

README.md

grunt-newrelic

grunt-newrelic will generate a newrelic.js file and add it to the root of your project; with a license key, app_name and logging level pulled from a config file.

Installation

Install npm package

npm install grunt-newrelic

Add this line to your project's Gruntfile.js:

grunt.loadNpmTasks("grunt-newrelic");

Usage

Create a config file:

{
  "NEWRELIC": {
    "APP_NAME": "Airasoul"
  , "LICENSE_KEY": "12345"
  , "LOGGING_LEVEL" : "trace"
  }
}
grunt newrelic
>> Use default config/development.json

grunt newrelic:development
>> Use config/development.json

grunt newrelic:test
>> Use config/test.json

grunt newrelic:staging
>> Use config/staging.json

grunt newrelic:production
>> Use config/production.json
Something went wrong with that request. Please try again.