medium-editor-multi-placeholders-plugin
Version:
A plugin for adding multiple placeholders in MediumEditor
28 lines (26 loc) • 662 B
JavaScript
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
all: ['Gruntfile.js', 'src/main.js']
},
concat: {
dist: {
src: ['src/main.js'],
dest: 'dist/<%= pkg.name %>.js',
nonull: true
}
},
uglify: {
my_target: {
files: {
'dist/<%= pkg.name %>.min.js': ['dist/<%= pkg.name %>.js']
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.registerTask('default', ['jshint', 'concat','uglify']);
};