Created
July 25, 2014 19:20
-
-
Save drakakisgeo/c4defc385d4a517dc962 to your computer and use it in GitHub Desktop.
Grunt setup for Aglio autocompile and merge .md files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### 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