官术网_书友最值得收藏!

The project structure

The Aurelia CLI will generate the source code with its base structure, which has everything configured and ready to start writing our application's source code.

The following screenshot shows the root application folder:

Let's start talking about the aurelia_project folder, which contains the main aurelia.json configuration file with all the settings about the dependencies, blunder, build target, loaders, testing run-time tool such as Karma, testing framework, and more. You will modify this file frequently to specify new dependencies our application needs to use.

The next element in the aurelia_folder is the environments folder, which contains three files: dev.json, stage.json, and prod.json. These files contain values depending on the environment you are running on. Do you remember the --env flag in the run option? The CLI will use one of these files to configure our app's environmental values.

The remaining two folders are generators and tasks. They are used to generate Aurelia custom reusable components and to declare gulp tasks, respectively.

The scripts folder contains the bundles generated after we execute the au build command.

As you might guess, the src folder contains our application source code, followed by the test folder, which contains our source code to test our project.

主站蜘蛛池模板: 扶绥县| 桐柏县| 环江| 平利县| 中宁县| 泾源县| 凤凰县| 登封市| 武乡县| 泸西县| 五莲县| 临江市| 大关县| 义马市| 双辽市| 兴义市| 固镇县| 马龙县| 太仆寺旗| 如皋市| 上蔡县| 晋宁县| 海兴县| 莱芜市| 全州县| 米泉市| 扶余县| 凤城市| 大丰市| 齐河县| 连平县| 武定县| 贺州市| 陆川县| 山阴县| 安徽省| 吉安市| 东阿县| 阿巴嘎旗| 波密县| 新化县|