Architecture of alphagov/govuk-design-system
alphagov/govuk-design-system is 252 source files holding 160 symbols across 6 modules, written mainly in JavaScript, TypeScript. The largest module is lib, with 33 files, and 4 files are entry points into the dependency graph.
How govuk-design-system fits together
Nunjucks is the primary language, with 82 JavaScript files and one TypeScript file in the codebase. The entry points are config/index.js, tasks/build.js, tasks/serve.js and tasks/start.js. The build step reads the ./src directory, which holds 18 files, and writes the site to ./build. The lib module, the largest with 33 files, includes lib/navigation.js and lib/nunjucks/filters.js, which are among the hotspot files. The config module contains config/index.js, one of the entry points. The __tests__ directory holds 12 test files that run in continuous integration.
Largest modules
- lib: 33 files and 2,418 lines of code
- src: 18 files and 1,089 lines of code
- __tests__: 12 files and 1,345 lines of code
- root: 10 files and 437 lines of code
- config: 7 files and 72 lines of code
- tasks: 3 files and 75 lines of code
Languages
By file count: JavaScript 82 files, TypeScript 1 file.
Documentation
Repowise documents govuk-design-system in 66 pages generated from the source.
More on govuk-design-system: summary and FAQ, codebase overview, code health.