Skip to content

Genki - v0.0.4

Choose a tag to compare

@ItsJonQ ItsJonQ released this 13 Apr 17:28
· 18 commits to master since this release

Updates

  • Refactor genki.js when required to have fresh JSDOM environments on start
  • Refactor generateStyles() -> addStyle() to push new barista styles to a styles array
  • Add tests for addStyle()

Example:

var world = genki.start();

world.addStyle({
  content: `.hosei { background: blue }`
});

world.addStyle({
  content: `.hamada { background: red }`
});

Resolves: #3