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 = ;var CliImport = ; module { var app = defaults // Add options here ; // Create an instance of this project with the ember app instance var cliImport = app; // Simple example of including a bower component cliImport; // 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; // Example icons import out of bower cliImport; cliImport // Example of including an npm package cliImport; // 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; // ------------------------------------------------------------------------------------- return app;};
TODO
- Formally document the methods in this
README
. - Implement
npmDevProd
- Remove the need for
bowerDevProd
andnpmDevProd
by merging withbower
andnpm
. The merged method would inteligently scan for the minified version on the library.