This repository was archived by the owner on Jun 3, 2021. It is now read-only.
Releases: alleyinteractive/huron
Releases · alleyinteractive/huron
Multiple entry points
Adds prototypeEntry config property and --use-prototype CLI flag. These allow a user to add files from any number of additional entry points to HMR or load them in an additional <script> (for dev and production respectively).
Also:
- Updates package.json to require node 8
- Adds global
bodyClassesconfig property to supply classes to<body>for all prototypes
Release 2.3.3
Package Updates
Updates kss-node to eliminate a security vulnerability in a npm dependency.
Fix bug in `-p` flag for building prototype HTML
process.exit()was exiting too early, preventing webpack build from finishing.
Add functionality to support CSS modules
Also includes a variety of code cleanup, standardization, and steamlining:
- Switch all directories and filenames to use camelCase
- Use webpack to build the browser script and incorporate via
output.libraryandoutput.libraryTarget(woohoo!). This unifies the dev experience for both the CLI and the browser script - Remove
prebuildscript (which used eslint cli) in favor ofeslint-loadernow that we're using webpack for both builds - Update node target for
babel-preset-envto latestltsversion - Remove
postbuild.jsin favor ofdist/cli/index.jsso cli will still work with dev build. Postbuild was previously prepending the required#!/usr/bin/env node. However, this was not happening when you rannpm run dev-cli, sodev-cliwas rather pointless. This creates anindex.jsfile for use as the npm bin. - Switch to using
includeeverywhere we're usingindexOf - Use
importfor everything we're able to in the CLI - Move
gazelogic to a separatefileWatcher.js - Update various other packages and add
package-lock.json - Add
enginesto package.json to specify both node and npm version requirements - Switch to using webpack module key (it's unique!) instead of an md5 hash for targeting correct markup to replace in the browser script. We were using node
cryptofor the hash, which was adding a whole crapload of modules to the browser build. - Switch to using the more standard
index.jsfor both web and cli entry points - Devise and implement a method for us to both lint and transpile the HMR logic for the browser script (which needs to be dynamically generated and written based on user's huron config)
Fix issue with trailing slash
opn would open a prototype URL with doubled slashes after the configured root directory if user added a trailing slash in their configuration. This fix removes any trailing slashes that may be there.
Changes related to code review of CSS modules functionality
2.3.0-beta.6 Merge branch 'cssmodules' into beta
Fix linting for HMR logic
Linting wasn't actually functioning in the last beta release, this release fixes it.
Transpile and lint HMR handling logic
This release settles on a method of both transpiling and linting browser HMR logic.
Fix issue where styleguide section template would not be copied over
2.3.0-beta.3 Merge branch 'cssmodules' into beta