Skip to content

v7.0.0

Compare
Choose a tag to compare
@ZauberNerd ZauberNerd released this 23 Oct 14:51
· 2586 commits to master since this release
1533890

7.0.0 (2017-10-13)

This major update is mostly an internal reorganization of the package structure to enable new features in the future.
Therefore the upgrade from hops@6 to hops@7 is quite simple, even though it is a breaking change (because of this commit).

Hops now has a global CLI, that can be installed via npm (npm i -g hops-cli) or yarn (yarn global add hops-cli) which makes it simpler to initialize new projects using $ hops init my-new-project.
Read more about it in the main readme or the hops-local-cli readme.

BREAKING CHANGE:

The webpack, babel, postcss configurations have moved from hops-config to hops-build-config.

buildConfig, developConfig and nodeConfig have been removed from hops-config.
They are now accessible on the hops-build-config export.

Also: All deep-requires into hops-config/{configs,lib/check-esnext,loaders,plugins,sections,shims,ssl} must now use hops-build-config.

Example:
var webpackConfig = require('hops-config/configs/build');
now needs to become:
var webpackConfig = require('hops-build-config/configs/build');

Also: All projects using hops now need different hops dependencies.
The required set of dependencies for any react-hops project is:

  • hops-build (devDependency)
  • hops-local-cli (devDependency)
  • jest-preset-hops (devDependency)
  • hops-express
  • hops-react
  • hops-redux

And if you are affected by the breaking change described above, you also need to add hops-build-config to your project's dependencies.

Bug Fixes

  • config: find node_modules directory by resolving hops-config (a0aa9ae)
  • config: race-condition: create cache dir just before usage (baa5bd7)
  • jest-preset: use package-relative paths in preset configuration (4844575)
  • build-config: resolve symlinked module directories (85cb18d)

Features

  • local-cli: add --production/-p flag to build, serve and start (559ec99)
  • local-cli: implement "hops start" command (e5d9906)
  • local-cli: implement build, develop and serve commands (6378026)
  • global-cli: initial draft of global cli module (f7a245f)
  • express: print error and exit if no prebuilt server was found (d1f059e)
  • template-minimal: add a minimal example template without react (db529d0)
  • config: read hops user config from package.json if not in env (0d3fdb9)