Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@boundstate/tier-one-dgeni

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@boundstate/tier-one-dgeni

Docs generator for *tier-one* and derivative frameworks. The docs app is built on your project source so that components can be easily demonstrated.

  • 0.5.2
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
3
Weekly downloads
 
Created
Source

tier-one-dgeni

Docs generator for tier-one and derivative frameworks. The docs app is built on your project source so that components can be easily demonstrated.

Usage

// gulpfile.js
const gulp = require('gulp');
const docTasks = require('@boundstate/tier-one-dgeni/tasks');

docTasks.register({
  gulp: gulp,
  faviconPath: 'favicon.ico',
  scssPath: 'scss/tier-one.scss',
  iconSvgPath: 'open-iconic/sprite/sprite.svg'
});

Run docs app, watching for changes:

gulp docs:start

Options

  • gulp: gulp instance to register tasks
  • basePath: base path (defaults to src)
  • faviconPath: path to favicon to be used by docs app (relative to basePath)
  • scssPath: path to SASS file to be used by docs app (relative to basePath)
  • iconSvgPath: path to icon SVG file to be used by docs app

Demos

Add a demo for a component by creating a _demo folder within the component folder. Create a file that exports a module with a name ending in DemoModule (e.g. ButtonDemoModule).

The DemoToolsModule module exported by this library provides tools useful for demos:

demo-control-info

Renders debug information about input controls.

Usage
@Component({templateUrl: 'demo.html'})
class InputTextDemoComponent {
  controls: {[key: string]: FormControl} = {
    'text1': new FormControl(''),
    'text2': new FormControl('', Validators.required)
  };
  controlsArray = _.map(this.controls, (control, name) => ({name, control}));
  controlGroup = new FormGroup(this.controls);
  ...
}
<span class="demo-control-id">text1</span>
<bss-input-text 
  label="Text 1" 
  [control]="controlGroup.controls['text1']"></bss-input-text>

<span class="demo-control-id">text2</span>
<bss-input-text 
  label="Text 2" 
  [control]="controlGroup.controls['text2']"></bss-input-text>

<demo-control-info 
  [controlsArray]="controlsArray" 
  [controlGroup]="controlGroup"></demo-control-info>

FAQs

Package last updated on 30 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc