-
Notifications
You must be signed in to change notification settings - Fork 3
/
gruntfile.js
43 lines (41 loc) · 2.2 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
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
blockly: {
files: {
'src/assets/js/blockly/blocks/ciaa_sapi_blocks_compressed.js': [
'src/assets/js/blockly/blocks/ciaa_sapi_blocks/base.js',
'src/assets/js/blockly/blocks/ciaa_sapi_blocks/servo.js',
'src/assets/js/blockly/blocks/ciaa_sapi_blocks/math.js',
'src/assets/js/blockly/blocks/ciaa_sapi_blocks/logic.js',
'src/assets/js/blockly/blocks/ciaa_sapi_blocks/procedures.js',
'src/assets/js/blockly/blocks/ciaa_sapi_blocks/loops.js',
'src/assets/js/blockly/blocks/ciaa_sapi_blocks/variables.js',
'src/assets/js/blockly/blocks/ciaa_sapi_blocks/text.js',
],
'src/assets/js/blockly/generators/ciaa_sapi_generator_compressed.js': [
'src/assets/js/blockly/generators/ciaa_sapi_generator.js',
'src/assets/js/blockly/generators/ciaa_sapi/base.js',
'src/assets/js/blockly/generators/ciaa_sapi/servo.js',
'src/assets/js/blockly/generators/ciaa_sapi/math.js',
'src/assets/js/blockly/generators/ciaa_sapi/logic.js',
'src/assets/js/blockly/generators/ciaa_sapi/procedures.js',
'src/assets/js/blockly/generators/ciaa_sapi/loops.js',
'src/assets/js/blockly/generators/ciaa_sapi/variables.js',
'src/assets/js/blockly/generators/ciaa_sapi/text.js',
'src/assets/js/blockly/generators/ciaa_sapi/control.js',
]
}
}
}
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');
// Default task(s).
grunt.registerTask('default', ['uglify']);
}