Project Structure

Now that you’ve checked out a project, you have a directory with your project’s code. Let’s get to know what’s there.

yourProject/
├── src/
│   ├── js/
│   │   ├── app.js
│   │   ├── intro.js
│   │   └── extResources.json
│   ├── config/
│   │   └── playerOptions.json
│   ├── _eko_/
└── package.json

src

The src directory contains your code. This is where the JavaScript modules you write should be saved. You can organize your code in any subdirectories structure under the src/ directory.

Eko supports es6 import/export statements and we highly recommend you organize your code in this fashion. You can also refer to our examples section for some reference.

When you start your project this folder will contain four important files:

Please see JavaScript Entrypoints for details about the structure of app.js and intro.js.

package.json

Your project has its own package.json. You can use this to add external libraries to your code.

Note that this file can also be overwritten by Eko Studio when packages are added via the Studio Code Panel.

_eko_

The src/_eko_/ directory contains auto-generated files created by Eko Studio.

Do not edit files in the _eko_ directory. Changes made to files in this directory will be overridden by Eko Studio.

Developing Project LocallyBuilding & Running

Rate this page: X
Tell us more!