This repository has been 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
bodyClasses
config 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.library
andoutput.libraryTarget
(woohoo!). This unifies the dev experience for both the CLI and the browser script - Remove
prebuild
script (which used eslint cli) in favor ofeslint-loader
now that we're using webpack for both builds - Update node target for
babel-preset-env
to latestlts
version - Remove
postbuild.js
in favor ofdist/cli/index.js
so 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-cli
was rather pointless. This creates anindex.js
file for use as the npm bin. - Switch to using
include
everywhere we're usingindexOf
- Use
import
for everything we're able to in the CLI - Move
gaze
logic to a separatefileWatcher.js
- Update various other packages and add
package-lock.json
- Add
engines
to 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
crypto
for the hash, which was adding a whole crapload of modules to the browser build. - Switch to using the more standard
index.js
for 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