GithubHelp home page GithubHelp logo

techbinator / react-typescript-npm-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.44 MB

React typescript and jest powered bolerplate in order to easily create npm modules

TypeScript 67.30% JavaScript 16.56% HTML 15.91% CSS 0.23%

react-typescript-npm-boilerplate's Introduction

react-typescript-npm-boilerplate

This is a boilerplate that helps creating npm packages using React, Typescript, Jest and post css. It also provides an example folder initialised with create-react-app where the library can be developed(having hot reload) and also viewed. The demo app can be also deployed using gh-pages, this example can actually be found here: https://techbinator.github.io/react-typescript-npm-boilerplate

Installation:

Clone the repo

npm i

Developing:

To start developing, run npm start. It will build your library and run example create-react-app where you can test your components. Both the component library and the example create-react-app would run in paralel and will be automatically reloaded if any of the 2 would be modified

Pre-Publish steps:

  • Remove the .git folder rm -rf .git
  • Modify the package.json fields: name, description, author,keywords,repo, bugs, homepage, license(if needed).
  • Modify the README.md file in order to describe the library.
  • In the ./example/package.json modify the homepage and dependencies part react-typescript-npm-boilerplate with the name of your library
  • Modify the imported library name in the ./example/src/App.tsx from react-typescript-npm-boilerplate to your own libary name
  • Init git and add the remote origin path
git remote add origin https://github.com/Techbinator/skeleton-text.git
git push -u origin master

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.