Skip to content

Releases: enigma-io/generator-enigma

5.3.0

31 Dec 18:24
Compare
Choose a tag to compare

Updated some dependencies...

autoprefixer-stylus         ^0.9.2  >> ^0.11.0
babel-eslint                ^6.0.0  >> ^7.0.0
babel-jest                  ^15.0.0 >> ^18.0.0
budo                        ^8.1.0  >> ^9.0.0
jest-cli                    ^15.1.0 >> ^18.0.0

Also added the "transform inline environment variables" Babel plugin. It helps get the smallest possible minification when used in conjunction with Uglify's dead code elimination in situations where code is only included for development purposes, e.g.

if (process.env.NODE_ENV === 'development') {
    // do something special
}

You can read more on it on the Babel website.

Happy New Year! 🎉

5.2.0

13 Sep 23:37
Compare
Choose a tag to compare

Update various dependencies, including:

babel-jest           ^12.0.0  >>  ^15.0.0
eslint               ^2.0.0   >>  ^3.0.0
eslint-plugin-react  ^4.2.3   >>  ^6.0.0
jest-cli             ^13.0.0  >>  ^15.1.0
react                ^15.0.0  >>  ^15.3.0
react-dom            ^15.0.0  >>  ^15.3.0

Aside from the dependencies, the default test file extension has been changed from __tests__/index.js style to *.spec.js. The primary reason was reduced confusion due to the test file living alongside what it's targetting; it's also harder to accidentally forget the tests exist for a file in general when they're co-located in the same directory. This fits into the organization guidelines set forth in A maintainable front-end project structure (2016).

Before:

/
    component-x/
        __tests__/
            index.js
        index.js
    component-y/
        __tests__/
            index.js
        index.js

After:

/
    component-x/
        index.js
        index.spec.js
    component-y/
        index.js
        index.spec.js

Thank you for using generator-enigma!

5.1.0

21 Jun 23:16
Compare
Choose a tag to compare

[Feature] Optional react-router installation, + 2 misc fixes (0fb2c08)

There is now an additional prompt during yo enigma on whether you want to automatically have react-router set up. It will default to HTML5 pushstate-based routing, which budo is configured to support.

  • Fixed static/index.html using relative paths when they should always be absolute to the serving root when using pushstate-based routing, since path nesting is an illusion.
  • No longer using <main> as the React root, as semantically it may make more sense to be used deeper in the nested tree adjacent to a <header> or something similar.

5.0.5

15 Jun 20:47
Compare
Choose a tag to compare

Ignore /public from linting (2da81fb)

5.0.4

15 Jun 17:05
Compare
Choose a tag to compare

Rename dist -> public (be44957) This naming more closely follows the convention set by other
popular projects, and feels a little more obvious.

5.0.3

29 May 06:05
Compare
Choose a tag to compare

Remove an excess level of globbing in the main style.styl

5.0.2

23 May 23:18
Compare
Choose a tag to compare

Prevent src/style.styl from importing itself (253ac42)

5.0.1

21 May 22:26
Compare
Choose a tag to compare

Also watch dist/ for CSS changes (113fa16) Fixes livereload not picking up changes in the emitted CSS.

5.0.0

19 May 23:54
Compare
Choose a tag to compare
  • Bump minimum Node version to 4.0 (6e2a0db)
  • Fix a yosay bug (7bef882) The prompts were showing up in the middle of the yosay speech bubble for some reason.
  • Update overall structure, add babel static class method plugin (eb82fc4)
    1. added src/ at the root of every project to keep your working files clean and separate from everything else
    2. merged the sanitize stylesheet into the top-level style.styl
    3. updated various files with newer ES6+ conveniences
    4. added the babel "transform-class-properties" plugin to enable static class property shortcuts (part of the enhancements in #3)
    5. removed the LICENSE file in favor of the simple license field in package.json
    6. reorganized where static assets are meant to live; place your images, fonts, etc in src/static/assets and they will be copied over to /dist during the build process
    7. switched the dev server (budo) invocation from the CLI to using it as a library; see scripts/budo.js

4.5.0

09 May 15:09
Compare
Choose a tag to compare

Remove the dead eslintify reference (d6fcff6)