-
Notifications
You must be signed in to change notification settings - Fork 17
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
Showing
4 changed files
with
1,673 additions
and
1,585 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 |
---|---|---|
|
@@ -14,4 +14,7 @@ sublime/ | |
.DS_Store | ||
*.html | ||
*.txt | ||
*.csv | ||
*.json | ||
*.tsv | ||
package-lock.json |
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,71 @@ | ||
// Changes: A Mini-Language for Change Logs. | ||
|
||
// https://github.com/breck7/scroll/blob/main/changes.parsers | ||
|
||
versionParser | ||
crux 📦 | ||
cells keywordCell semanticVersionCell dateCell | ||
description What is the semantic version number? | ||
extends h1Parser | ||
// Todo: mixins in Parsers would make this easier. | ||
boolean isMeasure true | ||
boolean isMeasureRequired true | ||
boolean isConceptDelimiter true | ||
float sortIndex 1 | ||
javascript | ||
get measureValue() { | ||
return this.getWord(1) | ||
} | ||
measureName = "version" | ||
|
||
bugFixParser | ||
crux 🏥 | ||
extends abstractCustomListItemParser | ||
newFeatureParser | ||
crux 🎉 | ||
extends abstractCustomListItemParser | ||
breakingChangeParser | ||
crux ⚠️ | ||
extends abstractCustomListItemParser | ||
styleTweakParser | ||
crux 🎨 | ||
extends abstractCustomListItemParser | ||
|
||
releaseDateParser | ||
extends abstractMeasureParser | ||
boolean isMeasureRequired true | ||
boolean isComputed true | ||
float sortIndex 1.1 | ||
javascript | ||
computeValue(concept) { | ||
return concept.nodeAt(0).getWord(2) | ||
} | ||
|
||
abstractSummaryParser | ||
extends abstractMeasureParser | ||
boolean isComputed true | ||
float sortIndex 1.2 | ||
|
||
bugFixesParser | ||
extends abstractSummaryParser | ||
description How many bug fixes in this release? | ||
javascript | ||
computeValue(concept) { | ||
return concept.findNodes("🏥").length | ||
} | ||
|
||
newFeaturesParser | ||
extends abstractSummaryParser | ||
description How many new features in this release? | ||
javascript | ||
computeValue(concept) { | ||
return concept.findNodes("🎉").length | ||
} | ||
|
||
breakingChangesParser | ||
extends abstractSummaryParser | ||
description How many breaking changes in this release? | ||
javascript | ||
computeValue(concept) { | ||
return concept.findNodes("⚠️").length | ||
} |
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
Oops, something went wrong.