From 70059e4ed51744b8f835c61291c4590c43ee823f Mon Sep 17 00:00:00 2001 From: "Elf M. Sternberg" Date: Mon, 9 Jul 2012 14:41:26 -0700 Subject: [PATCH] RequireJS experiment. --- grunt.js | 16 ++++++++++++++++ src/{PriorityIgnore.coffee => priority.coffee} | 0 2 files changed, 16 insertions(+) rename src/{PriorityIgnore.coffee => priority.coffee} (100%) diff --git a/grunt.js b/grunt.js index 4145a09..1d8304e 100644 --- a/grunt.js +++ b/grunt.js @@ -9,6 +9,7 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-coffee'); grunt.loadNpmTasks('grunt-recess'); + grunt.loadNpmTasks('grunt-requirejs'); // Project configuration. grunt.initConfig({ @@ -69,6 +70,21 @@ module.exports = function(grunt) { jQuery: true } }, + requirejs: { + dir: 'dist', + appDir: 'src', + baseUrl: '.', + paths: { + jquery : './libs/jquery', + }, + pragmas: { + doExclude: true + }, + modules: [{name: 'priority'}], + skipModuleInsertion: false, + optimizeAllPluginResources: true, + findNestedDependencies: true + }, recess: { dev: { src: ['src/style.less'], diff --git a/src/PriorityIgnore.coffee b/src/priority.coffee similarity index 100% rename from src/PriorityIgnore.coffee rename to src/priority.coffee