forked from adobe/aem-brackets-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
52 lines (50 loc) · 1.78 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
/*******************************************************************************
* Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved.
*
* Licensed under the Apache License 2.0.
* http://www.apache.org/licenses/LICENSE-2.0
******************************************************************************/
module.exports = function (grunt) {
'use strict';
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
maven: {
options: {
goal: 'install'
}
},
compress: {
main: {
options: {
archive: 'target/aem-sightly-brackets-extension-<%= pkg.version %>.zip'
},
files: [
{
src: [
'main.js',
'strings.js',
'package.json',
'LICENSE',
'NOTICE',
'sly/**',
'sling/*',
'node_modules/adm-zip/**',
'node_modules/archiver/**',
'node_modules/fs-extra/**',
'node_modules/glob/**',
'node_modules/q/**',
'node_modules/request/**',
'node_modules/xmldom/**',
'node_modules/xpath/**'
]
}
]
}
}
});
grunt.loadNpmTasks('grunt-maven-tasks');
grunt.loadNpmTasks('grunt-contrib-compress');
// Default task(s).
grunt.registerTask('default', ['maven', 'compress']);
};