From 69ffe38ebea7f5de9e1c764ea4fa2b2ae1b3c110 Mon Sep 17 00:00:00 2001 From: Jeff Cross Date: Mon, 3 Jun 2013 22:23:02 -0700 Subject: [PATCH] remove(make): Removed obsolete make file. --- make.js | 80 --------------------------------------------------------- 1 file changed, 80 deletions(-) delete mode 100644 make.js diff --git a/make.js b/make.js deleted file mode 100644 index 88eeae5..0000000 --- a/make.js +++ /dev/null @@ -1,80 +0,0 @@ -require('shelljs/make'); - -var path = require('path') - , less = require('less'); - -target.all = function() { - target.dashboard(); - target.jshint(); -}; - -target.dashboard = function() { - cd(__dirname); - - var lessSource = cat('lib/resources/dashboard/stylesheets/style.less'); - - if (lessSource) { - var parser = new(less.Parser)({ - paths: ['lib/resources/dashboard/stylesheets'], // Specify search paths for @import directives - filename: 'style.less' // Specify a filename, for better error messages - }); - - parser.parse(lessSource, function (e, tree) { - if (e) return console.error(e.message); - try { - tree.toCSS().to('lib/resources/dashboard/stylesheets/style.css'); - } catch (ex) { - console.error(path.basename(ex.filename) + ":" + ex.line + " - " + ex.message); - ex.extract.forEach(function(line) { - console.error(" " + line); - }); - } - }); - - } -}; - -target.jshint = function() { - target.jshintLib(); - target.jshintTest(); - target.jshintDpdJs(); - target.jshintCli(); - target.jshintDashboard(); - target.jshintCollectionDashboard(); -}; - -function hint(pathName, fileName) { - var lastPath = process.cwd(); - cd(pathName); - echo("Linting " + pathName + (fileName ? ("/" + fileName) : "") + "..."); - exec('jshint ' + (fileName || '.') + " --extra-ext " + fileName); - echo(); - cd(lastPath); -} - -target.jshintLib = function() { - hint('lib'); -}; - -target.jshintTest = function() { - hint('test'); - hint('test-app'); -}; - -target.jshintDpdJs = function() { - hint('clib', 'dpd.js'); -}; - -target.jshintCli = function() { - cp('bin/dpd', 'bin/dpd.js'); - hint('bin', 'dpd.js'); - rm('bin/dpd.js'); -}; - -target.jshintDashboard = function() { - hint('lib/resources/dashboard/js'); -}; - -target.jshintCollectionDashboard = function() { - hint('lib/resources/collection/dashboard/js'); -};