-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a new subgenerator to fix update command
Now it will correctly update all the gulp task files and not just the ones used in `generator-statisk`. Also fixed a small issue with a typo in a test. Should be the final fix needed for #141. Closes #141.
- Loading branch information
Showing
8 changed files
with
34 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
'use strict'; | ||
|
||
var generators = require('yeoman-generator'); | ||
|
||
module.exports = generators.Base.extend({ | ||
writing: function () { | ||
this.fs.copy( | ||
this.templatePath('build.js'), | ||
this.destinationPath('gulp/tasks/build.js') | ||
); | ||
} | ||
}); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
var path = require('path'); | ||
var test = require('ava'); | ||
var assert = require('yeoman-assert'); | ||
var helpers = require('yeoman-test'); | ||
|
||
test.before(() => { | ||
return helpers.run(path.join(__dirname, '../generators/gulp')) | ||
.toPromise(); | ||
}); | ||
|
||
test('creates gulp file for building jekyll', () => { | ||
assert.file('gulp/tasks/build.js'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters