Skip to content

Commit

Permalink
rename .task
Browse files Browse the repository at this point in the history
  • Loading branch information
Elmer Bulthuis committed Mar 23, 2015
1 parent fa459af commit de6939f
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion task.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ Q.longStackSupport = true;

Q.all(
tasks.map(function(task) {
return require('./tasks/' + task + '.task');
return require('./tasks/' + task + '');
})
).done();
File renamed without changes.
2 changes: 1 addition & 1 deletion tasks/deploy.task.js → tasks/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var when_listObjects = when_node.lift(s3bucket.listObjects.bind(s3bucket));
var when_deleteObjects = when_node.lift(s3bucket.deleteObjects.bind(s3bucket));
var when_putObject = when_node.lift(s3bucket.putObject.bind(s3bucket));

module.exports = require('./dist.task').then(function(dist) {
module.exports = require('./dist').then(function(dist) {

return when_listObjects().then(function(objects) {
if (objects.Contents.length === 0) return;
Expand Down
10 changes: 10 additions & 0 deletions tasks/dist.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* jshint node: true */

var Q = require('q');

module.exports = Q.all([
require('./script'),
require('./style'),
require('./html'),
require('./robots'),
]);
10 changes: 0 additions & 10 deletions tasks/dist.task.js

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions tasks/static.task.js → tasks/static.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
var when = require('when');
var express = require('express');

var config = require('./config');
var args = require('./args');
var vars = require('./vars');

var app = express();

app.use('/', express.static(vars.dstRoot));

module.exports = require('./dist.task').then(function(dist) {
module.exports = require('./dist').then(function(dist) {

return when.promise(function(resolve, reject) {
var server = app.listen(args.port, function() {
Expand Down
File renamed without changes.

0 comments on commit de6939f

Please sign in to comment.