2013-08-27 01:24:48 +00:00
|
|
|
module.exports = function(grunt) {
|
|
|
|
|
|
|
|
|
|
grunt.initConfig({
|
|
|
|
|
concat_css: {
|
|
|
|
|
options: {
|
|
|
|
|
// Task-specific options go here.
|
|
|
|
|
},
|
|
|
|
|
all: {
|
|
|
|
|
src: ["css/*.css"],
|
|
|
|
|
dest: "spritesheets.css"
|
|
|
|
|
}
|
2013-08-27 01:54:08 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
browserify: {
|
|
|
|
|
all: {
|
|
|
|
|
src: ["script/index.js"],
|
|
|
|
|
dest: "dist/habitrpg-shared.js"
|
|
|
|
|
},
|
|
|
|
|
options: {
|
|
|
|
|
transform: ['coffeeify'],
|
|
|
|
|
debug: true
|
|
|
|
|
}
|
2013-08-27 01:24:48 +00:00
|
|
|
}
|
2013-08-27 01:54:08 +00:00
|
|
|
|
2013-08-27 01:24:48 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Load the plugin that provides the "uglify" task.
|
|
|
|
|
grunt.loadNpmTasks('grunt-concat-css');
|
2013-08-27 01:54:08 +00:00
|
|
|
grunt.loadNpmTasks('grunt-browserify');
|
2013-08-27 01:24:48 +00:00
|
|
|
|
|
|
|
|
// Default task(s).
|
2013-08-27 01:54:08 +00:00
|
|
|
grunt.registerTask('default', ['concat_css', 'browserify']);
|
2013-08-27 01:24:48 +00:00
|
|
|
|
|
|
|
|
};
|