huron

huron

npm i huron

34 Versions

2.4.0-beta.0

beta
5 years ago

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

2.3.3

latest
5 years ago

This release includes:

  • Support for webpack 3
  • Fix for webpack-dev-server setup that will allow referencing of static assets in prototypes that work on both dev and build (example: prototype sample images)

2.3.3-beta.1

5 years ago

2.3.3-beta.0

5 years ago

2.3.1

5 years ago
  • process.exit() was exiting too early, preventing webpack build from finishing.

2.3.1-beta

5 years ago

2.3.0

5 years ago

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 and output.libraryTarget (woohoo!). This unifies the dev experience for both the CLI and the browser script
  • Remove prebuild script (which used eslint cli) in favor of eslint-loader now that we're using webpack for both builds
  • Update node target for babel-preset-env to latest lts version
  • Remove postbuild.js in favor of dist/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 ran npm run dev-cli, so dev-cli was rather pointless. This creates an index.js file for use as the npm bin.
  • Switch to using include everywhere we're using indexOf
  • Use import for everything we're able to in the CLI
  • Move gaze logic to a separate fileWatcher.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)

2.3.0-beta.7

5 years ago

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.


2.3.0-beta.6

5 years ago

2.3.0-beta.5

5 years ago

Linting wasn't actually functioning in the last beta release, this release fixes it.


2.3.0-beta.4

5 years ago

This release settles on a method of both transpiling and linting browser HMR logic.


2.3.0-beta.3

5 years ago

2.3.0-beta.2

5 years ago

2.3.0-beta.1

5 years ago

Also includes:

  • Switch everything to camelCase
  • Switch to using webpack to build browser script (woohoo!)
  • Update node target for babel-preset-env to latest lts version
  • Remove postbuild.js in favor of dist/cli/index.js so cli will still work with dev build
  • Switch to using include everywhere we're using indexOf
  • Use import for everything in the CLI
  • Move gaze logic to a separate fileWatcher.js
  • Update various other packages and add package-lock.json
  • Switch to using webpack module key (it's unique!) instead of an md5 hash for targeting correct markup to replace. 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
  • Remove prebuild script (which used eslint cli) in favor of eslint-loader now that we're using webpack for browser build also

2.2.1-beta.0

6 years ago

2.2.0

6 years ago

Installed jest and added a few starter unit tests. Test away!


2.2.0-beta.2

6 years ago

2.2.0-beta.1

6 years ago

2.2.0-beta.0

6 years ago

First pass at setting up jest and writing some tests!


2.1.6

6 years ago

2.1.6-beta.0

6 years ago

This release will add support for huron function configs, similar to the same implementation in webpack 2. This means you'll be able to provide flags like --env.production on the command line (or in an npm script) and { production: true } will be passed into your huron configuration function. More information on how to use this in webpack can be found here, and the same function(env) { ... } pattern can now be used in huron as well.


2.1.5

6 years ago

Webpack 2 allows you to pass a function that returns your config object, instead of supplying the config object directly. This release adds support for using a webpack function config (including the --env flag).


2.1.5-beta.1

6 years ago

2.1.5-beta.0

6 years ago

2.1.4

6 years ago
  • Remove 'built by Alley Interactive'
  • Link to example repo.
  • Update information about CLI.
  • Renames Table of Contents and moves to the bottom, since it doesn't reference intermal to this document.

2.1.3

6 years ago

HTML webpack plugin was referencing a non-existent location for its template when user includes a context property in the webpack config. This changes the path to the template to be absolute.

Also includes a couple updates for the internal webpack build.


2.1.2-beta.0

6 years ago

2.1.2

6 years ago

This release passes on Webpack compile errors when running the production build, making errors easier to debug.


2.1.1

6 years ago

This release addresses several issues:

Note: I accidentally published version 2.1.0 on the beta tag in NPM, so I wasn't able to publish over it in the latest tag. I've bumped the version straight to 2.1.1 to accommodate this (I'm still getting used to this!)


2.1.0-beta.1

6 years ago

Didn't know we needed to include #!/usr/bin/env node at the top of the binary, wrote a small postbuild script to prepend it after the build is complete.


2.1.0

6 years ago

2.0.0

6 years ago

This release includes rewrites necessary for migration to Webpack 2. Since Huron has so few users thus far, we are not supporting backwards-compatibility with Webpack 1, and thus bumping the version up to 2.0.0.

Major changes:

  • Switch to using handlebars-template-loader instead of handlebars-loader, as handlebars-loader was not playing nice with Webpack 2 for some reason (didn't dig too deep into it, but might be worth further exploration)
  • Wepack 2 no longer supports custom properties in its config, which Huron previously required. This release moves the huron config to a separate file and adds a CLI flag for it.

1.0.1

6 years ago

Safari doesn't like dataset so much, so I added fallbacks for our usage of that property.


1.0.0

6 years ago

This is the official public release of version 1.0.0, which contains a range of significant, breaking updates in the overall structure of how Huron functions. Some highlights:

  • SC5-Styleguide generator is no longer a requirement. Huron is now capable of generating its own styleguide using the same KSS source
  • Integration of Webpack and, more importantly, Hot Module Reloading
  • Tighter integration with KSS-node
  • Implementation of handlebars templates and associated JSON sample data for use with KSS markup examples
  • Updated syntax for creating prototypes and styleguides

34 Versions

TagPublished
2.4.0-beta.0beta5yrs ago
2.3.3latest5yrs ago
2.3.3-beta.15yrs ago
2.3.3-beta.05yrs ago
2.3.15yrs ago
2.3.1-beta5yrs ago
2.3.05yrs ago
2.3.0-beta.75yrs ago
2.3.0-beta.65yrs ago
2.3.0-beta.55yrs ago
2.3.0-beta.45yrs ago
2.3.0-beta.35yrs ago
2.3.0-beta.25yrs ago
2.3.0-beta.15yrs ago
2.2.1-beta.06yrs ago
2.2.06yrs ago
2.2.0-beta.26yrs ago
2.2.0-beta.16yrs ago
2.2.0-beta.06yrs ago
2.1.66yrs ago
2.1.6-beta.06yrs ago
2.1.56yrs ago
2.1.5-beta.16yrs ago
2.1.5-beta.06yrs ago
2.1.46yrs ago
2.1.36yrs ago
2.1.2-beta.06yrs ago
2.1.26yrs ago
2.1.16yrs ago
2.1.0-beta.16yrs ago
2.1.06yrs ago
2.0.06yrs ago
1.0.16yrs ago
1.0.06yrs ago