Giter Club home page Giter Club logo

metal-cli's Introduction

metal-cli

Command line tools for metal (e.g. build, soy).

Install

$ npm install --global metal-cli

Commands

You can see information about each supported command by typing $ metal --help in the command line. Below you'll find some of that info too.

build

$ metal build

Builds Metal.js code, compiling soy files and transpiling ES6 to ES5 for example. The default output format is globals, but that can be be changed via params, just like many other options. For more details, run $ metal build --help.

watch

$ metal watch

Watches soy and js files, building them when they change. The default output format is globals, but that can be be changed via params, just like many other options. For more details, run $ metal watch --help.

soy

$ metal soy

Compiling soy files and automatically makes them export generated components. For more details, run $ metal soy --help.

metal-cli's People

Contributors

eduardolundgren avatar jbalsas avatar mairatma avatar shinnlok avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

metal-cli's Issues

Soy errors are not being propagated

Add the following file:

`test/fixtures/src/compileError.soy

{namespace CompileError}

{template .render}
	{call Undeclared.render /}
{/template}

And the following test:

it('should exit with error when soy finishes with error', function(done) {
  console.log('running test');
      runMetal([
        'soy',
        '-s',
        'test/fixtures/src/**/CompileError.soy',
        '-d',
        'test/fixtures/src'
      ]).on('close', function(code) {
        assert.strictEqual(1, code);
        done();
      });
})

This might be caused by metal/metal-tools-soy#7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.