-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b5c9eb
commit 74411d6
Showing
13 changed files
with
6,208 additions
and
8 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,2 @@ | ||
example/ | ||
docs/ |
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 |
---|---|---|
@@ -1,4 +1,18 @@ | ||
# CHANGELOG | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
## v1.0.0 (30 October 2017) | ||
Initial release | ||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). | ||
|
||
## [1.0.1] - 2018-02-25 | ||
### Added | ||
- Example in `/example` to demonstrate how snapshot assertion works | ||
- Image of assertion test in README | ||
|
||
### Changed | ||
- Changelog format | ||
- Upgraded to Jest 22 for testing | ||
|
||
## [1.0.0] - 2017-10-30 | ||
### Added | ||
- Initial release |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,5 @@ | ||
# @j154004/yeoman-assert example | ||
A simple generator using `@j154004/yeoman-assert` in tests to check output file against a snapshot file. | ||
|
||
## Usage | ||
Run the tests (1 is designed to purposefully fail) with `npm t` to see the snapshot comparison output. |
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,32 @@ | ||
'use strict'; | ||
const Generator = require('yeoman-generator'); | ||
|
||
module.exports = class extends Generator { | ||
prompting() { | ||
const prompts = [{ | ||
name: 'projectName', | ||
message: 'Name for the project', | ||
}]; | ||
|
||
return this.prompt(prompts).then(function (props) { | ||
this.props = props; | ||
}.bind(this)); | ||
} | ||
|
||
writing() { | ||
this.fs.copyTpl( | ||
this.templatePath('README.md'), | ||
this.destinationPath('README.md'), | ||
{ | ||
projectName: this.props.projectName, | ||
}, | ||
); | ||
} | ||
|
||
install() { | ||
this.installDependencies({ | ||
bower: false, | ||
npm: true, | ||
}); | ||
} | ||
} |
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 @@ | ||
# <%= projectName %> |
Oops, something went wrong.