Socket
Socket
Sign inDemoInstall

@theuiteam/lib-builder

Package Overview
Dependencies
28
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @theuiteam/lib-builder

Opinionated toolbox boilerplate to create Typescript React components


Version published
Maintainers
2
Install size
158 MB
Created

Readme

Source

uiteam / lib-builder

Opinionated toolbox boilerplate to create Typescript React components, based on ts-react-toolbox

Install

yarn add --dev @theuiteam/lib-builder

Setup

After you have installed it, run this from the root of your package:

$ node_modules/.bin/lib-builder init

That will add all the boilerplate and scripts to your project

Contains

  • Typescript ✅
  • React + ReactDom ✅
  • Webpack + WebpackDevServer ✅
  • Jest ✅
  • Travis config ✅
  • TSLint ✅
  • Prettier ✅
  • ES5 support ✅
  • ES2015 support ✅
  • Git hooks ✅
  • Bundle size analyzer ✅

Folder structure

  • __tests__
  • example
  • src

Commands

  • init: Initializes project

  • test: jest + watch mode

  • build: Typescript build

  • docz:dev Dev mode

  • release: build + run tests + version bump + publish to registry

  • static: deploys example to github pages

  • lint: tslint

  • format: prettier

  • analyze: webpack-bundle-analyzer

Entry points

  • package.json
"main": "dist/es5/index.js",
"jsnext:main": "dist/es2015/index.js",
"module": "dist/es2015/index.js",
"types": "dist/es5/index.d.ts"

Inspired by

Dan Abramov - The Melting Pot of JavaScript : https://www.youtube.com/watch?v=G39lKaONAlA

FAQs

Last updated on 30 Apr 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc