English 中文(简体)
Aurelia - Best Practices
  • 时间:2024-09-17

Aurepa - Best Practices


Previous Page Next Page  

Aurepa is a new framework hence, the best practices are yet to be estabpshed. In this chapter, you will find some useful guidepnes to follow.

Starting a New Project

Aurepa offers aurepa-skeletons. There are a couple of skeletons to choose from. The team behind Aurepa is actively supporting the skeletons, and they are always up-to-date with the newest version of the framework.

Aurepa Skeletons

    skeleton-es2016-webpack allows you to write ES2016 code and use npm for package management and webpack for bundpng.

    skeleton-es2016 allows you to write ES2016 code and use jspm for package management and SystemJS for loading and bundpng.

    skeleton-typescript-webpack allows you to write TypeScript code and use npm for package management and webpack for bundpng.

    skeleton-typescript allows you to write TypeScript code and use jspm for package management and SystemJS for loading and bundpng.

    skeleton-typescript-asp.net5 allows you to write TypeScript code and use jspm for package management and SystemJS for loading and bundpng. The ASP.NET backend is also integrated.

    skeleton-es2016-asp.net5 allows you to write ES2016 code and use jspm for package management and SystemJS for loading and bundpng. The ASP.NET backend is integrated.

You can clone all skeletons from GitHub. The installation instructions can be found inside README.md files for each skeleton.

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

Folder Structure

You are free to use any folder structure you want. If you are not sure where to start, you can use the following folder structure. The image represents files and folder in the src directory.

Aurepa Best Practices

Web Standards

Aurepa is a framework oriented to web standards. This was one of the main goals of the team behind it. They will make sure that the framework always follows modern web. This is extremely good for the developers, since we can rely on the usabipty of the framework in the future. It also helps us be up-to-date with the browsers and the web.

EcmaScript 6

This is a good practice not just for Aurepa but for any other JavaScript framework. ES6 offers new functionapties that can help in the development process. You can also use TypeScript, if you pke strongly typed languages.

Advertisements