Skip to content

Commit

Permalink
Adding AMDify
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed May 29, 2013
1 parent 9b6c80d commit dff0b21
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
module.exports = function (grunt) {

var _ = grunt.util._;
var shellOpts = {
stdout: true,
failOnError: true
};

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
Expand Down Expand Up @@ -93,6 +89,24 @@ module.exports = function (grunt) {
}
}
},
amdify: {
options: {
steal: {
root: '../'
},
map: {
'can/util': 'can/util/library'
}
},
all: {
options: {
ids: ['can'].concat(_.keys(grunt.file.readJSON('builder.json').modules))
},
files: {
'dist/amd/': '.'
}
}
},
docco: {
dist: {
src: ['dist/*.js'],
Expand Down Expand Up @@ -144,6 +158,6 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('bitovi-tools');

grunt.registerTask('build', ['builder', 'testify']);
grunt.registerTask('test', ['connect', 'build', 'qunit']);
grunt.registerTask('build', [ 'builder', 'docco', 'amdify' ]);
grunt.registerTask('test', [ 'connect', 'build', 'qunit' ]);
};

0 comments on commit dff0b21

Please sign in to comment.