-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.js
52 lines (51 loc) · 1.68 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
/*eslint-env node*/
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
copy: {
'pure-uuid': {
expand: true,
flatten: true,
src: 'node_modules/pure-uuid/uuid.js',
dest: './src/plugin/iframe_root/modules/vendor/pure-uuid'
},
dompurify: {
expand: true,
flatten: true,
src: 'node_modules/dompurify/dist/purify.js',
dest: './src/plugin/iframe_root/modules/vendor/dompurify'
},
preact: {
expand: true,
flatten: true,
src: 'node_modules/preact/dist/preact.umd.js',
dest: './src/plugin/iframe_root/modules/vendor/preact'
},
htm: {
expand: true,
flatten: true,
src: 'node_modules/htm/dist/htm.umd.js',
dest: './src/plugin/iframe_root/modules/vendor/htm'
},
requirejsJson: {
expand: true,
flatten: false,
cwd: 'node_modules/requirejs-json',
src: [
'json.js'
],
dest: './src/plugin/iframe_root/modules/vendor/requirejs-json'
}
},
clean: {
options: {
force: true
},
vendor: './src/plugin/iframe_root/modules/vendor/*',
bower: './bower_components/',
npm: './node_modules/'
}
});
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-clean');
};