Releases: enigma-io/generator-enigma
5.3.0
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
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
[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
5.0.4
5.0.3
5.0.2
5.0.1
5.0.0
- 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)
- added
src/
at the root of every project to keep your working files clean and separate from everything else - merged the sanitize stylesheet into the top-level
style.styl
- updated various files with newer ES6+ conveniences
- added the babel "transform-class-properties" plugin to enable static class property shortcuts (part of the enhancements in #3)
- removed the
LICENSE
file in favor of the simple license field inpackage.json
- 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 - switched the dev server (budo) invocation from the CLI to using it as a library; see
scripts/budo.js
- added