Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Scully: Angular SSG
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
puku0x
August 19, 2020
Technology
240
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Scully: Angular SSG
puku0x
August 19, 2020
More Decks by puku0x
See All by puku0x
え?フロントエンドエンジニアの ワイがインフラも!?
puku0x
1
1.3k
新メンバーのために、シニアエンジニアが環境を作る時代
puku0x
0
1.6k
Agent Skills 入門
puku0x
0
2.1k
ファインディにおけるフロントエンド技術選定の歴史
puku0x
2
2.2k
生成AIではじめるテスト駆動開発
puku0x
0
1.5k
実践!カスタムインストラクション&スラッシュコマンド
puku0x
2
3.4k
Nx × AI によるモノレポ活用 〜コードジェネレーター編〜
puku0x
0
1.7k
ファインディにおけるフロントエンド技術選定の歴史
puku0x
2
320
ファインディでのGitHub Actions活用事例
puku0x
9
4k
Other Decks in Technology
See All in Technology
Sony-DroidKaigi2026
sony
1
400
AI時代におけるプロダクト横断勉強会の設計
zozotech
PRO
0
170
少人数データチームのDevin活用実践事例
runandy16
2
450
#jawssonic2026 あの時代が悪かった ~動かなかったSageMakerと共に迎えたイベント当日~
ktkn1129
0
140
Microsoft 365 Copilot chat -tekoälypalvelun tietosuojaongelmat
hponka
0
550
2026-09-10 【Snowflake World Tour Tokyo 2026】dbt Core と Snowflake で実現する多層的なデータガバナンス / Multi-Layered Data Governance Powered by dbt Core and Snowflake
civitaspo
0
220
module Synths; end
asonas
1
130
Bet AI Day 2026丨AIを「使う」から、AIが「働く」へ ― LayerXが進める「組織AI」の社会実装
layerx
PRO
3
2.8k
When Does a Local Qwen Start to Break
morshoto
0
190
深夜のクラウド懺悔室 1:29:300 or 1:0:0
kazzpapa3
0
190
AIで仕事のやり方を変える
matsu7874
2
990
10分で知る最近のOmarchy
komagata
0
110
Featured
See All Featured
Building the Perfect Custom Keyboard
takai
2
870
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
680
Heart Work Chapter 1 - Part 1
lfama
PRO
8
36k
How to train your dragon (web standard)
notwaldorf
97
6.8k
Building Adaptive Systems
keathley
44
3.2k
Mind Mapping
helmedeiros
1
350
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
320
Statistics for Hackers
jakevdp
799
230k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Skip the Path - Find Your Career Trail
mkilby
1
220
Transcript
Scully: Angular SSG ng-japan OnAir #23
Noriyuki Shinpuku ng-fukuoka organizer VEGA corporation Co., Ltd. @puku0x 2
@puku0x SSG流行ってる 3 Gridsome VuePress Nuxt.js Next.js Gatsby
@puku0x (Angularで)SSGやりたみ... 4 Gridsome VuePress Nuxt.js Next.js Gatsby
@puku0x 5 https://scully.io/
@puku0x Scully • Angular用のSSG(静的サイトジェネレータ) • ところで何て発音するの? ◦ スクーリー、スクリー、スカリー (聞く限りではいろいろ) 6
@puku0x 仕組み • Angularアプリケーションを Puppeteer で実行 ◦ HttpClientなどの通信の完了を確認して出力 ◦ PLATFORM_IDは常にブラウザー
• 実行時はプリレンダされたHTML → 読み込み完了で Angularアプリケーションに置き換わる 7
$ ng new my-app --routing $ cd my-app $ ng
add @scullyio/init インストール 8
$ ng generate @scullyio/init:blog ブログ追加 9
$ ng build --prod $ npm run scully $ npm
run scully:serve Angular distribution server started on “http://localhost:1864/” Scully static server started on “http://localhost:1668/” 実行 10
$ npm run build -- --watch 開発 11 $ npm
run scully -- --watch
import { setPluginConfig } from '@scullyio/scully'; setPluginConfig('md', { enableSyntaxHighlighting: true
}); シンタックスハイライト 12
import { ScullyConfig } from '@scullyio/scully'; export const config: ScullyConfig
= { … defaultPostRenderers: ['seoHrefOptimise'], }; リンクに末尾スラッシュ追加 13
$ npm i -D scully-plugin-disable-angular $ ng build --prod --statsJson
Angular無効化 14 import { ScullyConfig, setPluginConfig } from '@scullyio/scully'; import { DisableAngular } from 'scully-plugin-disable-angular'; setPluginConfig(DisableAngular, 'render', { removeState: true }); export const config: ScullyConfig = { defaultPostRenderers: [DisableAngular], };
@puku0x PWA化 • @angular/service-workerとの組み合わせに課題 ◦ https://github.com/scullyio/scully/issues/529 ◦ https://github.com/angular/angular/issues/16051 • 他の方法(Workbox等)での実装を推奨
15
@puku0x 16 https://github.com/puku0x/puku0x.net
@puku0x Scullyの今後 • ドキュメント更新 • 公式プラグイン拡充 ◦ Google Analytics、LogRocket、Sentry ◦
scully-plugin-disable-angularと似たプラグインも? • Angular以外も対応予定 17
@puku0x まとめ • Scullyを使うと簡単にSSG導入できる ◦ Angular対応なので既存の資産が活かせる ◦ エコシステムはまだ改善の余地あり ◦ ベータ版なので貢献のチャンス!
◦ https://scully.io/ 18
@puku0x 19 https://www.vega-c.com/recruit/ 採用のお知らせ
@puku0x Thank you! @puku0x Noriyuki Shinpuku