carte-blanche-angular2

0.6.6 • Public • Published

carte Blanche Angular2 Build Status

CarteBlanche plugin for Angular2.

Usage

var carteBlancheAngular2 = require('carteBlancheAngular2')
 
plugins: [
  // Plugin: CarteBlanche
  // Description: Provides a carte blanche page for testing components.
  // Allows to test each component and its variations separatly
  new CarteBlanche({
    componentRoot: 'src/app/components',
    filter: /.*\.component.ts$/, // Matches all files ending in .ts
    plugins: [
      new Angular2Plugin({
        variationFolderName: 'variations',
        port: 7000,
        hostname: 'localhost',
        bundle: 'main.js',
      })
    ]
  })
]

For now a main bundle must be provided. And additional files can be provided using the files property. in the future support for CommonChunks plugin will be added so that you dont have to specify your files explicitly.

Options

  • variationFolderName (default: variations): The name of the folders that stores the variation files.
new carteBlancheAngular2({
  variationFolderName: 'examples'
})
  • port (default: 8082): The port the variations server runs at.

    new carteBlancheAngular2({
      port: 7000
    })
  • hostname (default: localhost): The URL the variations server runs at.

    new carteBlancheAngular2({
      hostname: 'mydomain.com'
    })
  • bundle (default: main.js): The name of the main bundle that holdes the application.

    new carteBlancheAngular2({
      bundle: 'main.js'
    })

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.6.62latest

Version History

VersionDownloads (Last 7 Days)Published
0.6.62
0.6.50
0.6.40
0.6.30
0.6.20
0.6.10
0.6.00
0.5.00
0.4.33
0.4.20
0.4.10
0.4.00
0.3.10
0.3.00
0.2.11
0.2.00
0.1.21
0.1.10
0.1.01
0.0.110
0.0.100
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i carte-blanche-angular2

Weekly Downloads

8

Version

0.6.6

License

MIT

Last publish

Collaborators

  • joaogarin