forked from llaske/sugarizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
54 lines (50 loc) · 1.79 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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
uglify: {
options: {
banner: '/*! Sugarizer <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
dynamic_mappings: {
expand: true,
src: [
'lib/*.js',
'js/*.js',
'activities/Abecedarium.Activity/**/*.js',
'activities/Calculate.Activity/**/*.js',
'activities/ChatPrototype.Activity/**/*.js',
'activities/Clock.Activity/**/*.js',
'activities/Cordova.Activity/**/*.js',
'activities/Etoys.Activity/**/*.js',
'activities/FoodChain.Activity/**/*.js',
'activities/Gears.Activity/js/*.js', // TODO: lib/gearsketch dont work
'activities/GetThingsDone.Activity/**/*.js',
'activities/Gridpaint.Activity/**/*.js',
'activities/LabyrinthJS.Activity/**/*.js',
'activities/LastOneLoses.Activity/**/*.js',
'activities/Markdown.Activity/**/*.js',
'activities/MazeWeb.Activity/**/*.js',
'activities/MediaViewer.Activity/**/*.js',
'activities/Memorize.Activity/**/*.js',
'activities/Moon.Activity/**/*.js',
'activities/Paint.Activity/**/*.js',
'activities/PhysicsJS.Activity/**/*.js',
'activities/Record.Activity/lib/*.js', // TODO: js/recordrtc.js don't work
'activities/SharedNotes.Activity/**/*.js',
'activities/Speak.Activity/**/*.js',
'activities/Stopwatch.Activity/**/*.js',
'activities/TamTamMicro.Activity/**/*.js',
'activities/TankOp.Activity/**/*.js',
'activities/TurtleBlocksJS.Activity/**/*.js',
'activities/VideoViewer.Activity/**/*.js',
'activities/WelcomeWeb.Activity/**/*.js'
],
dest: 'build/'
}
}
});
// Load the plugin that provides the "uglify" task.
grunt.loadNpmTasks('grunt-contrib-uglify');
// Default task(s).
grunt.registerTask('default', ['uglify']);
};