Skip to content

v0.11.0

Compare
Choose a tag to compare
@d4rkr00t d4rkr00t released this 29 Sep 17:19
· 340 commits to master since this release

Highlights

Better built-in template

  • Added meta with device-width and initial-scale
  • Added div#app where you can render app right away. Previously it was possible to render to body or to create element using document.createElement and append it to the body.
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><%= htmlWebpackPlugin.options.title %></title>
  </head>
  <body>
    <div id="app"></div>
  </body>
</html>

Flow

All Aik code itself is flow typed now. I hope It will help avoid silly mistakes and makes code more reliable.

Babel

From this point Aik uses Babel preset "latest" which includes all yearly presets. This means more seamless updates for babel supported features.

postcss-import -> postcss-partial-import

Postcss-import was replaced in favour of postcss-partial-import. The reason was that postcss-import includes more than 248 dependencies which leads to unreasonable long install time. According to slow-deps package, installing only postcss-import (on my internet and laptop) might take more than 1.5 minute.

Custom template path in messages

Both dev server and build messages show custom template path if exists:

screen shot 2016-09-30 at 22 01 50


Bug Fixes

  • build: Correct flags and path for dist (5a0c129)

Features

  • babel: Move to "latest" preset (1bc4cd9)
  • eslint: Update eslint config and remove babel-eslint (60510ca)
  • messages: Add custom template path to messages (9b9a433)
  • webpack: Better default template for html webpack plugin (5efa428)
  • webpack: Replace postcss-import with postcss-partial-import (3883564)