Skip to content

Commit

Permalink
gruntfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Per Ehnbom committed Feb 25, 2015
1 parent 4b60bd2 commit f190178
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
15 changes: 15 additions & 0 deletions Gruntfile.js
Expand Up @@ -36,16 +36,31 @@ module.exports = function(grunt) {
nospawn: true
}
}
},
connect: {
server: {
options: {
port: 9001,
base: '',
keepalive:true
}
}
}
});




// Load tasks from NPM
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-connect');

// Default task.
grunt.registerTask('build', ['clean', 'requirejs', 'less']);
grunt.registerTask('default', ['less','watch']);
grunt.registerTask('server', ['less','watch', 'connect']);

};
2 changes: 1 addition & 1 deletion css/main.css

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions package.json
Expand Up @@ -3,11 +3,12 @@
"author": "Per Ehnbom <per.ehnbom@gmail.com>",
"version": "0.0.1",
"devDependencies": {
"grunt-contrib-cssmin": "latest",
"grunt-contrib-requirejs": "latest",
"grunt-contrib-clean": "latest",
"grunt-contrib-less": "latest",
"grunt-contrib-watch": "latest",
"grunt": "~0.4"
"grunt": "~0.4",
"grunt-contrib-clean": "latest",
"grunt-contrib-connect": "^0.9.0",
"grunt-contrib-cssmin": "latest",
"grunt-contrib-less": "latest",
"grunt-contrib-requirejs": "latest",
"grunt-contrib-watch": "latest"
}
}

0 comments on commit f190178

Please sign in to comment.