Questions tagged [almond]

A replacement AMD loader for RequireJS

A replacement AMD loader for RequireJS. It is a smaller "shim" loader, providing the minimal AMD API footprint that includes loader plugin support.

See https://github.com/jrburke/almond

46 questions
2
votes
1 answer

Building durandaljs with gulp fails for external modules

I'm using gulp-durandal to build our durandal app. It fails on our first module which has a depeendecy to knockout through: define(['knockout',.... [09:35:27] Durandal Error: ENOENT, no such file or directory 'C:\xxxxx\app\knockout.js' In module…
user810365
  • 21
  • 3
2
votes
2 answers

Knockout Components "Uses require, but no AMD loader is present"

I am currently working in a Durandal project and researching the use of Knockout Components in my application. I'm building using Gulp and the gulp-durandal plugin and have it configured to use almond. I'm running into an issue where I receive the…
2
votes
1 answer

requirejs not exposing local jquery to jquery plugin with shim

I have written a jQuery plugin using require, wrapped it in almond, and loaded it through a shim config in another app. Unfortunately, require is exposing the global jQuery to the plugin rather than the local one. My code: plugin.js (function() { …
Matthew James Davis
  • 12,134
  • 7
  • 61
  • 90
2
votes
0 answers

RequireJS modules loading out of order when loading one module into another

I have written a web application which uses requirejs for AMD: require(dependencies, function(dependencies) { (function($) { $.fn.plugin = function(options) { return this; }; })(window.jQuery); }); I then used almond and r.js to…
Matthew James Davis
  • 12,134
  • 7
  • 61
  • 90
2
votes
0 answers

How can I integrate almond without changing index.html

I have this build.js file: ({ appDir: './', baseUrl: './js', dir: './dist', modules: [ { name: 'main' } ] }) And in my index.html I have: