Permalink
Browse files

feat: use requirejs from npm dependency

  • Loading branch information...
1 parent 4f5008d commit ca6a87955c7745ca2e0794081cdab05e0616eb43 @yanoosh yanoosh committed with vojtajina Sep 15, 2013
Showing with 8 additions and 2,056 deletions.
  1. +6 −2 lib/index.js
  2. +0 −2,053 lib/require.js
  3. +2 −1 package.json
View
@@ -1,10 +1,14 @@
-var createPattern = function(path) {
+var requirejsPath, createPattern;
+
+createPattern = function(path) {
return {pattern: path, included: true, served: true, watched: false};
};
+requirejsPath = require('path').dirname(require.resolve('requirejs')) + '/../require.js';
+
var initRequireJs = function(files) {
files.unshift(createPattern(__dirname + '/adapter.js'));
- files.unshift(createPattern(__dirname + '/require.js'));
+ files.unshift(createPattern(requirejsPath));
};
initRequireJs.$inject = ['config.files'];
Oops, something went wrong.

0 comments on commit ca6a879

Please sign in to comment.