-
Notifications
You must be signed in to change notification settings - Fork 22
/
Gruntfile.js
158 lines (156 loc) · 7.96 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
/*******************************************************************************
* 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'),
compress: {
main: {
options: {
archive: 'target/aem-sightly-brackets-extension-<%= pkg.version %>.zip'
},
files: [
{
src: [
'main.js',
'strings.js',
'package.json',
'LICENSE',
'NOTICE',
'sly/**',
'node_modules/adm-zip/**',
'node_modules/ansi-regex/**',
'node_modules/ansi-styles/**',
'node_modules/archiver/**',
'node_modules/asn1/**',
'node_modules/assert-plus/**',
'node_modules/async/**',
'node_modules/aws-sign2/**',
'node_modules/aws4/**',
'node_modules/balanced-match/**',
'node_modules/bcrypt-pbkdf/**',
'node_modules/binary/**',
'node_modules/bl/**',
'node_modules/boom/**',
'node_modules/brace-expansion/**',
'node_modules/buffer-crc32/**',
'node_modules/buffers/**',
'node_modules/caseless/**',
'node_modules/chainsaw/**',
'node_modules/chalk/**',
'node_modules/combined-stream/**',
'node_modules/commander/**',
'node_modules/concat-map/**',
'node_modules/core-util-is/**',
'node_modules/crc32-stream/**',
'node_modules/cryptiles/**',
'node_modules/dashdash/**',
'node_modules/debug/**',
'node_modules/deflate-crc32-stream/**',
'node_modules/delayed-stream/**',
'node_modules/ecc-jsbn/**',
'node_modules/end-of-stream/**',
'node_modules/escape-string-regexp/**',
'node_modules/extend/**',
'node_modules/extsprintf/**',
'node_modules/file-utils/**',
'node_modules/findup-sync/**',
'node_modules/forever-agent/**',
'node_modules/form-data/**',
'node_modules/fs-extra/**',
'node_modules/fs.realpath/**',
'node_modules/fstream/**',
'node_modules/generate-function/**',
'node_modules/generate-object-property/**',
'node_modules/getpass/**',
'node_modules/glob/**',
'node_modules/graceful-fs/**',
'node_modules/har-validator/**',
'node_modules/has-ansi/**',
'node_modules/hawk/**',
'node_modules/hoek/**',
'node_modules/http-signature/**',
'node_modules/iconv-lite/**',
'node_modules/inflight/**',
'node_modules/inherits/**',
'node_modules/is-my-ip-valid/**',
'node_modules/is-my-json-valid/**',
'node_modules/is-property/**',
'node_modules/is-typedarray/**',
'node_modules/isarray/**',
'node_modules/isbinaryfile/**',
'node_modules/isstream/**',
'node_modules/jsbn/**',
'node_modules/json-schema/**',
'node_modules/json-stringify-safe/**',
'node_modules/jsonfile/**',
'node_modules/jsonpointer/**',
'node_modules/jsprim/**',
'node_modules/lazystream/**',
'node_modules/lodash/**',
'node_modules/lru-cache/**',
'node_modules/match-stream/**',
'node_modules/mime-db/**',
'node_modules/mime-types/**',
'node_modules/minimatch/**',
'node_modules/minimist/**',
'node_modules/mkdirp/**',
'node_modules/ms/**',
'node_modules/natives/**',
'node_modules/node-uuid/**',
'node_modules/oauth-sign/**',
'node_modules/once/**',
'node_modules/over/**',
'node_modules/path-is-absolute/**',
'node_modules/pinkie/**',
'node_modules/pinkie-promise/**',
'node_modules/process-nextick-args/**',
'node_modules/pullstream/**',
'node_modules/punycode/**',
'node_modules/q/**',
'node_modules/qs/**',
'node_modules/readable-stream/**',
'node_modules/request/**',
'node_modules/rimraf/**',
'node_modules/safer-buffer/**',
'node_modules/setimmediate/**',
'node_modules/sigmund/**',
'node_modules/slice-stream/**',
'node_modules/sntp/**',
'node_modules/sshpk/**',
'node_modules/string_decoder/**',
'node_modules/stringstream/**',
'node_modules/strip-ansi/**',
'node_modules/supports-color/**',
'node_modules/tar-stream/**',
'node_modules/tough-cookie/**',
'node_modules/traverse/**',
'node_modules/tunnel-agent/**',
'node_modules/tweetnacl/**',
'node_modules/universalify/**',
'node_modules/unzip/**',
'node_modules/util-deprecate/**',
'node_modules/verror/**',
'node_modules/wrappy/**',
'node_modules/xmldom/**',
'node_modules/xpath/**',
'node_modules/xtend/**',
'node_modules/zip-stream/**',
'!node_modules/**/*.md',
'!node_modules/**/test.js',
'!node_modules/**/test*/**/*',
]
}
]
}
}
});
grunt.loadNpmTasks('grunt-contrib-compress');
// Default task(s).
grunt.registerTask('default', ['compress']);
};