Update dev dependencies, 3.0.18

This commit is contained in:
Mo Bitar
2019-10-21 15:58:40 -05:00
parent 03782f01db
commit dbcf8a8c4a
7 changed files with 2717 additions and 1964 deletions

View File

@@ -5,7 +5,7 @@ module.exports = function(grunt) {
watch: {
haml: {
files: ['app/assets/templates/**/*.haml'],
tasks: ['newer:haml', 'ngtemplates', 'concat:app', 'babel', 'browserify', 'concat:dist', 'ngAnnotate'],
tasks: ['newer:haml', 'ngtemplates', 'concat:app', 'babel', 'browserify', 'concat:dist'],
options: {
spawn: false,
},
@@ -13,7 +13,7 @@ module.exports = function(grunt) {
js: {
files: ['app/assets/javascripts/**/*.js'],
tasks: [ 'concat:app', 'babel', 'browserify', 'concat:dist', 'ngAnnotate'],
tasks: [ 'concat:app', 'babel', 'browserify', 'concat:dist'],
options: {
spawn: false,
},
@@ -111,8 +111,7 @@ module.exports = function(grunt) {
babel: {
options: {
sourceMap: true,
presets: ['es2016']
sourceMap: true
},
dist: {
files: {
@@ -131,18 +130,6 @@ module.exports = function(grunt) {
}
},
ngAnnotate: {
options: {
singleQuotes: true,
},
sn: {
files: {
'dist/javascripts/compiled.js': 'dist/javascripts/compiled.js',
},
}
},
uglify: {
compiled: {
src: ['dist/javascripts/compiled.js'],
@@ -178,10 +165,10 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-ng-constant');
grunt.registerTask('default', ['haml', 'ngtemplates', 'sass', 'concat:app', 'babel', 'browserify',
'concat:lib', 'concat:dist', 'ngAnnotate', 'concat:css', 'uglify', 'ngconstant:build']);
'concat:lib', 'concat:dist', 'concat:css', 'uglify', 'ngconstant:build']);
grunt.registerTask('vendor', ['concat:app', 'sass', 'babel', 'browserify',
'concat:lib', 'concat:dist', 'ngAnnotate', 'concat:css', 'uglify']);
'concat:lib', 'concat:dist', 'concat:css', 'uglify']);
grunt.registerTask('constants', ['ngconstant:build'])
};