Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-bluekit

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-bluekit

Visualisation and Playground generated from Components

  • 0.0.24
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-92.59%
Maintainers
1
Weekly downloads
 
Created
Source

React BlueKit

Install

$ npm install --save react-bluekit

Usage in gulpfile to configure BlueKit

import {createBlueKit} from 'react-bluekit'

createBlueKit({
  // your directory where components are located
  baseDir: `${__dirname}/src/browser`,
  // relative paths from base dir where to look for components
  paths: ['./components/', './auth']
})

you can setup build of BlueKit on application start and then watch components for changes by editing default task to:

// from gulp.task('default', ['server']); to:
gulp.task('default', ['build-bluekit', 'server', 'watch-bluekit']);

do not forget to add it to build process (for example on stage or production)

gulp.task('build', ['build-bluekit', 'build-webpack']);
// make sure that component build is before webpack

it will be build when needed

Add it to your project

look at example directory and you need to add only:

// createRoutes.js
import {createBlueKitRoutes} from 'react-bluekit';

export default function createRoutes(getState) {
  return (
    <Route component={App} path="/"> // example
      {createBlueKitRoutes('/bluekit')} // actual code to insert
    </Route>
  )
}

What it exactly does:

  • it takes previous props
  • merge to them your own defined functions or values
  • this is returned to props in component library

you can use library.setValue(propName, newValue) which take two arguments:

  • propName: name of the prop where you need to change value
  • newValue: exact value which will be set to props

Development of Component library

npm install
cd ./example_app
npm install
gulp

this will start development server and then you can play with Library components

License

MIT © Ondrej Bartas

Keywords

FAQs

Package last updated on 09 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc