Skip to content

Storybook deploy #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 80 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
0738aa4
feat: card scaffold
kelseythejackson Nov 11, 2024
0c9c737
feat: modified css
kelseythejackson Nov 11, 2024
0df7c71
page 57 - Styling Content
Nov 14, 2024
e93abd4
started writing integration tests - page 64
Nov 15, 2024
b56b501
updated cypress
Nov 16, 2024
c7ee93b
finished integration tests
Nov 17, 2024
98bf07a
Started chapter 2 - page 82
Nov 17, 2024
61852c8
added in-textinput story - page 96
Nov 19, 2024
0facf24
added internals - page 97
kelseythejackson Nov 20, 2024
d85b477
Where does validation logic belong in the
Nov 21, 2024
7a12389
forgot to save - page 100
Nov 21, 2024
71da5a5
Mocking the Validators in Storybook - page 103
Nov 25, 2024
9058e87
started mocking validators for storybook
Nov 26, 2024
4b4dfdb
added validator
kelseythejackson Nov 27, 2024
a3efe38
Passing attribute values to children - page 111
kelseythejackson Nov 28, 2024
c6089d5
Handling validation and child events - page 113
kelseythejackson Nov 28, 2024
4faf246
figuring out validations
kelseythejackson Nov 29, 2024
3ea2429
added user feedback
kelseythejackson Dec 2, 2024
b080094
added disabled and error states to storybook
kelseythejackson Dec 3, 2024
0c1f6a0
styled inputs
kelseythejackson Dec 4, 2024
a17c9cb
added getters and setters for a more stable api
kelseythejackson Dec 5, 2024
84610fc
started form story
kelseythejackson Dec 5, 2024
15e01a0
made the form, now to handle the submission
kelseythejackson Dec 7, 2024
4f58000
started adding form state callbacks
kelseythejackson Dec 7, 2024
e7923a6
finished chapter 2
kelseythejackson Dec 10, 2024
9fd67be
created button component and story
kelseythejackson Dec 11, 2024
e61967a
styling the button component
kelseythejackson Dec 11, 2024
5e0b17e
added primary button styles
kelseythejackson Dec 12, 2024
9242989
finished icon button
kelseythejackson Dec 13, 2024
ad8bea9
making the form accessible
kelseythejackson Dec 13, 2024
6056fd1
finished adding accessibility
kelseythejackson Dec 16, 2024
ccf1411
finished chapter 3
kelseythejackson Dec 16, 2024
7521c1e
built the component decorator
kelseythejackson Dec 18, 2024
7839537
building out monorepo - page 211
kelseythejackson Dec 19, 2024
96e86f4
built decorator pattern, Refactor is next
kelseythejackson Dec 20, 2024
c786a12
refactored card and input components page - 219
kelseythejackson Dec 20, 2024
aa6424e
rebuilt the package, no on to refactoring the button component
kelseythejackson Dec 21, 2024
8906a02
coding a generic template page-228
kelseythejackson Dec 22, 2024
134957c
added css and html syntax highlight
kelseythejackson Dec 24, 2024
7c7517b
started listen.ts page - 241
kelseythejackson Dec 25, 2024
24809c1
finshed listner function for library
kelseythejackson Dec 28, 2024
ee436bc
finished chapter 4, starting on table component
kelseythejackson Jan 1, 2025
2cc8974
fixed bug
kelseythejackson Jan 17, 2025
2ea7411
Created table story
kelseythejackson Jan 18, 2025
980e48b
coding compound components
kelseythejackson Jan 18, 2025
fd3d8cd
handiling CRUD events with broadcastchannel
kelseythejackson Jan 18, 2025
a9e5d91
making the table editable
kelseythejackson Jan 18, 2025
97e0dee
using customevent to transmit row data
kelseythejackson Jan 18, 2025
d52d370
save method next
kelseythejackson Jan 20, 2025
e42dd0b
styling issues fixed
kelseythejackson Jan 21, 2025
99dcadd
this this chapter is bogus
kelseythejackson Jan 21, 2025
d8f6323
finished this shit chapter
kelseythejackson Jan 21, 2025
4914866
page - 350
kelseythejackson Jan 21, 2025
792986d
querying dom across shadow boundaries
kelseythejackson Jan 22, 2025
9e00541
363
kelseythejackson Jan 23, 2025
d9e9379
figuring out function
kelseythejackson Jan 24, 2025
8d5937b
created query functions
kelseythejackson Jan 24, 2025
69b0f9d
what the hell
kelseythejackson Jan 24, 2025
22f6f11
finished building dialog
kelseythejackson Jan 25, 2025
4be63c7
more missing code
kelseythejackson Jan 25, 2025
9b1ffaa
finished chapter 6
kelseythejackson Jan 25, 2025
d7ea09a
building distributed package
kelseythejackson Jan 28, 2025
29cca57
...
kelseythejackson Jan 30, 2025
5cf1b59
added JSDoc
kelseythejackson Jan 30, 2025
758c311
built doc
kelseythejackson Jan 31, 2025
6de18e1
added lit to card stories
kelseythejackson Jan 31, 2025
23a5a3c
setup github actions
kelseythejackson Feb 1, 2025
ba982f1
Merge branch 'chapter-7' of github.com:kelseythejackson/fullstack-web…
kelseythejackson Feb 1, 2025
51bf609
updated yml
kelseythejackson Feb 1, 2025
ec2aafc
something
kelseythejackson Feb 1, 2025
6f8e445
updated yml
kelseythejackson Feb 1, 2025
751e12c
added test gh actions
kelseythejackson Feb 2, 2025
cfd1d66
typo
kelseythejackson Feb 2, 2025
6cce505
updated actions
kelseythejackson Feb 2, 2025
58e4511
missed part of the yml
kelseythejackson Feb 2, 2025
39b45a0
updated janky tests
kelseythejackson Feb 2, 2025
0831b0d
added snapshot yaml
kelseythejackson Feb 2, 2025
b4fb792
updated snapshot yaml
kelseythejackson Feb 2, 2025
6c4c279
Merge pull request #2 from kelseythejackson/chapter-7
kelseythejackson Feb 2, 2025
ca643b7
deploy yml
kelseythejackson Feb 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v2
with:
node-version: "16"
cache: "yarn"
- run: yarn cache clean
- run: yarn --update-checksums
- run: yarn install
- run: yarn build
35 changes: 35 additions & 0 deletions .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Workflow name
name: Build and Publish Storybook to GitHub Pages

