🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

k3v-scripts

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

k3v-scripts

I got tired of creating files each and every time when generating a new component. I had to make an helper script to make it easy for me.

1.0.4
latest
Source
npm
Version published
Weekly downloads
6
100%
Maintainers
1
Weekly downloads
 
Created
Source

K3v Scripts

I got tired of creating files each and every time when generating a new component. I had to make an helper script to make it easy for me.

Install

yarn add --dev k3v-scripts

create a React component folder with typescript (material UI template)

  • name.tsx
  • name.interface.ts
  • name.styles.ts
  • index.ts exporting modules beneath
new-component name --target=$folder

Create React App to NPM package

I had some components set up using Create React App but I now needed them published to npm to reuse the components in another application.

Convert npx create-react-app --template=typescript application to npm package

  • No need for a separate npm i @types/package
  • Typescript support
  • Update package version on every commit. This was very important for my automatic publish with Circle Ci.
cra-package && npm install

FAQs

Package last updated on 01 Jun 2020

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