1.7.2 • Published 6 years ago

@cloudflare/sable v1.7.2

Weekly downloads
82
License
BSD-3-Clause
Repository
github
Last release
6 years ago

Sable Components

A collection of React components for Cloudflare App developers.

This project is in active development and may experience frequent changes.

Installation

yarn add @cloudflare-apps/sable
import React from 'react'
import RelatedAppsBanner from '@cloudflare-apps/sable/related-apps-banner'

class MyReactApp extends React.Component {
  render () {
    return <div>
      <RelatedAppsBanner categories={['analytics', 'make-money-on-your-site']} />
    </div>
  }
}

Development Setup

yarn install
yarn start

Testable pages will be logged to the console.

Publishing new React components

Manually bump package.json version number. Then run the publish command:

yarn run publish-package

Deploying the static pages

yarn add @cloudflare-apps/components

Static pages are present at node_modules/@cloudflare-apps/sable/pages You can test these via:

yarn add @cloudflare-apps/sable
cd node_modules/@cloudflare-apps/sable
python -m SimpleHTTPServer 8000

http://localhost:8000/pages/related-apps-banner/?app-category=analytics

1.7.2

6 years ago

1.7.1

6 years ago

1.7.0

6 years ago

1.6.6

6 years ago

1.6.7

6 years ago

1.6.5

6 years ago

1.6.4

6 years ago

1.6.3

6 years ago

1.6.2

6 years ago

1.6.1

6 years ago

1.6.0

6 years ago

1.5.0

6 years ago

1.4.9

6 years ago

1.4.8

6 years ago

1.4.7

6 years ago

1.4.6

6 years ago

1.4.5

6 years ago

1.4.4

6 years ago

1.4.3

6 years ago

1.4.2

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.2.3

6 years ago

1.3.0

6 years ago

1.2.2

6 years ago

1.2.0

6 years ago