Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Big Change + New Features

Compare
Choose a tag to compare
@tcoulter tcoulter released this 03 Aug 17:39
· 16046 commits to master since this release

This version of Truffle represents a complete rewrite (kindof) converting all CoffeeScript code to ES6 (using Babel). We wanted to invite more developers to contribute, and the call to use ES6 has been overwhelming. Se we delivered.

Beyond that, we have some great changes to announce:

  • ES6 and JSX support is now built-in to Truffle. This means you can write your app code and test code in ES6, or include JSX natively in your frontend without having to worry about adding a custom processor. Just name your files .es6 or .es instead of .js and Truffle will know what to do. CoffeeScript is still supported for app and test code, however, if you prefer.
  • We've deprecated the "frontend" configuration within app.json and are now calling it "build". The configuration data is still the same, but we hope that Truffle can be used with Etherum-backed console applications and standalone contract-related library wrappers in addition to web applications with full user interfaces. The build processes for these types of applications are very different, and we hope to support each one. Note that for now the "frontend" keyword will still work.

And here are some features that were released previously but unannounced:

  • truffle-exec: Along with the truffle command line utility you're also given truffle-exec, which is an alias for truffle exec --file="...". This will better allow you run scripts against your compiled contracts, perhaps within a larger build or deploy script.
  • truffle deploy now rebuilds your app with the new compiled and deployed contracts.

Please write up any bugs within the Github issue tracker. Cheers!
Tim