Skip to content
This repository was archived by the owner on Mar 14, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion source/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ module.exports = function(grunt) {

'jshint': require('./build/config/jshint.js')(config),

'watch': require('./build/config/watch.js')(config)
'nodemon': require('./build/config/nodemon.js')(config),

'watch': require('./build/config/watch.js')(config),

'concurrent': require('./build/config/concurrent.js')(config)

});

Expand All @@ -52,16 +56,21 @@ module.exports = function(grunt) {
grunt.registerTask('docs', 'yuidoc');
grunt.registerTask('pretty-js', 'beautify');

// Compile and Start the development environment
grunt.registerTask('development', ['stylus:dev', 'concurrent:development'])

// load local tasks.
grunt.loadTasks('./build/tasks');

// load grunt plugins
grunt.loadNpmTasks('grunt-beautify');
grunt.loadNpmTasks('grunt-concurrent');
grunt.loadNpmTasks('grunt-contrib-stylus');
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.loadNpmTasks('grunt-contrib-yuidoc');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-nodemon');

};
11 changes: 11 additions & 0 deletions source/build/config/concurrent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = function(config) {

return {
development: {
tasks: ['nodemon:development', 'watch'],
options: {
logConcurrentOutput: true
}
}
};
}
14 changes: 14 additions & 0 deletions source/build/config/nodemon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = function(config) {

return {
development: {
options: {
file: 'server.js',
args: ['development'],
watched_folders: ['app'],
debug: true,
delayTime: 1
}
}
};
}
34 changes: 18 additions & 16 deletions source/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,26 @@
"version": "0.0.1",
"author": "",
"dependencies": {
"geddy": "https://github.com/mde/geddy/tarball/21441cb9a3b9ce47f432b9a4d60fd2d4ad066947",
"swig": "*",
"socket.io": "*",
"underscore": "*",
"chai": "*",
"lodash": "1.1.1",
"grunt": "0.4.0",
"grunt-cli":"0.1.8",
"grunt-beautify": "https://nodeload.github.com/terryweiss/grunt-beautify/legacy.tar.gz/cabb6260342b407df15522df62e932389502d21b",
"grunt-contrib-requirejs": "0.1.0",
"grunt-contrib-stylus":"0.5.0",
"grunt-contrib-yuidoc": "0.3.2",
"grunt-contrib-watch": "0.4.0",
"grunt-contrib-jshint": "0.2.0",
"grunt-contrib-qunit": "0.2.0"
"geddy": "https://github.com/mde/geddy/tarball/b5003705de4b4547bcee6d3e07761c394ae15d88",
"swig": "~0.14.0",
"socket.io": "~0.9.16",
"underscore": "~1.4.4",
"chai": "~1.7.1",
"lodash": "~1.3.1",
"grunt": "~0.4.1",
"grunt-cli": "~0.1.9",
"grunt-beautify": "https://github.com/terryweiss/grunt-beautify/tarball/c3a88b23d9fc473979a087831b2300001ca2b7f5",
"grunt-contrib-requirejs": "~0.4.1",
"grunt-contrib-stylus": "~0.5.0",
"grunt-contrib-yuidoc": "~0.4.0",
"grunt-contrib-watch": "~0.4.4",
"grunt-contrib-jshint": "~0.6.0",
"grunt-contrib-qunit": "~0.2.2",
"grunt-nodemon": "~0.0.5",
"grunt-concurrent": "~0.3.0"
},
"devDependencies": {},
"engines": {
"node": "0.8.x"
}
}
}