Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

Commit

Permalink
work on #241: module -> generators/module
Browse files Browse the repository at this point in the history
  • Loading branch information
gruppjo committed Sep 3, 2015
1 parent cc989e5 commit 8fd4cff
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions module/index.js → generators/module/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict';
var yeoman = require('yeoman-generator');
var utils = require('../utils/utils.js');
var mkdirp = require('mkdirp');

var sampleAnswers = require('../generators/app/sources/sample-answers.js');
var utils = require('../../utils/utils.js');
var sampleAnswers = require('../app/sources/sample-answers.js');

var MGenerator = yeoman.generators.NamedBase.extend({

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
14 changes: 7 additions & 7 deletions test/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('m', function () {
before(function (done) {
helpers.run(path.join(__dirname, '../generators/app'))
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../module'),
path.join(__dirname, '../generators/module'),
path.join(__dirname, '../generators/constant'),
path.join(__dirname, '../generators/controller'),
path.join(__dirname, '../generators/template'),
Expand Down Expand Up @@ -129,7 +129,7 @@ describe('m', function () {
before(function (done) {
helpers.run(path.join(__dirname, '../generators/app'))
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../module'),
path.join(__dirname, '../generators/module'),
path.join(__dirname, '../generators/constant'),
path.join(__dirname, '../generators/controller'),
path.join(__dirname, '../generators/template'),
Expand All @@ -153,7 +153,7 @@ describe('m', function () {
before(function (done) {
helpers.run(path.join(__dirname, '../generators/app'))
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../module'),
path.join(__dirname, '../generators/module'),
path.join(__dirname, '../generators/constant'),
path.join(__dirname, '../generators/controller'),
path.join(__dirname, '../generators/template'),
Expand All @@ -177,7 +177,7 @@ describe('m', function () {
before(function (done) {
helpers.run(path.join(__dirname, '../generators/app'))
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../module'),
path.join(__dirname, '../generators/module'),
path.join(__dirname, '../generators/constant'),
path.join(__dirname, '../generators/controller'),
path.join(__dirname, '../generators/template'),
Expand Down Expand Up @@ -220,7 +220,7 @@ describe('m', function () {
helpers.run(path.join(__dirname, '../generators/app'))
.withOptions({ 'skip-install': true, 'skip-sdk': true, 'skip-prompts': true}) // execute with options
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../module'),
path.join(__dirname, '../generators/module'),
path.join(__dirname, '../generators/constant'),
path.join(__dirname, '../generators/controller'),
path.join(__dirname, '../generators/template'),
Expand All @@ -240,7 +240,7 @@ describe('m', function () {
helpers.run(path.join(__dirname, '../generators/app'))
.withOptions({ 'skip-install': true, 'skip-sdk': true, 'skip-prompts': true, 'ios-only': true}) // execute with options
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../module'),
path.join(__dirname, '../generators/module'),
path.join(__dirname, '../generators/constant'),
path.join(__dirname, '../generators/controller'),
path.join(__dirname, '../generators/template'),
Expand All @@ -260,7 +260,7 @@ describe('m', function () {
helpers.run(path.join(__dirname, '../generators/app'))
.withOptions({ 'skip-install': true, 'skip-sdk': true, 'skip-prompts': true, 'cordova': false}) // execute with options
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../module'),
path.join(__dirname, '../generators/module'),
path.join(__dirname, '../generators/constant'),
path.join(__dirname, '../generators/controller'),
path.join(__dirname, '../generators/template'),
Expand Down
14 changes: 7 additions & 7 deletions test/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ describe('m:module', function () {
};

before(function (done) {
helpers.run(path.join(__dirname, '../module'))
helpers.run(path.join(__dirname, '../generators/module'))
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../generators/controller'),
path.join(__dirname, '../generators/template'),
Expand All @@ -195,7 +195,7 @@ describe('m:module', function () {
};

before(function (done) {
helpers.run(path.join(__dirname, '../module'))
helpers.run(path.join(__dirname, '../generators/module'))
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../generators/controller'),
path.join(__dirname, '../generators/template'),
Expand All @@ -214,7 +214,7 @@ describe('m:module', function () {
describe('myModule (no main, tabs)', function () {

before(function (done) {
helpers.run(path.join(__dirname, '../module'))
helpers.run(path.join(__dirname, '../generators/module'))
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../generators/controller'),
path.join(__dirname, '../generators/template'),
Expand Down Expand Up @@ -314,7 +314,7 @@ describe('m:module', function () {
};

before(function (done) {
helpers.run(path.join(__dirname, '../module'))
helpers.run(path.join(__dirname, '../generators/module'))
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../generators/controller'),
path.join(__dirname, '../generators/template'),
Expand All @@ -335,7 +335,7 @@ describe('m:module', function () {
describe('myModule (no main, sidemenu)', function () {

before(function (done) {
helpers.run(path.join(__dirname, '../module'))
helpers.run(path.join(__dirname, '../generators/module'))
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../generators/controller'),
path.join(__dirname, '../generators/template'),
Expand Down Expand Up @@ -374,7 +374,7 @@ describe('m:module', function () {
};

before(function (done) {
helpers.run(path.join(__dirname, '../module'))
helpers.run(path.join(__dirname, '../generators/module'))
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../generators/controller'),
path.join(__dirname, '../generators/template'),
Expand All @@ -394,7 +394,7 @@ describe('m:module', function () {

describe('myModule (no main, blank)', function () {
before(function (done) {
helpers.run(path.join(__dirname, '../module'))
helpers.run(path.join(__dirname, '../generators/module'))
.withGenerators([ // configure path to subgenerators
path.join(__dirname, '../generators/controller'),
path.join(__dirname, '../generators/template'),
Expand Down

0 comments on commit 8fd4cff

Please sign in to comment.