es6, itemManager

This commit is contained in:
Mo Bitar
2016-12-15 03:34:39 -06:00
parent 5eadcc2e73
commit 1d4905d17d
9 changed files with 238 additions and 208 deletions

View File

@@ -13,7 +13,7 @@ module.exports = function(grunt) {
js: {
files: ['app/assets/javascripts/**/*.js'],
tasks: ['concat'],
tasks: ['concat', 'babel'],
options: {
spawn: false,
},
@@ -114,6 +114,18 @@ module.exports = function(grunt) {
}
},
babel: {
options: {
sourceMap: true,
presets: ['es2015']
},
dist: {
files: {
'vendor/assets/javascripts/app.js': 'vendor/assets/javascripts/app.js'
}
}
}
ngAnnotate: {
options: {
singleQuotes: true,
@@ -145,5 +157,5 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-ng-annotate');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default', ['haml', 'ngtemplates', 'sass', 'concat', 'ngAnnotate', 'uglify']);
grunt.registerTask('default', ['haml', 'ngtemplates', 'sass', 'concat', 'babel', 'ngAnnotate', 'uglify']);
};