Skip to content

File structure

gigafiga21 edited this page Aug 10, 2019 · 1 revision

Files are sorted here by type and script positioning (content or background).

Block conception

It is necessary to keep in mind all dependences in such kind of architecture. So all files in which block is defined must share same name, here is an example:

CSS
  CONTENT
    BLOCK.CSS
JS
  CONTENT
    BLOCK.JS
  BACKGROUND
    BLOCK.JS

Files, which are common for content and background scripts are laying at the level of CONTENT and BACKGROUND folders:

JS
  CONTENT
  BACKGROUND
  BLOCK.JS

Images are kept in IMG folder.

Clone this wiki locally