Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
Allow command prefixes longer than 1 character
Browse files Browse the repository at this point in the history
Added sourcemap for easier tracking of issues and bugs
  • Loading branch information
TATDK committed Jun 18, 2014
1 parent 02aba23 commit 56374ed
Show file tree
Hide file tree
Showing 6 changed files with 509 additions and 172 deletions.
31 changes: 25 additions & 6 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,39 @@ var fs = require('fs');
module.exports = function(grunt) {
grunt.initConfig({
closurecompiler: {
minify: {
minifyClient: {
files: {
'./bin/client.js': ['./src/client.js']
},
options: {
compilation_level: 'SIMPLE_OPTIMIZATIONS',
banner: '/*' + fs.readFileSync('LICENSE.md') + '*/',
create_source_map: './bin/client.js.map',
source_map_format: 'V3'
}
},
minifyRoom: {
files: {
'./bin/client.js': ['./src/client.js'],
'./bin/room.js': ['./src/room.js']
},
options: {
'compilation_level': 'SIMPLE_OPTIMIZATIONS',
banner: '/*' + fs.readFileSync('LICENSE.md') + '*/'
compilation_level: 'SIMPLE_OPTIMIZATIONS',
banner: '/*' + fs.readFileSync('LICENSE.md') + '*/',
create_source_map: './bin/room.js.map',
source_map_format: 'V3'
}
}
},
execute: {
sourcemap: {
src: ['./source-map-fix.js']
}
}
});

grunt.loadNpmTasks('grunt-closurecompiler');
grunt.loadNpmTasks('grunt-execute');

grunt.registerTask('default', 'closurecompiler:minify');
}
grunt.registerTask('minify', ['closurecompiler:minifyClient', 'closurecompiler:minifyRoom']);
grunt.registerTask('default', ['minify', 'execute:sourcemap']);
};
Loading

0 comments on commit 56374ed

Please sign in to comment.