Code Monkey home page Code Monkey logo

broccoli-timepiece's Introduction

Broccoli Timepiece

It's what you use to watch things, you know?

OK, seriously, broccoli-timepiece is a command line utility that uses the broccoli-sane-watcher and Builder that come with broccoli to provide rebuild semantics without running a webserver.

Usage

Uses the standard broccoli watcher to build a tree (from the Brocfile.js in your projects root), and output to a directory.

Pass the name of the directory to output to as the first command line parameter.

npm install -g broccoli-timepiece
broccoli-timepiece dist/

Options

Verbose

When passing --verbose (or -v) you will also see which file triggered the rebuild action, accompanied with the Slowest Trees output. Useful for tracking down where bottle necks are present.

broccoli-timepiece dist/ --verbose

file changed css/style.scss
Build successful - 1967ms

Slowest Trees                                 | Total
----------------------------------------------+---------------------
AutoprefixerFilter                            | 748ms
CoreObject                                    | 429ms
SassCompiler                                  | 418ms
SassCompiler                                  | 372ms

Slowest Trees (cumulative)                    | Total (avg)
----------------------------------------------+---------------------
SassCompiler (2)                              | 790ms (395 ms)
AutoprefixerFilter (1)                        | 748ms
CoreObject (1)                                | 429ms

Watchman

Considered a more reliable alternative when it comes to watching file changes. Requires watchman to be installed prior (brew install watchman if you are on OS X). Activated by passing either --watchman or -w. More information about watchman.

broccoli-timepiece dist/ --watchman

License

This project is distributed under the MIT license.

broccoli-timepiece's People

Contributors

rwjblue avatar kroofy avatar greghuc avatar gcollazo avatar hans-d avatar jenseng avatar

Watchers

 avatar James Cloos avatar

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.