Scully pre-renders each page in your app to plain HTML & CSS. To do this, Scully uses machine learning techniques to find all of the routes in your project. Scully then visits each route, rendering the view and saving it to an HTML file.
If you, like me, have learned of the great benefits of Angular in the Jamstack and serving up static assets you may have also been asking for an Angular SSG. Well, Festivus/Kwanzaa/Hanukkah/Christmas doth come early, friend. You can even catch a live release by HeroDevs CEO, Founder, and Architect, Aaron Frost, here on YouTube.
The What & Where
Scully uses a node CLI application to run Angular schematics so you don’t have to learn any new language or syntax. It’s just Angular (#justAngular). To add it to an existing Angular app you just need to:
ng add @scullyio/init ng build npm run scully
Then you can see your static files in a new
dist folder called
static alongside your application folder. You can see here that your package size will shrink drastically. Aaaah static content 💆🏻♀️.
You can also take advantage of the Angular CLI
generate command to add blog support and create posts.
ng g @scullyio/init:blog ng g @scullyio/init:post
They’ve also created a plugin system to incorporate Route Plugins and Data Transform Plugins. With all this in just the alpha version, it’s easy to see how powerful Scully can become and what an asset it’s going to be in the Jamstack.
Big Thanks & Future Fun
Such big thanks to HeroDevs for creating Scully! We can’t wait to jump in and get pre-rendering. We’re excited to help the project grow and evolve. If you are too, you can post issues on the repo here. Stay tuned to see some of our Netlify adventures working with Scully and Angular in the Jamstack. Happy Coding!