ember-cli-deploy-asset-sizes

Keep track of your Ember apps asset sizes over time.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
ember-cli-deploy-asset-sizes
0.2.06 years ago8 years agoMinified + gzip package size for ember-cli-deploy-asset-sizes in KB

Readme

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 KEENPROJECTID & KEENWRITEKEY, 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.