Permalink
Browse files

Removed commented out code.

  • Loading branch information...
1 parent 76b5aa3 commit b3208d14d1faed04967fad4e57928389d2dc633a @ricallinson ricallinson committed Apr 19, 2012
Showing with 0 additions and 27 deletions.
  1. +0 −27 source/lib/management/commands/build.js
View
27 source/lib/management/commands/build.js
@@ -142,13 +142,8 @@ exports.buildhtml5app = function(cmdOptions, store, config, destination,
// files to fetch through the server
serverFiles = { css: true, js: true, json: true },
extension,
-// Removed manifest file from output
-// manifest = 'CACHE MANIFEST\n',
-// indexJs = "module.exports = require('express')." +
-// "createServer(require('express')['static'](__dirname));",
url,
urls = {}, // from: to
-// app,
context = '',
appConfig,
tunnelPrefix;
@@ -183,10 +178,6 @@ exports.buildhtml5app = function(cmdOptions, store, config, destination,
console.log('...');
-// Removed manifest file from output
- // Set the cachable files in the manifest
-// manifest += 'CACHE:\n';
-
// Copy all the files into the destination directory
for (url in store._staticURLs) {
if (store._staticURLs.hasOwnProperty(url)) {
@@ -196,9 +187,6 @@ exports.buildhtml5app = function(cmdOptions, store, config, destination,
mkdirP(libpath.dirname(to), MODE_755);
-// Removed manifest file from output
-// manifest += url + '\n';
-
if (serverFiles[extension] !== undefined) {
urls[url + context] = url;
mkdirP(libpath.dirname(libpath.join(destination, url)),
@@ -217,21 +205,6 @@ exports.buildhtml5app = function(cmdOptions, store, config, destination,
}
}
-// Removed manifest file from output
-// for (url in urls) {
-// if (urls.hasOwnProperty(url)) {
-// manifest += (urls[url] === '/' ? '/index.html' : urls[url]) + '\n';
-// }
-// }
-
-// Removed manifest file from output
- // Write the "cache.manifest" file
-// fs.writeFileSync(libpath.join(destination, 'cache.manifest'), manifest,
-// 'utf8');
-// Removed manifest file from output
- // Write a "quick test" index.js file
-// fs.writeFileSync(libpath.join(destination, 'index.js'), indexJs, 'utf8');
-
// Now use the server to generate some of the files
writeWebPagesToFiles(type, store, destination, urls, config, callback);
};

0 comments on commit b3208d1

Please sign in to comment.