Closed angeloh closed 11 years ago
You need to update runner.html
and runner-node.js
path configurations with jquery also. Currently, they don't pull in the values of build.js automatically.
The latest version of grunt-contrib-jasmine handles this properly but I won't be updating this repo until grunt 0.4 is released.
Also, this is just my personal preference, but I would require jquery like this:
define(function(require) {
var $ = require('jquery');
var skeleton = require('skeleton/core');
skeleton.feature = require('skeleton/feature');
skeleton.module = require('skeleton/module');
skeleton.coffeescript = require('cs!skeleton/coffeescript');
return skeleton;
});
It works for me. Thanks!
I am new to grunt and requirejs. I change build.js and add jquery to path:
add jquery.js to vendor/jquery.js
change lib/skeleton.js to define(['require', 'jquery'], function (require, $) {
However, I got this following error when run 'grunt'.
What can I fix this to have jquery dependency?