on:
# Event for the workflow to run on
push:
branches:
- 'master' # 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@v4
with:
fetch-depth: 0
# Set up Node
- uses: actions/setup-node@v4
with:
node-version: '20'
#👇 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
20 changes: 20 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: snapshot
on: [push]
jobs:
snapshot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v2
with:
node-version: "16"
cache: "yarn"
- run: yarn install
- run: yarn test:snapshot:ci
continue-on-error: true
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: snapshot-diff
path: packages/component/src/**/__snapshots__/__diff_output__/*
20 changes: 20 additions & 0 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: storybook
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v2
with:
node-version: "16"
cache: "yarn"
- run: yarn install
- run: yarn predeploy
- run: yarn deploy-storybook -- --ci
env:
GH_TOKEN: ${{ github.actor }}:${{ secrets.KJ_GITHUB_SECRET }}
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: test
on: [push]
jobs:
cypress-run:
runs-on: ubuntu-latest
name: e2e on Chrome
steps:
- uses: actions/checkout@v2
- uses: cypress-io/github-action@v6
with:
install-command: yarn install
browser: chrome
repository: kelseythejackson/fullstack-web-components
ref: refs/heads/master
token: ${{ secrets.KJ_GITHUB_SECRET }}
persist-credentials: false
build: yarn build
start: yarn start
wait-on: http://localhost:6006
5 changes: 5 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import { setCustomElementsManifest } from '@storybook/web-components';

import customElementsManifest from '../custom-elements.json';

setCustomElementsManifest(customElementsManifest);
import './iframe.css';
import './../packages/style/style.css';

Expand Down
Loading