@kross77/react-native-layout
v1.0.10
Published
react,react native and jsx npm package generator with typescript
Maintainers
Readme
React and React Native npm package boilerplate with Typescript support
About
This boilerplate make it easier to create npm package from Typescript projects.
The project is intended to be used with the latest Active LTS release of [Node.js][nodejs].
Getting Started
To start, just clone the repository with following commands:
git clone https://github.com/pankod/react-typescript-npm-package-boilerplate
cd react-typescript-npm-package-boilerplate
npm installThen run the following commands for:
Babel build :
$ npm run babel-buildTypescript build :
$ npm run ts-buildThis boilerplate includes:
- Typescript 3
- TSLint with Microsoft rules
- Jest and Enzyme support,
- Simple example of TypeScript code
- .editorconfig for consistent file format
You should change the lines on package.json:
If you develop React for web:
"devDependencies:{
"@types/react": "^16.8.5", // or @latest
"@types/react-dom": "^16.8.2", // or @latest
},
"peerDependencies": {
"react": "*",
"react-dom": "*",
}or React-Native development environment
"devDependencies:{
"@types/react": "^16.8.5", // or @latest
"@types/react-native": "^16.8.2", // or @latest
},
"peerDependencies": {
"react": "*",
"react-native": "*",
}