k3v-scripts

1.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i k3v-scripts

Weekly Downloads

6

Version

1.0.4

License

MIT

Unpacked Size

8.68 kB

Total Files

9

Last publish

Collaborators

  • koechkevin