-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
46 lines (40 loc) · 1005 Bytes
/
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
/**
* Showup - jQuery plugin
* Copyright (c) 2013, Jon Schlinkert, contributors
* Licensed under the MIT License
*/
module.exports = function(grunt) {
'use strict';
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Build demo HTML
assemble: {
options: {
postprocess: require('pretty')
},
component: {
options: grunt.file.readYAML('_config.yml'),
files: {
'index.html': ['src/lorem.md'],
'tall.html': ['src/ipsum.md']
}
}
},
copy: {
assets: {
src: ['*.{js,css,html}'],
dest: '_gh_pages/'
}
},
sync: {
options: {alt: 'showup.jquery.json'}
}
});
// Load Assemble plugins to build demo HTML.
grunt.loadNpmTasks('assemble');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-sync-pkg');
// Default tasks to be run.
grunt.registerTask('default', ['assemble', 'copy', 'sync']);
};