Unified lib naming

This commit is contained in:
Luis A. Leiva 2015-11-08 20:31:05 +01:00
parent cf67cebc98
commit 550ede44a1
4 changed files with 11 additions and 11 deletions

View File

@ -5,13 +5,13 @@ module.exports = function(grunt) {
pkg: grunt.file.readJSON('package.json'), pkg: grunt.file.readJSON('package.json'),
concat: { concat: {
all: { full: {
src: [ src: [
'jsketch.js', 'jsketch.js',
'jquery.sketchable.js', 'jquery.sketchable.js',
'jquery.sketchable.memento.js', 'jquery.sketchable.memento.js',
], ],
dest: 'dist/jsketch.all.js' dest: 'dist/jquery.sketchable.full.js'
} }
}, },
@ -21,22 +21,22 @@ module.exports = function(grunt) {
'dist/jsketch.min.js': [ 'jsketch.js' ] 'dist/jsketch.min.js': [ 'jsketch.js' ]
} }
}, },
jsketchable: { sketchable: {
files: { files: {
'dist/jquery.jsketchable.min.js': [ 'jquery.sketchable.js' ] 'dist/jquery.sketchable.min.js': [ 'jquery.sketchable.js' ]
} }
}, },
memento: { memento: {
files: { files: {
'dist/jquery.jsketchable.memento.min.js': [ 'jquery.sketchable.memento.js' ] 'dist/jquery.sketchable.memento.min.js': [ 'jquery.sketchable.memento.js' ]
} }
}, },
all: { full: {
options: { options: {
banner: '/*! <%= pkg.description %> (all in one) | v<%= pkg.version %> | <%= grunt.template.today("yyyy-mm-dd") %> */\n' banner: '/*! <%= pkg.description %> (all in one) | v<%= pkg.version %> | <%= grunt.template.today("yyyy-mm-dd") %> */\n'
}, },
files: { files: {
'dist/jsketch.all.min.js': [ '<%= concat.all.dest %>' ] 'dist/jquery.sketchable.full.min.js': [ '<%= concat.full.dest %>' ]
} }
} }
}, },
@ -53,9 +53,9 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-clean');
grunt.registerTask('all', [ 'concat:all', 'uglify:all', 'clean' ]); grunt.registerTask('full', [ 'concat:full', 'uglify:full', 'clean' ]);
grunt.registerTask('jsketch', [ 'uglify:jsketch', 'clean' ]); grunt.registerTask('jsketch', [ 'uglify:jsketch', 'clean' ]);
grunt.registerTask('jsketchable', [ 'uglify:jsketchable', 'clean' ]); grunt.registerTask('sketchable', [ 'uglify:sketchable', 'clean' ]);
grunt.registerTask('memento', [ 'uglify:memento', 'clean' ]); grunt.registerTask('memento', [ 'uglify:memento', 'clean' ]);
grunt.registerTask('default', [ 'concat:all', 'uglify:all', 'uglify:jsketch', 'uglify:jsketchable', 'uglify:memento', 'clean' ]); grunt.registerTask('default', [ 'concat:full', 'uglify:full', 'uglify:jsketch', 'uglify:sketchable', 'uglify:memento', 'clean' ]);
}; };

File diff suppressed because one or more lines are too long