This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.js
62 lines (59 loc) · 2.01 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
files: ['Gruntfile.js', 'src/**/*.js', 'tests/**/*.js'],
options: {
// options here to override JSHint defaults
globals: {
jQuery: true,
console: true,
module: true,
document: true
}
}
},
concat: {
dist: {
src: [
'src/setup.js',
'src/main.js',
'src/execute.js',
'src/templates.js',
'src/modules.js',
'src/events.js',
'src/dom-selection.js',
'src/translation.js',
'src/string-tools.js',
'src/compatibility.js',
'src/utils.js',
'src/jquery-plugin.js',
'src/lang/en.js',
'src/modules/basic-module.js',
'src/modules/link-module.js',
'src/modules/align-module.js',
'src/modules/format-module.js',
'src/modules/list-module.js',
'src/modules/table-module.js',
'src/modules/image-module.js'
],
dest: 'release/nekland-editor.js'
}
},
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n'
},
dist: {
files: {
'release/nekland-editor.min.js': ['<%= concat.dist.dest %>']
}
}
}
});
//grunt.registerTask('default', ['concat']);
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('default', ['jshint', 'concat', 'uglify']);
};