Skip to content

Instantly share code, notes, and snippets.

@drakakisgeo
Created July 25, 2014 19:20
Show Gist options
  • Save drakakisgeo/c4defc385d4a517dc962 to your computer and use it in GitHub Desktop.
Save drakakisgeo/c4defc385d4a517dc962 to your computer and use it in GitHub Desktop.
Grunt setup for Aglio autocompile and merge .md files
#### Instructions #######################
#
# Install Node, grunt-aglio and grunt-contrib-watch on your localhost
# Create this .js file in the folder that you want Grunt to watch for changes
# Replace "my_app" with your app name
# Intro.md, first.md and any .md files will be watched. The order that those will be concatenated is in the array => ["intro.md","first.md",'second.md']
#
##########################################
module.exports = function(grunt) {
grunt.initConfig({
aglio: {
my_app:{
files:{
"index.html": ["intro.md","first.md",'second.md']
},
theme: "flatly",
seperator: "\n"
}
},
watch:{
my_app:{
files:'*',
tasks:'aglio:my_app'
}
}
});
grunt.loadNpmTasks('grunt-aglio');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default','watch');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment