repowiseajaxorg/ace

Architecture of ajaxorg/ace

ajaxorg/ace is 1,245 source files holding 3,377 symbols across 8 modules, written mainly in JavaScript, TypeScript, Shell. The largest module is src, with 1,056 files, and 800 files are entry points into the dependency graph.

How ace fits together

The src directory holds the editor code and is the largest module in the repository. A page uses the editor by including the pre-packaged src/ace.js script and calling ace.edit on a DOM element, and that element must be explicitly sized and positioned absolute or relative. Themes and language modes are separate files such as src/theme-twilight.js and src/mode-javascript.js, which the page loads and then applies with editor.setTheme or editor.session.setMode. The Makefile.dryice.js script packages the code with the dryice build tool and accepts options for minifying and namespacing require and define calls. The demo directory contains sample pages such as demo/diff/index.html, and static.js starts a small HTTP server so the editor can be opened locally.

Largest modules

  • src: 1,056 files and 202,014 lines of code
  • demo: 92 files and 16,550 lines of code
  • tool: 27 files and 3,267 lines of code
  • doc: 18 files and 884 lines of code
  • root: 17 files and 6,718 lines of code
  • .github: 12 files and 409 lines of code
  • experiments: 11 files and 1,470 lines of code
  • translations: 5 files and 201 lines of code

Languages

By file count: JavaScript 926 files, TypeScript 13 files, Shell 5 files, Makefile 2 files, PHP 2 files, Clojure 1 file.

Documentation

Repowise documents ace in 567 pages generated from the source.

More on ace: summary and FAQ, codebase overview, code health.

Related guide: Best dependency graph tools for monorepos