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

generator-browser-widget

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-browser-widget

Yeoman generator for browser widgets

  • 2.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

generator-browser-widget

Yeoman generator for creating reusable browser widgets

Inspiration from Sindre's generator-nm

Features

  • Build & bundle with rollup
  • Transpile with babel
  • Or with TypeScript
  • Handle your CSS with PostCSS
  • Unit test with jest
  • E2E test in the browser with cypress.io (Useful for testing widgets and visual components, but JS code can be tested too)
  • Publish code coverage to coveralls.io
  • Local development server with live-reload using live-server
  • Create a static gh-pages site with VuePress

Install

$ npm i -g yo generator-browser-widget

Usage

Scaffold your module with the generator:

$ yo browser-widget

Run the local development server. Your browser and cypress will open up.

$ npm run dev

Other npm scripts

$ npm run build
$ npm run test # test with jest
$ npm run e2e # run cypress e2e tests

License

MIT © Brian Hann

Keywords

FAQs

Package last updated on 26 Jun 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