Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-filesize-report

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-filesize-report

(Very) simple filesize reporter for grunt. Primary use was to generate a very simple xml format for use by Jenkins plot plugin.

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

grunt-filesize-report

(Very) simple filesize reporter for grunt.

Synopsis

Primary use was to generate a very simple xml format for use by Jenkins plot plugin.

Code Example

grunt.loadNpmTasks('grunt-filesize-report');
 
grunt.initConfig({
    filesize: {
        options: {
            folder: dirs.reports + '/filesize', .. defaults to './'
            short: true, //defaults to false - will output full info in the console
            xml: true, // default is false
            json: false, //default is false
            filename: 'myoutput' // defaults to 'filesize-[target].[ext]',
            thresholds: [102400,204800] // [warning, error] thresholds for individual files
            totalThresholds: [524288,1048576] // [warning, error] for totals of all files
            failOnerror: false // fail task when error threshold crossed
        },
        css: {
            files : [{ cwd: '.', src: ['**/*.css'], expand: true}]
        },
        images: {
            files : [{ '.', src: ['**/img/*.*'], expand: true}]
        },
        js: {
            files : [{ cwd: '.', src: ['/js/*.min.js'], expand: true}]
        }
    }      
});

Motivation

There are a few good filesize reporters out there, but I wanted one that could output to a file format that I could hook into a jenkins plugin to keep a track of increasing output filesizes. so this outputs to a very simple XML format that the Jenkins Plot Plugin can understand, as well as json if you really want it.

Installation

npm install grunt-filesize-report

Contributors

Stuart Campbell (campbes)

License

Released under the MIT License

Keywords

FAQs

Package last updated on 07 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc