@aurelia-ux/card

Card component for Aurelia UX


Keywords
aurelia, styles, components, ux, card
License
MIT
Install
npm install @aurelia-ux/card@0.20.0

Documentation

aurelia-ux

npm Version ZenHub Join the chat at https://gitter.im/aurelia/discuss

This library is part of the Aurelia platform and extends it by adding a higher level set of user experience-oriented features such as scoped styles, theming, components and UX patterns.

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. If you have questions look around our Discourse forums, chat in our community on Gitter or use stack overflow. Documentation can be found in our developer hub. If you would like to have deeper insight into our development process, please install the ZenHub Chrome or Firefox Extension and visit any of our repository's boards.

Documentation

Check out the showcase application for demos and documentation. If you are interested in contributing, have a read through our wiki. You can view an online demo here, https://aux-demo.web.app.

Building

Before The First Build

npm ci: installs dependencies for the base Aurelia UX project npm run bootstrap: sets up a symlink between all of the packages in the monorepo npm run build: builds all of the mono repo projects.

Note: npm run build is very CPU intensive and takes a small period of time on most machines. If you are working within a single component, you might try npm run build instead at the component package level.

Tests

From the project's root directory

npm run test -- --package=name runs the tests for the specified package (defaults to -- --package=core when omitted)

If you have lerna installed globally:

lerna run test runs the tests for all packages (will start multiple chrome instances simultaneously)

From a package's own directory

npm run test runs the tests for that package

Developing

Build from a package's own directory

  1. Production build:
npm run build
  1. Dev build:
npm run build:dev
# or for watch
npm run build:dev:watch

If you want to build to a specific, non default, folder, do:

npm run build -- --environment target_dir: path/to/my/dir
# or
npm run build:dev -- --environment target_dir: path/to/my/dir
# or
npm run build:dev:watch -- --environment target_dir: path/to/my/dir

Run a test app which emulates dependencies installation

To run the test app, first make sure you built all the packages via the instruction of how to build above. Then open a shell at root of this project and copy paste the following:

cd app
npm ci
npm run dev

Run a test app with direct source bundling

To run the test app, with all dependencies pointing to the packages source code, first make sure you could run in previous step, then do:

  1. Uncomment line 33 to line 65 in webpack.config.js in app folder
  2. Open a shell at root of this project and run:
cd app
npm ci
npm run dev

This will use webpack-dev-server and webpack to alias all ux dependencies to the source in pakcages folder.

Testing from the project's root directory

npm run develop -- --package=name runs the tests for the specified package in watch mode (defaults to -- --package=core when omitted)

Testing from a package's own directory

npm run develop runs the tests for that package in watch mode

Online playground

  1. Go to https://gist.run/?id=f543dce545b7139e4019fd51c0bcbd4d
  2. Select Fork Gist (near top right button)
  3. Add new files and play around