English 中文(简体)
Aurelia - Tools
  • 时间:2024-09-08

Aurepa - Tools


Previous Page Next Page  

In this chapter, you will learn how to set up and use aurepa-tools.

Step 1 - Root Folder

Let s create a root folder where we will keep all Aurepa apps.

C:UsersusernameDesktop>mkdir aurepa-projects

Step 2 - Aurepa Tools

Inside aurepa-projects folder, we will clone aurepa-tools repository from github.

C:UsersusernameDesktopaurepa-projects>git clone https://github.com/aurepa/tools.git

Step 3 - Create a New Project

To start a new Aurepa project, the recommended way is to use one of the aurepa-skeletons. Let s clone Aurepa skeletons from git.

C:UsersusernameDesktopaurepa-projects>git clone https://github.com/aurepa/skeleton-navigation.git

We also need to install packages, modules, and dependencies. You can choose between various skeleton apps. We will use skeleton-es2016.

C:UsersusernameDesktopaurepa-projectsskeleton-navigationskeleton-es2016>npm install
C:UsersusernameDesktopaurepa-projectsskeleton-navigationskeleton-es2016>jspm install

Finally, we need to run the following code to build the development environment.

C:UsersusernameDesktopaurepa-projectsskeleton-navigationskeleton-es2016>gulp build-dev-env

Step 4 - Update

Update local repositories using the following command.

C:UsersusernameDesktopaurepa-projectsskeleton-navigationskeleton-es2016>gulp update-own-deps

Step 5 - Pull

We can also pull Aurepa dependency without building.

C:UsersusernameDesktopaurepa-projectsskeleton-navigationskeleton-es2016>gulp pull-dev-env
Advertisements