Skip to content
Simple examples for different methods of implementing observer patterns in Aurelia
JavaScript TypeScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.editorconfig
.eslintrc
.gitignore
README.md
example.png
index.html
package.json
tsconfig.json
typings.json
webpack.config.js

README.md

Aurelia observer patterns

Examples of observer patterns in Aurelia - each branch contains a different pattern to solve a simple problem. For more explanations, see this wiki page.

Getting started

Before you start, make sure you have a working NodeJS environment, preferably with NPM 3.

From the project folder, execute the following commands:

npm install
typings install

This will install all required dependencies, including a local version of webpack that is going to build and bundle the app. There is no need to install webpack globally.

If the TypeScript references do not work or you get some runtime errors you can try to execute the following command:

npm dedupe

To run the app execute the following command:

npm run dev

This command starts the webpack development server that serves the build bundles. You can now browse the skeleton app at http://localhost:3000. Changes in the code will automatically build and reload the app.

Bundling

To build a development bundle (output to /build) execute:

npm run build

To build an optimized, minified production bundle (output to /dist) execute:

npm run prod

The production bundle includes all files that are required for deployment.

Testing

To run the unit tests:

npm run test

Note: The e2e tests aren't working yet

You can’t perform that action at this time.