react-conditional-view

1.0.1 • Public • Published

Boilerplate for creating React Npm packages with ES2015

The package is based on npm-base package by Kadira which is really great when you want to prepare Npm package. This one is prepared to be used as a starter point for React components which needs to be published on Npm.

It includes:

* Linting with [ESLint](http://eslint.org/)
* Testing with [Jest](https://facebook.github.io/jest/) and [Enzyme](http://airbnb.io/enzyme/)
* Example with [react-scripts](https://github.com/facebookincubator/create-react-app/tree/master/packages/react-scripts)
* Continues Integration with [travis-ci](https://travis-ci.org/)

Also there is of course ES6 transpilation.

Usage

  1. Clone this repo
  2. Inside cloned repo run npm install && rm -rf .git && git init and update package.json with your package name.
  3. If you want to run tests: npm test or npm run test-watch. You need to write tests in __tests__ folder. You need at least Node 4 on your machine to run tests.
  4. If you want to run linting: npm run lint. Fix bugs: npm run lint-fix. You can adjust your .eslintrc config file.
  5. If you want to run transpilation to ES5 in dist folder: npm run prepublish (standard npm hook).
  6. If you want see how your plugin work in real word react application. Go to example folder run npm install and run npm start.

License

MIT

/react-conditional-view/

    Package Sidebar

    Install

    npm i react-conditional-view

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • kidliaa