-
Notifications
You must be signed in to change notification settings - Fork 20
/
Gruntfile.js
46 lines (43 loc) · 991 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*global module:false*/
module.exports = function(grunt) {
require("load-grunt-tasks")(grunt); // npm install --save-dev load-grunt-tasks
grunt.initConfig({
babel: {
options: {
sourceMap: false,
modules: 'umd'
},
dist: {
files: [{
expand: true,
cwd: 'src/',
src: ['**/*.js'],
dest: 'dist'
}]
}
},
uglify: {
dist: {
files: {
'dest/slate.min.js': ['dist/js/*.js']
}
}
},
esperanto: {
options: {
type: 'umd',
bundleOpts: {
name: 'slate'
}
},
files: {
expand: true,
cwd: 'src/js',
src : ['**/*.js'],
dest: 'dist/out.min.js'
}
}
});
grunt.registerTask("default", [/*"babel"/*, 'uglify'*/,'esperanto']);
// grunt.registerTask('default', ['umd']);
};