Skip to content

rwjblue/no-jquery-app

Repository files navigation

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...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages