Skip to content

Commit b55b853

Browse files
committed
compiling and working but not cross-browser for some reason
1 parent 316ee20 commit b55b853

14 files changed

+2229
-1995
lines changed

Gruntfile.js

+15
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module.exports = function(grunt) {
22

33
grunt.loadNpmTasks('grunt-browserify');
44
grunt.loadNpmTasks('grunt-contrib-uglify');
5+
grunt.loadNpmTasks('grunt-babel');
56

67
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
78

@@ -23,6 +24,19 @@ module.exports = function(grunt) {
2324
}
2425
},
2526

27+
28+
babel: {
29+
options: {
30+
sourceMap: true,
31+
presets: ['env']
32+
},
33+
dist: {
34+
files: {
35+
'dist/infragram.js': 'dist/infragram.js'
36+
}
37+
}
38+
},
39+
2640
browserify: {
2741
dist: {
2842
src: ['src/Infragram.js'],
@@ -44,6 +58,7 @@ module.exports = function(grunt) {
4458

4559
grunt.registerTask('build', [
4660
'browserify:dist',
61+
'babel:dist',
4762
'uglify:dist'
4863
]);
4964

0 commit comments

Comments
 (0)