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

docs(misc): adding nx live episode w Mike and some fixes #27837

Merged
merged 6 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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.avif
youtubeUrl: https://youtu.be/i51LPtagb2s
published: false
---

Today, Nx Cloud gets a huge upgrade to managing access to your cached artifacts
Expand Down Expand Up @@ -53,7 +54,7 @@ read from the cache, but limit read/write access to core contributors.

## Controlling default access

![Personal access token settings in Nx Cloud workspace](/blog/images/2024-09-06/workspace-settings.avif)
![Personal access token settings in Nx Cloud workspace](/blog/images/2024-09-10/workspace-settings.avif)

By default, a workspace that opts in to personal access tokens will allow anonymous users (users without a personal
access token defined) read-only access. This can be changed to disallow access to the cache for anonymous users
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/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