Socket
Socket
Sign inDemoInstall

ember-cli-import

Package Overview
Dependencies
2
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ember-cli-import

An ember-cli import wrapper/helper


Version published
Weekly downloads
1
Maintainers
1
Install size
1.45 MB
Created
Weekly downloads
 

Readme

Source

ember-cli-import

Installation

You can simply install this package via npm. TODO: Better install instructions.

Usage

Below is a sample ember-cli-build.js file. This project still needs to be commented better, but for additional methods, please check out the source.

/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var CliImport = require('ember-cli-import');

module.exports = function(defaults) {
  var app = new EmberApp(defaults, {
    // Add options here
  });

  // Create an instance of this project with the ember app instance
  var cliImport = new CliImport(app);

  // Simple example of including a bower component
  cliImport.bower('/some-bower-package/package.js');

  // Simple example of including both 'development' and 'production' versions of a bower component.
  // This assumes that there is a `*.min.js` in the same directory.
  cliImport.bowerDevProd('/another-bower-package/dist/another-bower-package.js');

  // Example icons import out of bower
  cliImport.bower('/some-icons-package/css/some-icons-package.css');
  cliImport.bowerFont('/some-icons-package/font/some-icons-package-regular-webfont',  { destDir: 'font' })

  // Example of including an npm package
  cliImport.npm('/some-npm-module/package.js');

  // WIP
  // -------------------------------------------------------------------------------------
  // Simple example of including both 'development' and 'production' versions of a node module.
  // This assumes that there is a `*.min.js` in the same directory.
  cliImport.npmDevProd('/another-npm-module/dist/another-npm-modeule.js');
  // -------------------------------------------------------------------------------------

  return app.toTree();
};

TODO

  • Formally document the methods in this README.
  • Implement npmDevProd
  • Remove the need for bowerDevProd and npmDevProd by merging with bower and npm. The merged method would inteligently scan for the minified version on the library.

Keywords

FAQs

Last updated on 21 Apr 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc