From a9d6c6cc968b1d651de6249f31552d63e2238d17 Mon Sep 17 00:00:00 2001 From: Adam Brady Date: Wed, 6 May 2015 09:54:29 +1000 Subject: [PATCH] clean up directory structure --- readme.md => README.md | 0 troubleshooting.md => i18n/troubleshooting.md | 0 troubleshooting_ja.md => i18n/troubleshooting_ja.md | 0 troubleshooting_ko.md => i18n/troubleshooting_ko.md | 0 troubleshooting_zh-cn.md => i18n/troubleshooting_zh-cn.md | 0 compare-solution.js => lib/compare-solution.js | 0 get-file.js => lib/get-file.js | 0 problem.js => lib/problem.js | 2 +- run-solution.js => lib/run-solution.js | 0 problems/accessing-array-values/index.js | 2 +- problems/array-filtering/index.js | 2 +- problems/arrays/index.js | 2 +- problems/for-loop/index.js | 2 +- problems/function-arguments/index.js | 2 +- problems/function-return-values/index.js | 2 +- problems/functions/index.js | 2 +- problems/if-statement/index.js | 2 +- problems/introduction/index.js | 2 +- problems/looping-through-arrays/index.js | 2 +- problems/number-to-string/index.js | 2 +- problems/numbers/index.js | 2 +- problems/object-keys/index.js | 2 +- problems/object-properties/index.js | 2 +- problems/objects/index.js | 2 +- problems/revising-strings/index.js | 2 +- problems/rounding-numbers/index.js | 2 +- problems/scope/index.js | 2 +- problems/string-length/index.js | 2 +- problems/strings/index.js | 2 +- problems/this/index.js | 2 +- problems/variables/index.js | 2 +- 31 files changed, 23 insertions(+), 23 deletions(-) rename readme.md => README.md (100%) rename troubleshooting.md => i18n/troubleshooting.md (100%) rename troubleshooting_ja.md => i18n/troubleshooting_ja.md (100%) rename troubleshooting_ko.md => i18n/troubleshooting_ko.md (100%) rename troubleshooting_zh-cn.md => i18n/troubleshooting_zh-cn.md (100%) rename compare-solution.js => lib/compare-solution.js (100%) rename get-file.js => lib/get-file.js (100%) rename problem.js => lib/problem.js (93%) rename run-solution.js => lib/run-solution.js (100%) diff --git a/readme.md b/README.md similarity index 100% rename from readme.md rename to README.md diff --git a/troubleshooting.md b/i18n/troubleshooting.md similarity index 100% rename from troubleshooting.md rename to i18n/troubleshooting.md diff --git a/troubleshooting_ja.md b/i18n/troubleshooting_ja.md similarity index 100% rename from troubleshooting_ja.md rename to i18n/troubleshooting_ja.md diff --git a/troubleshooting_ko.md b/i18n/troubleshooting_ko.md similarity index 100% rename from troubleshooting_ko.md rename to i18n/troubleshooting_ko.md diff --git a/troubleshooting_zh-cn.md b/i18n/troubleshooting_zh-cn.md similarity index 100% rename from troubleshooting_zh-cn.md rename to i18n/troubleshooting_zh-cn.md diff --git a/compare-solution.js b/lib/compare-solution.js similarity index 100% rename from compare-solution.js rename to lib/compare-solution.js diff --git a/get-file.js b/lib/get-file.js similarity index 100% rename from get-file.js rename to lib/get-file.js diff --git a/problem.js b/lib/problem.js similarity index 93% rename from problem.js rename to lib/problem.js index 9993488f..f4f4803e 100644 --- a/problem.js +++ b/lib/problem.js @@ -13,7 +13,7 @@ module.exports = function createProblem(dirname) { this.problem = getFile(path.join(dirname, 'problem' + postfix + '.md')); this.solution = getFile(path.join(dirname, 'solution' + postfix + '.md')); this.solutionPath = path.resolve(dirname, "../../solutions", problemName, "index.js"); - this.troubleshootingPath = path.join(dirname, '../../troubleshooting' + postfix + '.md'); + this.troubleshootingPath = path.join(dirname, '../../i18n/troubleshooting' + postfix + '.md'); } exports.verify = function (args, cb) { diff --git a/run-solution.js b/lib/run-solution.js similarity index 100% rename from run-solution.js rename to lib/run-solution.js diff --git a/problems/accessing-array-values/index.js b/problems/accessing-array-values/index.js index c8da79ee..706d66c2 100644 --- a/problems/accessing-array-values/index.js +++ b/problems/accessing-array-values/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/array-filtering/index.js b/problems/array-filtering/index.js index c8da79ee..706d66c2 100644 --- a/problems/array-filtering/index.js +++ b/problems/array-filtering/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/arrays/index.js b/problems/arrays/index.js index c8da79ee..706d66c2 100644 --- a/problems/arrays/index.js +++ b/problems/arrays/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/for-loop/index.js b/problems/for-loop/index.js index c8da79ee..706d66c2 100644 --- a/problems/for-loop/index.js +++ b/problems/for-loop/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/function-arguments/index.js b/problems/function-arguments/index.js index c8da79ee..706d66c2 100644 --- a/problems/function-arguments/index.js +++ b/problems/function-arguments/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/function-return-values/index.js b/problems/function-return-values/index.js index c8da79ee..706d66c2 100644 --- a/problems/function-return-values/index.js +++ b/problems/function-return-values/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/functions/index.js b/problems/functions/index.js index c8da79ee..706d66c2 100644 --- a/problems/functions/index.js +++ b/problems/functions/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/if-statement/index.js b/problems/if-statement/index.js index c8da79ee..706d66c2 100644 --- a/problems/if-statement/index.js +++ b/problems/if-statement/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/introduction/index.js b/problems/introduction/index.js index c8da79ee..706d66c2 100644 --- a/problems/introduction/index.js +++ b/problems/introduction/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/looping-through-arrays/index.js b/problems/looping-through-arrays/index.js index c8da79ee..706d66c2 100644 --- a/problems/looping-through-arrays/index.js +++ b/problems/looping-through-arrays/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/number-to-string/index.js b/problems/number-to-string/index.js index c8da79ee..706d66c2 100644 --- a/problems/number-to-string/index.js +++ b/problems/number-to-string/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/numbers/index.js b/problems/numbers/index.js index c8da79ee..706d66c2 100644 --- a/problems/numbers/index.js +++ b/problems/numbers/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/object-keys/index.js b/problems/object-keys/index.js index c8da79ee..706d66c2 100644 --- a/problems/object-keys/index.js +++ b/problems/object-keys/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/object-properties/index.js b/problems/object-properties/index.js index c8da79ee..706d66c2 100644 --- a/problems/object-properties/index.js +++ b/problems/object-properties/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/objects/index.js b/problems/objects/index.js index c8da79ee..706d66c2 100644 --- a/problems/objects/index.js +++ b/problems/objects/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/revising-strings/index.js b/problems/revising-strings/index.js index c8da79ee..706d66c2 100644 --- a/problems/revising-strings/index.js +++ b/problems/revising-strings/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/rounding-numbers/index.js b/problems/rounding-numbers/index.js index c8da79ee..706d66c2 100644 --- a/problems/rounding-numbers/index.js +++ b/problems/rounding-numbers/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/scope/index.js b/problems/scope/index.js index c8da79ee..706d66c2 100644 --- a/problems/scope/index.js +++ b/problems/scope/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/string-length/index.js b/problems/string-length/index.js index c8da79ee..706d66c2 100644 --- a/problems/string-length/index.js +++ b/problems/string-length/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/strings/index.js b/problems/strings/index.js index c8da79ee..706d66c2 100644 --- a/problems/strings/index.js +++ b/problems/strings/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/this/index.js b/problems/this/index.js index c8da79ee..706d66c2 100644 --- a/problems/this/index.js +++ b/problems/this/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file diff --git a/problems/variables/index.js b/problems/variables/index.js index c8da79ee..706d66c2 100644 --- a/problems/variables/index.js +++ b/problems/variables/index.js @@ -1 +1 @@ -module.exports = require("../../problem")(__dirname) \ No newline at end of file +module.exports = require("../../lib/problem")(__dirname) \ No newline at end of file