Giter Site home page Giter Site logo

efueger / broccoli-leasot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sivakumar-kailasam/broccoli-leasot

0.0 1.0 0.0 148 KB

A broccoli plugin which wraps around the leasot module to parse and output TODOs and FIXMEs from comments in your files

License: MIT License

JavaScript 100.00%

broccoli-leasot's Introduction

broccoli-leasot

A broccoli plugin for the leasot module to parse and output markers like TODOs and FIXMEs from comments

Repo health & stats

Build Status Code Climate Test Coverage

Dependency Status devDependency Status

Installation

npm install --save-dev broccoli-leasot

Usage

var broccoliLeasot = require('broccoli-leasot');
var tree = broccoliLeasot(someTree);

As a Ember CLI Addon, simply npm install --save-dev broccoli-leasot and supply the options you would like:

var app = new EmberApp({
  broccoliLeasotOptions: {
    enabled: true,
    markers: [ 'TODO', 'FIXME', 'CUSTOM']
  }
});

Documentation

broccoliLeasot(inputTree, options)


options.enabled {true|false}

This will eliminate processing altogether.

Default: false


options.extensions Array of file types to scan

This indicates the files with specific extensions to be scanned. The complete list can be seen at the leasot repo

Default: ['js', 'css', 'less', 'scss', 'hbs', 'handlebars']


options.kinds Array of markers

These are the markers looked up in the comments of the files which are scanned.

Default: ['TODO', 'FIXME']


options.groupBy file|kind

The broccoli plugin prints the analysis of leasot on the console. Users can choose between grouping markers by file name or kind of marker.

Default: file


Development

This plugin is all about productivity so its written in es6/2015 with the help of babel.js. The plugin code is at src/index.js. To see the compiled code run npm run compile and look at the content of lib\index.js

Interested in using babel for your next npm module, read this excellent article on this.

Tests

Running the tests:

npm install
npm test

broccoli-leasot's People

Contributors

sivakumar-kailasam avatar efueger avatar

Watchers

 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.