New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-deploy-asset-sizes

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-deploy-asset-sizes

Keep track of your Ember apps asset sizes over time.

0.2.0
latest
Source
npm
Version published
Weekly downloads
11
450%
Maintainers
2
Weekly downloads
 
Created
Source

ember-cli-deploy-asset-sizes

Build Status

Keep track of your Ember.js apps asset sizes over time. Each deploy the addon will push your apps assets sizes to keen.io.

Use ember-dashboard to display your deloy data.

Installation

ember install ember-cli-deploy-asset-sizes

Add you keen.io keys

Add your keen.io key to config/deploy.js.

ENV['asset-sizes'] = {
  KEEN_PROJECT_ID: <your-keen-project-id>,
  KEEN_WRITE_KEY: <your-keen-write-key>
};

Customize tracking

By default, this will use the keen.io dependency, together with KEEN_PROJECT_ID & KEEN_WRITE_KEY, to track the file sizes.

However, if you require custom functionality, you can configure your own sendDeployData function:

ENV['asset-sizes'] = {
  sendDeployData(assets, options) {
    // Manually do something with the assets
    // 'assets' is an array of objects with 'name', 'size' and 'gzipSize'
  }
}

Deploy

ember deploy

Running Tests

  • npm test

For more information on using ember-cli-deploy, visit ember-cli-deploy.com.

Keywords

ember-addon

FAQs

Package last updated on 27 Mar 2018

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