geut / chan

A Changelog CLI based on http://keepachangelog.com/
ISC License
87 stars 10 forks source link

refactor #30

Closed tinchoz49 closed 5 years ago

tinchoz49 commented 5 years ago

These PR changes everything :bat:

Based on the concepts of unified, I define a unist like ast for chan I called it: chast

This is the structure:

interface Root <: Node {
  children: [Preface, Release*]
}
interface Preface <: Node {
  children: [Node]
}
interface Release <: Node {
  identifier: string,
  version: string,
  url: string?
  yanked: boolean?
  unreleased: boolean?
  children: [Action]
}
interface Action <: Node {
  name: string
  children: [Change*, Group*]
}
interface Group <: Node {
  name: string,
  children: [Change]
}
interface Change <: Node {
  children: [Node]
}

Packages:

Other things:

TODO (Help is welcome)