-
-
Save stfcodes/713d0eda2d15e34fd58a4fa4be3bda8f to your computer and use it in GitHub Desktop.
Revisions
-
caseywatts revised this gist
Nov 22, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ `app.import()` works with `node_modules` now! [As of Ember 2.15](https://www.emberjs.com/blog/2017/09/01/ember-2-15-released.html#toc_app-import-files-within-node_modules). Previously it only worked with `bower_components` and `vendor`. Docs for `app.import` are here: https://ember-cli.com/managing-dependencies#standard-non-amd-asset -
caseywatts revised this gist
Nov 22, 2017 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,8 @@ `app.import` works with `node_modules` now! [As of Ember 2.15](https://www.emberjs.com/blog/2017/09/01/ember-2-15-released.html#toc_app-import-files-within-node_modules). Previously it only worked with `bower_components` and `vendor`. Docs for `app.import` are here: https://ember-cli.com/managing-dependencies#standard-non-amd-asset This method (vendor-shim) wraps the global export into an es6 module (but the global one is still present). It doesn't use an es6 interface even if the library offers one, but that's okay for my use case. Things could still be easier, see [this thread](https://github.com/ember-cli/rfcs/issues/84) for the current state of that. -
caseywatts revised this gist
Nov 22, 2017 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ `app.import` works with `node_modules` now! [As of Ember 2.15](https://www.emberjs.com/blog/2017/09/01/ember-2-15-released.html#toc_app-import-files-within-node_modules). Previously it only worked with `bower_components` and `vendor`. Docs for `app.import` are here: https://ember-cli.com/managing-dependencies#standard-non-amd-asset -
caseywatts revised this gist
Nov 22, 2017 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,9 +10,10 @@ module.exports = function(defaults) { app.import('node_modules/d3/d3.js'); app.import('node_modules/d3/d3.css'); app.import('vendor/shims/d3.js'); app.import('node_modules/c3/c3.js'); app.import('node_modules/c3/c3.css'); app.import('vendor/shims/c3.js'); return app.toTree(); }; -
caseywatts created this gist
Nov 22, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ // vendor/shims/c3.js // generated by `ember generate vendor-shim c3` (function() { function vendorModule() { 'use strict'; return { 'default': self['c3'], __esModule: true, }; } define('c3', [], vendorModule); })(); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ // vendor/shims/d3.js // generated by `ember generate vendor-shim d3` (function() { function vendorModule() { 'use strict'; return { 'default': self['d3'], __esModule: true, }; } define('d3', [], vendorModule); })(); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ /* eslint-env node */ 'use strict'; const EmberApp = require('ember-cli/lib/broccoli/ember-app'); module.exports = function(defaults) { let app = new EmberApp(defaults, { // Add options here }); app.import('node_modules/d3/d3.js'); app.import('node_modules/d3/d3.css'); app.import('node_modules/c3/c3.js'); app.import('node_modules/c3/c3.css'); app.import('vendor/shims/d3.js'); app.import('vendor/shims/c3.js'); return app.toTree(); };