Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
react-bluekit
Advanced tools
$ npm install --save react-bluekit
import createBlueKit from 'react-bluekit/lib/createBlueKit';
createBlueKit({
// your directory where components are located
baseDir: `${__dirname}/src/browser`,
// relative paths from base dir where to look for components
paths: ['./components/', './auth']
});
This will provide you with two gulp tasks: build-bluekit
and watch-bluekit
, which perform static analysis of your components.
You can setup the build of BlueKit on application start and then watch components for changes by editing the 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 built when needed.
Look at the example
directory, you only need to add:
import BlueKit from 'react-bluekit';
import componentsIndex from '../componentsIndex';
import React, { Component } from 'react';
export default class PageWithBlueKit extends Component {
render() {
return (
<BlueKit
componentsIndex={componentsIndex}
inline // display inline (not full page)
/>
);
}
}
What it does exactly:
You can use library.setValue(propName, newValue)
which takes two arguments:
propName
: name of the prop where you need to change the valuenewValue
: exact value which will be set to propsnpm install
cd ./example
npm install
gulp
open http://127.0.0.1:8001
This will start the development server and then you can play with components in BlueKit.
This is how you can generate new svg icons from src/icons
directory:
gulp svg-icon
MIT © Ondrej Bartas
FAQs
Visualisation and Playground generated from Components
The npm package react-bluekit receives a total of 0 weekly downloads. As such, react-bluekit popularity was classified as not popular.
We found that react-bluekit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.