Skip to content

Commit

Permalink
Merge pull request #6 from jamesgiu/PP-02
Browse files Browse the repository at this point in the history
Pp 02
  • Loading branch information
jamesgiu authored Nov 15, 2023
2 parents 5f1f891 + 83b0bf2 commit ff0fccb
Show file tree
Hide file tree
Showing 31 changed files with 76 additions and 825 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# .github/workflows/deploy-github-pages.yaml

# Workflow name
name: Build and Publish Storybook to GitHub Pages

on:
# Event for the workflow to run on
push:
branches:
- 'main' # Replace with the branch you want to deploy from

permissions:
contents: read
pages: write
id-token: write

# List of jobs
jobs:
deploy:
runs-on: ubuntu-latest
# Job steps
steps:
# Manual Checkout
- uses: actions/checkout@v3

# Set up Node
- uses: actions/setup-node@v3
with:
node-version: '16.x'

#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
- uses: bitovi/[email protected]
with:
install_command: yarn install # default: npm ci
build_command: yarn build-storybook # default: npm run build-storybook
path: storybook-static # default: dist/storybook
checkout: false # default: true
23 changes: 16 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-pipes",
"version": "1.0.0",
"description": "A component library for pipelines in React",
"name": "quick-acyclic",
"version": "0.0.1",
"description": "A component library for pipelines and acyclic flows in React",
"main": "index.ts",
"scripts": {
"rollup": "rollup -c",
Expand All @@ -10,21 +10,30 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/jamesgiu/react-pipes.git"
"url": "git+https://github.com/jamesgiu/quick-acyclic.git"
},
"keywords": [
"react",
"pipelines",
"ci/cd",
"continuous integration",
"continuous development",
"loading",
"tabler-icons",
"icons",
"progress",
"DAG",
"acyclic",
"component",
"pipeline",
"stepper"
],
"author": "jamesgiu",
"license": "ISC",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/jamesgiu/react-pipes/issues"
"url": "https://github.com/jamesgiu/quick-acyclic/issues"
},
"homepage": "https://github.com/jamesgiu/react-pipes#readme",
"homepage": "https://github.com/jamesgiu/quick-acyclic#readme",
"devDependencies": {
"@babel/preset-env": "^7.23.2",
"@babel/preset-react": "^7.22.15",
Expand Down
6 changes: 5 additions & 1 deletion src/components/Demo/Demo.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import { Demo } from './Demo';

const meta: Meta<typeof Demo> = {
title: 'Demo',
component: Demo,
component: (Demo),
parameters: {
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
layout: 'centered',
}
};

type Story = StoryObj<typeof Demo>;
Expand Down
6 changes: 6 additions & 0 deletions src/components/ReactPipes/ReactPipes.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ import { ReactPipesIntent, ReactPipesSize } from './types';
const meta: Meta<typeof ReactPipes> = {
title: 'Pipeline',
component: ReactPipes,
parameters: {
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
layout: 'centered',
},
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
tags: ['autodocs']
};

type Story = StoryObj<typeof ReactPipes>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ import ReactPipesNode from './ReactPipesNode';
const meta: Meta<typeof ReactPipesNode> = {
title: 'PipelineNode',
component: ReactPipesNode,
parameters: {
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
layout: 'centered',
},
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
tags: ['autodocs']
};

type Story = StoryObj<typeof ReactPipesNode>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ import { ReactPipesIntent, ReactPipesSize } from '../../types';
const meta: Meta<typeof ReactPipesPipe> = {
title: 'Pipe',
component: ReactPipesPipe,
parameters: {
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
layout: 'centered',
},
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/react/writing-docs/autodocs
tags: ['autodocs']
};

type Story = StoryObj<typeof ReactPipesPipe>;
Expand Down
50 changes: 0 additions & 50 deletions src/stories/Button.stories.ts

This file was deleted.

48 changes: 0 additions & 48 deletions src/stories/Button.tsx

This file was deleted.

Loading

0 comments on commit ff0fccb

Please sign in to comment.