
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
bs-spectacle
Advanced tools
See examples/full-spectacle
. It uses almost all features of Spectacle.
examples/extras
aims to showcase features not included in original Spectacle example.
open BsSpectacle;
let theme =
Theme.(
createTheme(
{primary: "#26A0D1", secondary: "white", tertiary: "#505050", quarternary: "white"},
{
primary: {name: "Merriweather", googleFont: true, styles: [|"300"|]},
secondary: {name: "Roboto", googleFont: true, styles: [|"100"|]},
tertiary: simpleFont("monospace")
}
)
);
let s = ReasonReact.stringToElement;
let component = ReasonReact.statelessComponent("Simple");
let make = (_children) => {
...component,
render: (_self) =>
<Deck transition=[|Zoom, Slide|] theme>
<Slide>
<Heading textColor="secondary" textFont="secondary"> (s("Hello, world")) </Heading>
</Slide>
<Slide transition=[|Slide|] bgColor="secondary">
<BlockQuote>
<Quote> (s({js|It’s easy, see...|js})) </Quote>
<Cite> (s("Unknown")) </Cite>
</BlockQuote>
</Slide>
</Deck>
};
Easiest way is:
use create-react-app
install this bindings and spectacle
$ npm install --save bs-spectacle spectacle-scripts reason-react
# or
$ yarn add bs-spectacle spectacle-scripts reason-react
add bs-spectacle
to bs-dependencies
in your bsconfig.json
{
...
"bs-dependencies": ["bs-spectacle"]
}
modify package.json
scripts
"scripts": {
"build": "bsb -make-world && react-scripts build",
"start": "bsb -make-world -w",
"clean": "bsb -clean-world",
"test": "echo \"Error: no test specified\" && exit 1"
}
To run it in dev mode, run npm start
in one shell and react-scripts start
in another shell.
Every spectacle
feature is supported.
FAQs
Spectacle bindings for Bucklescript
We found that bs-spectacle demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.