Bonnes Pratiques Web & Cloud
58.8K views | +4 today
Follow
Bonnes Pratiques Web & Cloud
Administration cloud et développement web
Curated by Mickael Ruau
Your new post is loading...
Your new post is loading...

Popular Tags

Current selected tag: 'Astro - générateur de site statique'. Clear
Scooped by Mickael Ruau
Scoop.it!

Five Reasons I'm Excited about Astro

The Right Amount of Opinion

For me, what it boils down to is that I feel like Astro brings the right degree of opinion to its framework. It knows that there are widespread preferences for lower-level tooling, and so it leaves options. But it provides a solid framework for implementing those options.

Now, granted, I've only built a few proofs of concept, but these are the five reasons I'm so excited about Astro:

Static-first, with progressive enhancement
Supporting multiple component frameworks
Native markdown support
A foundation for styling
Reduced boilerplate code

Let's take a quick look at each of these ideas.
Mickael Ruau's insight:

Astro lets you build your website with modern front-end component frameworks, like React and Vue, but it doesn't assume you want to run JavaScript in the browser.

That's my struggle with frameworks like Gatsby and Next.js. They are super powerful, but they assume interactivity and always include JavaScript files in your built site.

Astro assumes the opposite. It makes you, the developer, tell it when you need interactivity. Otherwise it renders static HTML. That means that even though there is some magic that happens during the build, you are still in control of your HTML code for the most part.

No comment yet.
Scooped by Mickael Ruau
Scoop.it!

snowpackjs/astro: ��‍� Keep your eyes to the skies, astronauts!

snowpackjs/astro: ��‍� Keep your eyes to the skies, astronauts! | Bonnes Pratiques Web & Cloud | Scoop.it
��‍� Keep your eyes to the skies, astronauts! Contribute to snowpackjs/astro development by creating an account on GitHub.

 

 

Astro is a fresh but familiar approach to building websites. Astro combines decades of proven performance best practices with the DX improvements of the component-oriented era. Use your favorite JavaScript framework and automatically ship the bare-minimum amount of JavaScript—by default.

Mickael Ruau's insight:
# get started with astro in 3 easy steps: mkdir new-project-directory cd new-project-directory npm init astro
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

How I rebuilt my Angular blog and became an Astronaut �

While reading the docs, most of what I needed to rebuild my relatively simple blog was supported by Astro, so I decided to try it out.

 

Mickael Ruau's insight:

Before getting started, this is what my current blog platform stack looks like:

  • Angular - Frontend framework for web development
  • Angular Component Router - My declarative router for Angular
  • Firebase - Hosting solution for websites
  • Prism - A JavaScript library that provides syntax highlighting for code snippets
  • Prism Themes - Themes for syntax highlighting
  • Reading Time - Calculates the minutes it takes to read the blog post
  • Scully - A JAMstack static site builder for Angular apps w/Markdown support
  • Tailwind CSS - A utility-first CSS framework

Currently, no interactive JavaScript functionality is present. Scully is the main tool behind the stack. At a high level, I build my Angular application first. Scully then takes the built Angular application and renders each page statically using Puppeteer underneath the hood.

 

Wrap-up

After the changes, this is what my current new stack looks like.

  • Astro - Static site builder that includes Markdown, Prism, Routing, and more.
  • date-fns - Modern functional library for working with dates.
  • Firebase - Hosting solution for websites
  • Prism Themes - Themes for syntax highlighting
  • Reading Time - Calculates the minutes it takes to read the blog post
  • Tailwind CSS - A utility-first CSS framework
No comment yet.
Scooped by Mickael Ruau
Scoop.it!

markteekman/accessible-astro-components: A set of accessible front-end components for the Astro static site builder.

markteekman/accessible-astro-components: A set of accessible front-end components for the Astro static site builder. | Bonnes Pratiques Web & Cloud | Scoop.it
A set of accessible front-end components for the Astro static site builder. - GitHub - markteekman/accessible-astro-components: A set of accessible front-end components for the Astro static site builder.
No comment yet.