
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
carte-blanche-angular2
Advanced tools
CarteBlanche plugin for Angular2.
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.
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'
})
FAQs
CarteBlanche plugin for Angular2
We found that carte-blanche-angular2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.