Skip to content

Commit

Permalink
docs(misc): adding nx live episode w Mike and some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ZackDeRose committed Sep 9, 2024
1 parent 4707cbd commit 1f53449
Show file tree
Hide file tree
Showing 13 changed files with 20,705 additions and 24,067 deletions.
10 changes: 10 additions & 0 deletions docs/blog/2024-09-05-nx-live-introduction-to-nx.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Introduction to Nx! | Nx Live
slug: nx-live-intro-to-nx
authors: ['Zack DeRose', 'Mike Hartington']
tags: [livestream]
cover_image: /blog/images/2024-09-05/thumbnail.png
youtubeUrl: https://youtube.com/live/dgtZ6GHZ-tA
---

In this episode of Nx Live, Zack introduces new Nx team member Mike Hartington to the value of Nx. Together, Zack and Mike build out a full-stack application in their workspace - complete with linting, testing, and end-to-end tests using Nx's generators, and they look at the capabilities that Nx offers in terms of defining their workspace, and how Nx can leverage that information for task-running - especially in CI!
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ title: Better security with Personal Access Tokens
slug: personal-access-tokens
authors: ['Philip Fulcher']
tags: [nx-cloud]
cover_image: /blog/images/2024-09-06/personal-access-tokens-header.png
cover_image: /blog/images/2024-09-10/personal-access-tokens-header.png
youtubeUrl: https://youtu.be/i51LPtagb2s
published: false
---

Today, Nx Cloud gets a huge upgrade to managing access to your cached artifacts
Expand Down
Binary file added docs/blog/images/2024-09-05/thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions nx-dev/data-access-documents/src/lib/blog.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export class BlogApi {
podcastIHeartUrl: frontmatter.podcastIHeartUrl,
podcastAppleUrl: frontmatter.podcastAppleUrl,
podcastAmazonUrl: frontmatter.podcastAmazonUrl,
published: frontmatter.published ?? true,
};
const isDevelopment = process.env.NODE_ENV === 'development';
const shouldIncludePost = !frontmatter.draft || isDevelopment;
Expand Down
1 change: 1 addition & 0 deletions nx-dev/data-access-documents/src/lib/blog.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export type BlogPostDataEntry = {
podcastAmazonUrl?: string;
podcastAppleUrl?: string;
podcastIHeartUrl?: string;
published?: boolean;
};

export type BlogAuthor = {
Expand Down
2 changes: 1 addition & 1 deletion nx-dev/nx-dev/app/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function generateMetadata(
}

export async function generateStaticParams() {
return (await blogApi.getBlogs()).map((post) => {
return (await blogApi.getBlogs((p) => !!p.published)).map((post) => {
return { slug: post.slug };
});
}
Expand Down
2 changes: 1 addition & 1 deletion nx-dev/nx-dev/app/blog/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const metadata: Metadata = {
},
};
async function getBlogs() {
return await blogApi.getBlogs();
return await blogApi.getBlogs((p) => !!p.published);
}

async function getBlogTags() {
Expand Down
4 changes: 2 additions & 2 deletions nx-dev/ui-blog/src/lib/blog-container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ export function sortFirstFivePosts(
posts: BlogPostDataEntry[]
): BlogPostDataEntry[] {
return posts
.slice(0, 5)
.sort((a, b) => new Date(b.date).getTime() - new Date(a.date).getTime());
.sort((a, b) => new Date(b.date).getTime() - new Date(a.date).getTime())
.slice(0, 5);
}

export function BlogContainer({ blogPosts, tags }: BlogContainerProps) {
Expand Down
44,749 changes: 20,687 additions & 24,062 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit 1f53449

Please sign in to comment.