Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.23 KB

README.md

File metadata and controls

38 lines (27 loc) · 1.23 KB

no-jquery-app

This app is an example of how to setup an ember-cli app to work without jQuery being included in vendor.js.

Steps

First, install ember-native-dom-event-dispatcher (as done in 4b0bfec).

ember install ember-native-dom-event-dispatcher

Next, add the following snippet to your ember-cli-build.js (as done in 34c40fc):

--- a/ember-cli-build.js
+++ b/ember-cli-build.js
@@ -4,6 +4,9 @@ const EmberApp = require('ember-cli/lib/broccoli/ember-app');
 module.exports = function(defaults) {
   var app = new EmberApp(defaults, {
     // Add options here
+    vendorFiles: {
+      'jquery.js': null
+    }
   });

   // Use `app.import` to add additional libraries to the generated

Thats it!

Caveats

  • A number of existing addons may rely on usage of jQuery.
  • Acceptance test helpers within Ember rely on jQuery usage. This can be mitigated by using ember-native-dom-helpers instead of the native click / fillIn / etc helpers.
  • More? Open an issue...