Last active
August 29, 2015 14:17
-
-
Save mouseroot/af70cbc81dc2f0c0e6a0 to your computer and use it in GitHub Desktop.
Coffeescript grunt file + index test page
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
var sourceFiles = [ | |
]; | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
coffee: { | |
compileJoined: { | |
options: { join: true}, | |
files: {"build/build.js" : sourceFiles} | |
} | |
}, | |
uglify: { | |
my_target: { | |
files: { "build/build.min.js" : "build/build.js" } | |
} | |
} | |
}); | |
grunt.loadNpmTasks("grunt-contrib-coffee"); | |
grunt.loadNpmTasks("grunt-contrib-uglify"); | |
grunt.registerTask("compile","Just compiles and joins the coffee files",["coffee"]); | |
grunt.registerTask("build","Compiles and minifies the coffee files",["coffee","uglify"]); | |
}; |
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
<!DOCTYPE html> | |
<head> | |
<title>Coffeescript Application Testpage</title> | |
</head> | |
<body> | |
<script src="build/build.js"></script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment