Skip to content

togajs/toga-sample

Repository files navigation

NOTE: This project is under active development. APIs subject to change.

toga-sample

NPM version Downloads Build Status Coverage Status Chat

Walks a Toga abstract syntax tree, finds all samples, and compiles them into an iframed demo.

Install

$ npm install toga-sample

Usage

var toga = require('toga'),
    js = require('toga-js'),
    sample = require('toga-sample'),
    pura = require('toga-pura'),

    config = {
        src: './src/assets/**/*.js',
        dest: './web/docs'
    };

toga
    .src(config.src)
    .pipe(js.parser())
    .pipe(sample.formatter())
    .pipe(pura.compiler())
    .pipe(toga.dest(config.dest));

Contribute

Tasks Tip

Standards for this project, including tests, code coverage, and semantics are enforced with a build tool. Pull requests must include passing tests with 100% code coverage and no linting errors.

Test

$ npm test

MIT © Shannon Moeller

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published