Skip to content

Instantly share code, notes, and snippets.

@ecordoba24
Last active August 29, 2015 14:08
Show Gist options
  • Save ecordoba24/2bf8a4abc8e4226c47a2 to your computer and use it in GitHub Desktop.
Save ecordoba24/2bf8a4abc8e4226c47a2 to your computer and use it in GitHub Desktop.

Estos son los comandos y el código usado en el videotutorial https://www.youtube.com/watch?v=ca38_-LnkT8

Instalar grunt-cli de forma global

$ npm install -g grunt-cli

Instalar grunt local

``npm install grunt --save-dev```

Correr grunt

$ grunt
$ grunt uglify
$ grunt uglify:suma
$ grunt ugligy:dist
module.exports = function (grunt) {
grunt.initConfig({
uglify: {
suma: {
src: 'js/suma.js',
dest: 'dist/suma.min.js'
},
resta: {
src: 'js/resta.js',
dest:'dist.resta.min.js'
},
dist: {
src: 'js/*.js',
dest: 'dist/operaciones.min.js'
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('sumaresta', ['uglify:suma', 'uglify:resta']);
grunt.registerTask('dist', ['uglify:dist']);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment