forked from KillerCodeMonkey/ng-quill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
32 lines (29 loc) · 1004 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
my_target: {
files: {
"src/ng-quill.min.js": "src/ng-quill.min.js"
}
}
},
umd: {
all: {
options: {
src: 'src/ng-quill.js',
dest: 'src/ng-quill.min.js', // optional, if missing the src will be used
deps: { // optional, `default` is used as a fallback for rest!
'default': ['Quill', 'angular'],
amd: ['Quill', 'angular'],
cjs: ['Quill', 'angular']
}
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-umd');
grunt.registerTask('default', ['umd', 'uglify']);
};