Game Development Reference
In-Depth Information
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git://github.com/clintbellanger/heroine-dusk.git"
},
"author": "Clint Bellanger",
"license": "GPL v3",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-watch": "~0.4.0",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-connect": "~0.3.0",
"grunt-open": "~0.2.0",
"grunt-contrib-concat": "~0.3.0"
}
}
Next I created a custom GruntFile that looks like this:
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-open');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
connect: {
server: {
options: {
port: 8080,
base: './deploy/web'
}
}
},
concat: {
dist: {
src: [ "src/config.js",
"src/utils.js",
"src/input.js",
"src/bitfont.js",
Search WWH ::




Custom Search