Skip to content

Commit

Permalink
Towards some new beginning
Browse files Browse the repository at this point in the history
- Deleted old app structure
- Start the app generator
- Created the travis.CI node sub generator
  • Loading branch information
SBoudrias committed Apr 8, 2015
1 parent b25e50b commit c3937bf
Show file tree
Hide file tree
Showing 20 changed files with 92 additions and 456 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sudo: false
language: node_js
node_js:
- 'iojs'
- '0.12'
- '0.10'
- '0.12'
- 'iojs'
146 changes: 0 additions & 146 deletions app/index.js

This file was deleted.

48 changes: 0 additions & 48 deletions app/templates/Gruntfile.js

This file was deleted.

42 changes: 0 additions & 42 deletions app/templates/README.md

This file was deleted.

41 changes: 0 additions & 41 deletions app/templates/_package.json

This file was deleted.

16 changes: 0 additions & 16 deletions app/templates/cli.js

This file was deleted.

12 changes: 0 additions & 12 deletions app/templates/editorconfig

This file was deleted.

1 change: 0 additions & 1 deletion app/templates/gitattributes

This file was deleted.

2 changes: 0 additions & 2 deletions app/templates/gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions app/templates/index.js

This file was deleted.

15 changes: 0 additions & 15 deletions app/templates/jshintrc

This file was deleted.

10 changes: 0 additions & 10 deletions app/templates/test/test.js

This file was deleted.

23 changes: 23 additions & 0 deletions generators/app/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
'use strict';
var generators = require('yeoman-generator');

module.exports = generators.Base.extend({
constructor: function () {
generators.Base.apply(this, arguments);

this.option('travis', {
type: Boolean,
required: false,
defaults: true,
description: 'Include travis config'
});
},

initializing: function() {
if (this.options.travis) {
this.composeWith('node:travis', {}, {
local: require.resolve('../travis')
});
}
}
});
11 changes: 11 additions & 0 deletions generators/travis/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
'use strict';
var generators = require('yeoman-generator');

module.exports = generators.Base.extend({
initializing: function() {
this.fs.copy(
this.templatePath('travis.yml'),
this.destinationPath('.travis.yml')
);
}
});
Loading

0 comments on commit c3937bf

Please sign in to comment.