1.0.4 • Published 5 years ago

k3v-scripts v1.0.4

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

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
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago