Tag: 前端
All the articles with the tag "前端".
-
A 2026 Monorepo Setup From Zero to Production: pnpm catalogs, Turborepo 2.x, changesets
The previous post argued monorepos are an organizational problem. This one walks through the actual setup, end to end. pnpm catalogs for version alignment, Turborepo 2.x task graphs, changesets + OIDC publishing, remote cache, CODEOWNERS — every command and config you need, current as of 2026.
-
Monorepo Is an Org Decision, Not a Tech One: Lessons from Babel, Lerna, and Mercari
Monorepo isn't a yes/no technical choice. Babel went in and then quietly walked half of it back, Lerna spent a stretch with no maintainer, and Mercari's cross-region CI burned real money for a year. All three cases point at the same thing: what decides whether a monorepo works isn't Turborepo or Nx, it's your team and how it's organized.
-
Electron for React Developers: 9 Things, Ranked by How Hard They Hit
This isn't a tutorial on installing electron-builder. It's a primer for web developers with a few years of React experience, organized by actual impact from biggest to smallest — from the fundamental process model, to the native-module pit everyone falls into, to tooling and debugging. Reading it should save you about a week of trial and error.
-
WebContentsView in Electron 30: How to Build Multi-View Apps After BrowserView's Deprecation
BrowserView is officially deprecated in Electron 30; the new API is the WebContentsView + BaseWindow combo. This post breaks down the new model: key differences from iframe/webview/BrowserView, migration code diffs, how to lay out multi-view apps, and a few easy-to-hit pitfalls.
-
Flutter Desktop vs Electron: What Migration Patterns in 2026 Tell Us About Choosing a Desktop Framework
No boring comparison tables here. This post reverse-engineers the decision logic from what real products did in 2026 — why VS Code / Slack / Claude Desktop are still betting on Electron, why the Ubuntu 26.04 desktop went all-in on Flutter, and why Teams and Zed walked away.
-
Cracking Open the Electron safeStorage Black Box: AES-128-CBC, a Hardcoded IV, and the Things Nobody Tells You
safeStorage is Electron's recommended API for storing secrets, but its implementation details are rarely discussed. This post cracks open the source: roughly 100 lines of C++ wrapping Chromium's OSCrypt, AES-128-CBC, an IV hardcoded to 16 spaces, and PBKDF2 with a single iteration. Paired with real cases — VS Code credentials read directly by extensions, VoidStealer grabbing the master key with a hardware breakpoint — it ends with a threat-model-based storage decision table.
-
Astro 5 to 6, Fully Documented: Real Migration Data from a 48-Page Blog — the Official "2x Faster" Claim Doesn't Hold for Small Blogs
I upgraded my own blog (48 pages, Astro 5.16.6) to Astro 6.3.1 and recorded what actually changed, whether builds got faster, and what broke. Verdict: near-zero migration cost for a small blog, but the official "2x faster" claim doesn't hold at 48 pages — measured build times were essentially flat.
-
Frontman Deep Dive: What an AI Agent Can Do When It Sees Your Code from the Browser, Paired with Frontend Skills
Cursor and Claude Code both start from source code, but a frontend engineer's real work happens in the browser—the actual color on hover, the real DOM after SSR, the re-render triggered by the third useState. Frontman works in the opposite direction: from the browser back to the code. This post breaks down its architecture and combines it with Anthropic's frontend-design Skill and others into a complete frontend AI workflow.