npm promotes metadefinitions

    @stoys/stoys
    TypeScript icon, indicating that this package has built-in type declarations

    0.2.2-rc.0 • Public • Published

    DQ Library

    Installation

    npm install git@github.com:stoys-io/stoys-ui.git
    

    Usage

    Running documentation locally

    1. git clone git@github.com:stoys-io/stoys-ui.git
    2. cd stoys-ui
    3. npm i
    4. npm run storybook

    Bundling package

    build packages: npm run bundle-build

    Copy compiled dqLibrary.js from dist folder to your project.

    Example of using library in Jupyter project

    from IPython.core.display import HTML
    
    with open ({path-to-bundle.js}, "r") as bundle:
        bundleString = bundle.read()
    
    HTML("""
    
    <div id="app"></div>
    
    <script>
    
    %s
    
    (function() {
    
      const {Profiler, Metrics, RulesWidget, React, ReactDOM} = dqLibrary
    
      const sampleData = %s
    
      ReactDOM.render(
        React.createElement({Profiler || Metrics || RulesWidget}, {data: sampleData}, null),
        document.getElementById('app')
      );
    
    })()
    
    </script>
    
    """ % (bundleString, {your-data}))
    

    Keywords

    none

    Install

    npm i @stoys/stoys

    DownloadsWeekly Downloads

    6

    Version

    0.2.2-rc.0

    License

    MIT

    Unpacked Size

    2.62 MB

    Total Files

    116

    Last publish

    Collaborators

    • jan.prach
    • andrii.ratnikov