-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
66 lines (58 loc) · 1.53 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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: ["dist"],
concat_css: {
all: {
src: [
"bower_components/bootstrap/dist/css/bootstrap.min.css",
"bower_components/bootstrap/dist/css/bootstrap-theme.min.css",
"bower_components/magnific-popup/dist/magnific-popup.css",
"css/*.css", "!css/print.css"],
dest: "dist/style.css"
},
},
requirejs: {
compile: {
options: {
almond: true,
paths: {
"underscore": "bower_components/underscore/underscore",
"backbone": "bower_components/backbone/backbone",
"paper": "bower_components/paper/dist/paper-core.min",
"jquery": "bower_components/jquery/dist/jquery.min",
"d3": "bower_components/d3/d3.min",
"magnific-popup": "bower_components/magnific-popup/dist/jquery.magnific-popup.min",
"wurfl": "bower_components/isMobile/isMobile.min"
},
shim: {
'backbone': {
deps: ['underscore', 'jquery'],
exports: 'Backbone'
},
'magnific-popup': {
deps: ['jquery']
}
},
baseUrl: ".",
name: "node_modules/almond/almond",
include: ['js/main'],
out: "dist/ideabile.js"
}
}
},
exec: {
export_cv: {
cmd: function() {
return 'phantomjs ph_pdf.js http://ideabile.dev/#/print cv.pdf A4';
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.loadNpmTasks('grunt-concat-css');
grunt.loadNpmTasks('grunt-exec');
// Default task(s).
grunt.registerTask('default', ['requirejs']);
};