Building

As we mentioned before, Metal.js components are written in ES6, which means that we need a transpiling process before using it on a website.

This can be done via any tools that you prefer, like webpack or browserify, but we've also published a few tools of our own, which focuses on Metal.js projects, which we'll talk about here.

gulp-metal

What this package offers is a a bunch of gulp tasks. There are tasks that can handle not only building javascript, as well as soy compilation, testing, linting and many other things.

The tutorials we've provided are all using it, though indirectly, through some npm scripts. To learn how to use gulp-metal directly take a look at its npm page.

metal-cli

If you're not a fan of gulp you can still use metal-cli, which offers almost the same tools, but through the command line.

Examples using other tools

As was mentioned before, using gulp-metal or metal-cli is not required. You can use your favorite build tool with Metal.js as well.

We've created a github repository full of different examples on how to work with Metal.js, and among other things it has a bunch of examples showing how to use different build tools. Check it out, and feel free to create an issue or send a pull request for other tools that it may be missing.