From a6e1e6df5f46452295cb3690651dc981c36097ce Mon Sep 17 00:00:00 2001 From: gruppjo Date: Thu, 3 Sep 2015 12:47:29 +0200 Subject: [PATCH] work on #241: directive -> generators/directive --- {directive => generators/directive}/index.js | 2 +- {directive => generators/directive}/templates/_directive.js | 0 .../directive}/templates/_directive.spec.js | 0 test/directive.js | 4 ++-- 4 files changed, 3 insertions(+), 3 deletions(-) rename {directive => generators/directive}/index.js (95%) rename {directive => generators/directive}/templates/_directive.js (100%) rename {directive => generators/directive}/templates/_directive.spec.js (100%) diff --git a/directive/index.js b/generators/directive/index.js similarity index 95% rename from directive/index.js rename to generators/directive/index.js index 75c230d..93e4294 100644 --- a/directive/index.js +++ b/generators/directive/index.js @@ -1,6 +1,6 @@ 'use strict'; var yeoman = require('yeoman-generator'); -var utils = require('../utils/utils.js'); +var utils = require('../../utils/utils.js'); module.exports = yeoman.generators.NamedBase.extend({ initializing: function () { diff --git a/directive/templates/_directive.js b/generators/directive/templates/_directive.js similarity index 100% rename from directive/templates/_directive.js rename to generators/directive/templates/_directive.js diff --git a/directive/templates/_directive.spec.js b/generators/directive/templates/_directive.spec.js similarity index 100% rename from directive/templates/_directive.spec.js rename to generators/directive/templates/_directive.spec.js diff --git a/test/directive.js b/test/directive.js index a30de6c..cf9aa42 100644 --- a/test/directive.js +++ b/test/directive.js @@ -8,7 +8,7 @@ var config = require(path.join(__dirname, '../utils/config.js')); describe('m:directive', function () { describe('some', function () { before(function (done) { - helpers.run(path.join(__dirname, '../directive')) + helpers.run(path.join(__dirname, '../generators/directive')) .withArguments('some') .on('end', done); }); @@ -34,7 +34,7 @@ describe('m:directive', function () { describe('someThing myModule', function () { before(function (done) { - helpers.run(path.join(__dirname, '../directive')) + helpers.run(path.join(__dirname, '../generators/directive')) .withArguments('someThing myModule') .on('end', done); });