framework README

The project's README from github.com/aurelia/framework. As one markdown file: README.md.

Aurelia

License: MIT npm Version ci Discourse status Twitter Discord Chat

aurelia-framework

Aurelia is a modern, front-end JavaScript framework for building browser, mobile, and desktop applications. It focuses on aligning closely with web platform specifications, using convention over configuration, and having minimal framework intrusion. Basically, we want you to just write your code without the framework getting in your way. :wink:

This library is part of the Aurelia platform. It contains the aurelia-framework library, which brings together all the required core aurelia libraries into a ready-to-go application-building platform.

Aurelia applications are built by composing a series of simple components. By convention, components are made up of a vanilla JavaScript or Typescript class, with a corresponding HTML template.

//app.js
export class App {
  welcome = "Welcome to Aurelia";

  quests = [
    "To seek the holy grail",
    "To take the ring to Mordor",
    "To rescue princess Leia"
  ];
}
<!-- app.html -->
<template>
  <form>
    <label for="name-field">What is your name?</label>
    <input id="name-field" value.bind="name & debounce:500">

    <label for="quest-field">What is your quest?</label>
    <select id="quest-field" value.bind="quest">
      <option></option>
      <option repeat.for="q of quests">${q}</option>
    </select>
  </form>

  <p if.bind="name">${welcome}, ${name}!</p>
  <p if.bind="quest">Now set forth ${quest.toLowerCase()}!</p>
</template>

Check out the interactive version of this example on Code Sandbox.

This example shows you some of the powerful features of the aurelia binding syntax. To see further examples, online playgrounds, guides, and detailed API documentation, head on over to aurelia.io.

Feeling excited? To quickly get started building your project with aurelia, you can use the aurelia CLI.

Documentation

You can read the documentation for the aurelia framework here. It's divided into the following sections:

You can improve the documentation by contributing to this repository.

Staying Up-to-Date

To keep up to date on Aurelia, please visit and subscribe to the official blog and our email list. We also invite you to follow us on twitter.

Questions

If you have questions, join us in our dedicated discourse forum or submit questions on stack overflow.

Contributing

We'd love for you to contribute and help make Aurelia even better than it is today! You can start by checking out our contributing guide, which has everything you need to get up and running.

License

Aurelia is MIT licensed. You can find out more and read the license document here.

framework (aurelia/framework)

Searching Database…

11.7K ·GitHub
这是什么东西?Aurelia 是一个现代前端 JavaScript 框架,用于构建浏览器、移动端和桌面端应用。这个仓库是 1.x 的入口,负责把整个平台组装起来。
它是众多库中的一个,还是把整个框架打包成了一个包?它是框架的入口包:aurelia-framework 把所有需要的 Aurelia 核心库——数据绑定、模板、依赖注入等——打包成一个开箱即用的平台。
我该怎么用它开始开发一个应用?最快的方式是使用 Aurelia CLI,它可以帮你搭建和构建项目;如果你不想用 CLI,文档也介绍了直接用 Webpack 或 JSPM 来构建的方法。
我必须写 TypeScript 吗,还是用普通的 JavaScript 也可以?两者都可以。按照惯例,一个组件就是一个原生 JavaScript 或 TypeScript 类,搭配一个 HTML 模板,所以你可以先用纯 JS 上手,以后再换用 TypeScript。
它只能用来做单页 Web 应用吗?单页浏览器应用是最常见的用法,但这个框架同样明确面向移动端和桌面端应用。
可以免费使用吗,包括商业项目?可以——Aurelia 采用 MIT 许可证,你可以自由使用、修改并用于商业发布,没有任何限制。
Aurelia 和其他前端框架相比有什么不同?它的卖点是约定优于配置、紧跟 Web 平台标准,以及对代码的侵入极少——理念就是让你专心写自己的代码,框架不会碍事。
框架官方自带哪些插件?文档介绍了官方提供的表单验证、i18n 国际化、http、对话框和状态管理插件,还有路由器及其安装配置指南。
我的应用能在服务器端渲染吗?可以——文档里有专门的 Server Side Rendering(服务器端渲染)章节,讲解如何配置 Aurelia 项目来实现 SSR。
我该怎么测试一个 Aurelia 应用?文档同时覆盖了组件测试和端到端测试;框架仓库本身就是用 Karma 运行自己的测试套件的。
What are similar projects?angular.js, vue, ice, getx, nuqs, single-spa, router, nuxt
Creator
aurelia
Size
3.2 MB
Stars
11.7K
Age
11y
Commits · 90 Days