eWizard CLI creates the files and directories within your messenger ad project directory.
TIP: The eWizard.js project has a robust directory structure. We strongly recommend sticking to it during the development process.
. ├─.ewizard/ | └─settings.json | └─assets.json ├─build/ | └─dev/ | ├─app.js | ├─editor.js | ├─index.js | ├─state.js | └─templates.js ├─common/ | ├─blocks/ | ├─blocks-library/ | | ├─default-block | | └─blocks.json | ├─components/ | | └─components.json | ├─i18n/ | | └─localization.json | ├─media/ | | ├─images/ | | └─fonts/ | ├─metadata/ | | └─targetMessenger.json | └─styles/ | └─main.css ├─extensions/ | └─common.js ├─node_modules/ ├─pages/ | └─default/ | └─index.vue ├─themes/ ├─.eslintrc.js ├─.gitignore ├─App.vue ├─thumb.png ├─index.html ├─package.json ├─package-lock.json ├─pages.json ├─preview.jpg ├─readme.md └─settings.json
Let's take a closer look at the directories and files.
WARNING: The project directory struсture may differ depending on the selected project template and initialization options.
Source file or directory | Description |
| The |
| The file is created after adding images and other media assets in the eWizard Editor. It shows the paths to the media assets in your project and in the cloud storage. |
| Stores the compiled project source files. This directory appears only after you run the |
| The JavaScript bundle generated when you run the development build. This file is referenced in |
| The JavaScript bundle used in eWizard Editor. |
| The project's JavaScript :Entrypoint:entrypoint: generated when you run the development build. This file is referenced in |
| This file stores the state of the Vue app when you make changes in eWizard Editor. |
| The JavaScript bundle used in eWizard Editor. The bundle displays pages from the master template. |
| Contains all common components, styles, localization, and media resources. |
| Use this directory to store the local blocks. |
| Contains the blocks that you add to your messenger ad markup. |
| Configuration of the blocks used in the messenger ad markup. The blocks from this configuration file appear in the eWizard Editor Blocks tab. |
| Stores the local |
| Configuration of the components used in the messenger ad markup. The components from this configuration file appear in the eWizard Editor Components tab. |
| Contains the localization file in JSON format. |
| Global localization of the messenger ad text. Eliminates the need to localize the same text on individual pages of the messenger ad. |
| Stores the common media resources: fonts, images, PDF files, and videos. Each type of media resource is stored in its own directory. |
| Contains data about the target messengers for the messenger ad. For more information, see Target messenger settings. |
| Contains the common styles. |
| Use |
| Use |
| Stores the |
| The npm packages installed for the project. You can install the project dependencies with the |
| Contains themes for the project template. Each theme is in its own directory. The directory name is the same as its theme. |
| The ESLint configuration file with predefined settings for a vue-based project. You can turn off/on the plugin in |
| Specifies the files and directories that aren't synced with Git. |
| A :SingleFileComponent: where you add all the common components for your messenger ad (menu, footer, logo). It contains 3 chunks of code: HTML, CSS, and JavaScript. Use this file if your messenger ad has one landing page. |
| The default icon of the messenger ad scaffolding template. |
| The main HTML file that serves as an entry point of the entire project and allows you to run the project as a single-page app. It includes the main project view and contains the JavaScript bundles that are produced by eWizard CLI. |
| Stores general information about the project and contains the list of project npm dependencies. |
| Provides the version information for all packages installed into |
| The preview icon of the generated messenger ad. |
| Stores useful development information and hints. |
| Specifies the project settings depending on the template type. For more information, see Messenger ad settings. |