Skip to content
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

Universal Blocks #679

Open
wants to merge 49 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
c514e47
feat: primitives scaffolding
nicholasio Jan 23, 2024
3156938
Merge branch 'develop' into feature/gutenberg-primitives
nicholasio Feb 19, 2024
de04f84
Merge branch 'develop' into feature/gutenberg-primitives
nicholasio Mar 12, 2024
fd9ca7e
feat: introducing the RichText Primitive
nicholasio Mar 13, 2024
eba91cb
test: basic tests
nicholasio Mar 14, 2024
c15c16d
test: one more test
nicholasio Mar 14, 2024
e6aa3f7
test: default save handler
nicholasio Mar 14, 2024
280a344
fix: ts types
nicholasio Mar 14, 2024
951ad63
fix: types
nicholasio Mar 14, 2024
340f15b
fix: build
nicholasio Mar 14, 2024
9041f9d
Merge branch 'develop' into feature/gutenberg-primitives
nicholasio Mar 14, 2024
42b9f96
Merge branch 'develop' into feature/gutenberg-primitives
nicholasio Mar 14, 2024
344e464
feat: first poc
nicholasio Mar 14, 2024
454f782
chore: remove test from the theme
nicholasio Mar 14, 2024
e2de4a6
feat: initial pass at an image primitive with MediaReplaceFlow
nicholasio Mar 20, 2024
ac6afee
docs: add jsdoc
nicholasio Mar 21, 2024
6920541
Merge branch 'develop' into feature/gutenberg-primitives
nicholasio Apr 5, 2024
c6592a0
chore: remove docs project
nicholasio Apr 5, 2024
45b8a7c
chore: removing express
nicholasio Apr 5, 2024
b9afe47
chore: component library project for testing primitives
nicholasio Apr 5, 2024
caf83ac
chore: fix storybook version
nicholasio Apr 9, 2024
fbb5234
feat: attributes
nicholasio May 7, 2024
2f4c5fd
Merge branch 'develop' into feature/gutenberg-primitives
nicholasio Oct 14, 2024
b2fdcb0
chore: more fixes
nicholasio Oct 14, 2024
25609da
chore: remove wp-nextjs-ts project
nicholasio Oct 14, 2024
9f894e0
feat: hero example
nicholasio Oct 14, 2024
1d91e64
chore: commands
nicholasio Oct 16, 2024
d7e933e
feat: vanilla-extract for css
nicholasio Oct 23, 2024
6f66b6e
renaming package
nicholasio Oct 24, 2024
148f7a3
fix: tests
nicholasio Oct 28, 2024
887819f
Merge branch 'develop' into feature/gutenberg-primitives
nicholasio Oct 28, 2024
0b47d5a
fix: lint
nicholasio Oct 28, 2024
225ba51
fix: linting fixes
nicholasio Oct 28, 2024
e37be5e
fix: builds
nicholasio Oct 28, 2024
9b06fb0
chore: fix bundle analyzer
nicholasio Oct 28, 2024
3ef9fd5
chore: anoter fix
nicholasio Oct 28, 2024
e8a7c95
fix: build issues
nicholasio Oct 28, 2024
686ea35
feat: link component
nicholasio Oct 29, 2024
00d2f87
feat: introducing InnerBlocks Primitive
nicholasio Oct 30, 2024
a3e72f2
feat: inner-blocks change
nicholasio Oct 31, 2024
5752792
feat: interating on rendering blocks on Gutenberg
nicholasio Oct 31, 2024
2ec474f
feat: various improvements
nicholasio Nov 4, 2024
05ebde2
fix: tests
nicholasio Nov 4, 2024
19a4f4c
chore: remove unused code
nicholasio Nov 5, 2024
4c180ad
feat: use next.js components
nicholasio Nov 5, 2024
7974091
feat: refactoring
nicholasio Nov 6, 2024
b91cb04
fix: fixes
nicholasio Nov 7, 2024
f85b8ee
fix: build error
nicholasio Nov 7, 2024
bb2a2c1
chore: comments
nicholasio Nov 8, 2024
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: 8 additions & 8 deletions .github/workflows/nextjs_bundle_analysis-app-router.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
defaults:
run:
# change this if your nextjs app does not live at the root of the repo
working-directory: ./
working-directory: ./projects/wp-nextjs-app

jobs:
analyze:
Expand All @@ -24,7 +24,7 @@ jobs:
node-version: '20.x'

- name: Install dependencies
uses: bahmutov/npm-install@v1
run: (cd ../../ && npm ci)

- name: Restore next build
uses: actions/cache@v2
Expand All @@ -34,13 +34,13 @@ jobs:
with:
# if you use a custom build directory, replace all instances of `.next` in this file with your build directory
# ex: if your app builds to `dist`, replace `.next` with `dist`
path: ./projects/wp-nextjs-app/.next/cache
path: .next/cache
# change this if you prefer a more strict cache
key: ${{ runner.os }}-build-${{ env.cache-name }}

- name: Build next.js app
# change this if your site requires a custom build command
run: npm run build -- --filter=@10up/wp-nextjs-app
run: (cd ../../ && npm run build -- --filter=@10up/wp-nextjs-app)

# Here's the first place where next-bundle-analysis' own script is used
# This step pulls the raw bundle stats for the current bundle
Expand All @@ -51,15 +51,15 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: bundle
path: ./projects/wp-nextjs-app/.next/analyze/__bundle_analysis.json
path: .next/analyze/__bundle_analysis.json

- name: Download base branch bundle stats
uses: dawidd6/action-download-artifact@v2
if: success() && github.event.number
with:
workflow: nextjs_bundle_analysis.yml
branch: ${{ github.event.pull_request.base.ref }}
path: ./projects/wp-nextjs-app/.next/analyze/base
path: .next/analyze/base

# And here's the second place - this runs after we have both the current and
# base branch bundle stats, and will compare them to determine what changed.
Expand All @@ -76,13 +76,13 @@ jobs:
# entry in your package.json file.
- name: Compare with base branch bundle
if: success() && github.event.number
run: ls -laR ./projects/wp-nextjs-app/.next/analyze/base && npx -p nextjs-bundle-analysis compare
run: ls -laR .next/analyze/base && npx -p nextjs-bundle-analysis compare

- name: Get comment body
id: get-comment-body
if: success() && github.event.number
run: |
body=$(cat ./projects/wp-nextjs-app/.next/analyze/__bundle_analysis_comment.txt)
body=$(cat .next/analyze/__bundle_analysis_comment.txt)
body="${body//'%'/'%25'}"
body="${body//$'\n'/'%0A'}"
body="${body//$'\r'/'%0D'}"
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ node_modules
.turbo
.vercel
.DS_Store
coverage
.vscode
coverage
tsconfig.tsbuildinfo
Loading
Loading