diff --git a/Gruntfile.js b/Gruntfile.js index 483e339..65acd86 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -48,19 +48,20 @@ module.exports = function(grunt) { compile: { options: { baseUrl: "src", - out: 'dist/<%= bower.name %>-<%= bower.version %>.js', + out: 'dist/<%= bower.name %>.js', paths: { - almond: '../bower_components/almond/almond', + almond: 'lib/almond/almond', + requirejs: 'lib/requirejs/require', domReady: 'lib/requirejs-domready/domReady', }, - include: ['almond', 'index'], + include: ['requirejs', 'sqwidget'], // Wrapper for AMD wrap: { startFile: 'src/_wrapper/top.js', endFile: 'src/_wrapper/bottom.js' }, - optimize: 'uglify2', - //optimize: 'none', + //optimize: 'uglify2', + optimize: 'none', preserveLicenseComments: false, generateSourceMaps: true } diff --git a/bower.json b/bower.json index 0efb396..0213b76 100644 --- a/bower.json +++ b/bower.json @@ -27,6 +27,7 @@ "bean": "~1.0.4", "mocha": "~1.14.0", "chai": "~1.8.1", - "requirejs": "~2.1.9" + "requirejs": "~2.1.9", + "almond": "~0.2.6" } } diff --git a/index.html b/index.html index 0022329..322ea39 100644 --- a/index.html +++ b/index.html @@ -6,15 +6,11 @@
The widget script loads from //localhost:8001
and all the
widgets are loaded from //localhost:8002
.