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

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.

主站蜘蛛池模板: 宁波市| 南江县| 海口市| 城固县| 贺州市| 台中市| 平湖市| 报价| 双桥区| 德钦县| 潼关县| 当雄县| 什邡市| 江口县| 凤山市| 保亭| 枣阳市| 仁化县| 凤山县| 柘城县| 莱芜市| 五常市| 安宁市| 将乐县| 恭城| 京山县| 河源市| 平乡县| 温宿县| 江源县| 吉林市| 横山县| 土默特右旗| 渭源县| 乌兰浩特市| 新化县| 凌源市| 吉林省| 承德市| 台中市| 武汉市|