1.4.0 • Published 5 years ago

jerusalem-init-react v1.4.0

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

This is a command line application that allows you to create a boilerplate for a complete react application and it has many features

First you can install it with.

npm i -g jerusalem-init-react.

To create new react project use this command and pass your project name to it.

jerusalem-init-react testApp.

It will create a folder called testApp in the same work space in which you have ran the command

It contains src folder that contains your componenets and test folder that contain your tests

It divide your components into container components and functional (stateless) components and you will find this in the src folder

It allows you to build application in the development mode and this allow source mapping for easy debugging and this work through.

npm run build-dev.

running the following command will watch an change in your components in the src folder and then generate output.js and output.js.map which are included in index.html file and this allow live tracking of changes in your componenets

When you finish you can generate minified uglified version for the production with.

npm run build-production.

Also you add tests inside test folder and run them with

npm run test.

We are using jest for testing. We are working on adding support for css preprocessor like sass , also adding support for managing state with redux