Skip to content

Commit

Permalink
feat: css build step
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVidra committed Jan 22, 2024
1 parent 1358837 commit d97736e
Show file tree
Hide file tree
Showing 22 changed files with 310 additions and 64 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,8 @@ npm install @rbnd/flows
### Via CDN

```html
<script src="https://cdn.jsdelivr.net/npm/@rbnd/flows@0.0.29/dist/index.global.js"></script>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@rbnd/flows@0.0.29/node_modules/@flows/js/public/flows.css"
/>
<script src="https://cdn.jsdelivr.net/npm/@flows/js@0.0.29/dist/index.global.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@flows/js@0.0.29/css.min/flows.css" />
```

### Usage
Expand Down
4 changes: 2 additions & 2 deletions examples/react-nextjs/components/CloudFlows.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use client";

import { useEffect } from "react";
import { init } from "@rbnd/flows/cloud";
import "@rbnd/flows/flows.css";
import { init } from "@flows/js/cloud";
import "@flows/js/flows.css";

export const CloudFlows = () => {
useEffect(() => {
Expand Down
4 changes: 2 additions & 2 deletions examples/react-nextjs/components/LocalFlows.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use client";

import { useEffect } from "react";
import { init } from "@rbnd/flows";
import "@rbnd/flows/flows.css";
import { init } from "@flows/js";
import "@flows/js/flows.css";

export const LocalFlows = () => {
useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion examples/vanilla-js/cloud/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<!-- How you would use Flows in your own code -->
<!-- Make sure to lock specific version to avoid braking changes. See docs for more info. -->
<script src="https://cdn.jsdelivr.net/npm/@flows/js/dist/index.global.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@flows/js/public/flows.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@flows/js/css.min/flows.css" />

<script src="index.js"></script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion examples/vanilla-js/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<!-- How you would use Flows in your own code -->
<!-- Make sure to lock specific version to avoid braking changes. See docs for more info. -->
<script src="https://cdn.jsdelivr.net/npm/@rbnd/flows/dist/index.global.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@flows/js/public/flows.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@flows/js/css.min/flows.css" />

<script src="index.js"></script>
</head>
Expand Down
Loading

0 comments on commit d97736e

Please sign in to comment.