mirror of https://github.com/RubaXa/Sortable.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
632 B
31 lines
632 B
'use strict'; |
|
|
|
module.exports = function (grunt){ |
|
grunt.initConfig({ |
|
pkg: grunt.file.readJSON('package.json'), |
|
|
|
version: { |
|
src: '<%= pkg.exportName %>.js' |
|
}, |
|
|
|
uglify: { |
|
options: { |
|
banner: '/*! <%= pkg.exportName %> <%= pkg.version %> - <%= pkg.license %> | <%= pkg.repository.url %> */\n' |
|
}, |
|
dist: { |
|
files: { |
|
'<%= pkg.exportName %>.min.js': ['<%= pkg.exportName %>.js'] |
|
} |
|
} |
|
} |
|
}); |
|
|
|
|
|
// These plugins provide necessary tasks. |
|
grunt.loadNpmTasks('grunt-version'); |
|
grunt.loadNpmTasks('grunt-contrib-uglify'); |
|
|
|
|
|
// Default task. |
|
grunt.registerTask('default', ['version', 'uglify']); |
|
};
|
|
|