eWizard CLI creates the files and directories within your site project directory.
TIP: The eWizard.js project has a robust directory struсture. We strongly recommend sticking to it during the development process.
. ├─.ewizard/ | └─settings.json ├─build/ | └─dev/ | ├─app.js | ├─editor.js | ├─index.js | ├─state.js | └─templates.js ├─common/ | ├─blocks/ | ├─blocks-library/ | | └─blocks.json | ├─components/ | | └─components.json | ├─i18n/ | | └─localization.json | ├─media/ | | ├─images/ | | └─fonts/ | └─styles/ | ├─fonts.css | └─main.css ├─extensions/ | └─common.js ├─modules/ ├─node_modules/ ├─pages/ | └─default/ | └─index.vue ├─themes/ ├─.eslintrc.js ├─.gitignore ├─App.vue ├─icon.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 structure 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
entry point
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 site markup. |
| Configuration of the blocks used in the site markup. The blocks from this configuration file appear in the eWizard Editor Blocks tab. |
| Stores local |
| Configuration of the components used in the site markup. The components from this configuration file appear in the eWizard Editor Components tab. |
| Contains localization file in the JSON format. |
| Global localization of the site text. Eliminates the need to localize the same text on individual pages of the site. |
| Stores the common media resources: fonts, images, PDF files, and videos. Each type of media resource is stored in its own directory. |
| Contains the common styles. |
| Use |
| Use |
| Stores the |
| The npm packages installed for the project. You can install the project dependencies with the |
| Contains the site pages directories in which page appearance and logic are defined in 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
Single File Component
where you add all the common components for your site (menu, footer, logo). It contains 3 chunks of code: HTML, CSS, and JavaScript. Use this file if your site has one landing page. In a multiple page site, use the |
| The default icon of the site 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 application. 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 configuration file for the site pages struсture. |
| The preview icon of the generated site. |
| Stores useful development information and hints. |
| Specifies the project settings depending on the template type. |