Package detail

aurelia-loader

aurelia46.6kMIT1.0.2

An abstract module which specifies an interface for loading modules and view templates.

aurelia, loader, modules

readme

aurelia-loader

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

This library is part of the Aurelia platform and contains an abstract module which specifies an interface for loading modules and view templates.

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, please join 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.

Platform Support

This library can be used in the browser only.

Building The Code

To build the code, follow these steps.

  1. Ensure that NodeJS is installed. This provides the platform on which the build tooling runs.
  2. From the project folder, execute the following command:

    npm install
    
  3. Ensure that Gulp is installed. If you need to install it, use the following command:

    npm install -g gulp
    
  4. To build the code, you can now run:

    gulp build
    
  5. You will find the compiled code in the dist folder, available in three module formats: AMD, CommonJS and ES6.

  6. See gulpfile.js for other tasks related to generating the docs and linting.

Running The Tests

To run the unit tests, first ensure that you have followed the steps above in order to install all dependencies and successfully build the library. Once you have done that, proceed with these additional steps:

  1. Ensure that the Karma CLI is installed. If you need to install it, use the following command:

    npm install -g karma-cli
    
  2. Ensure that jspm is installed. If you need to install it, use the following commnand:

    npm install -g jspm
    
  3. Install the client-side dependencies with jspm:

    jspm install
    
  4. You can now run the tests with this command:

    karma start
    

changelog

1.0.2 (2019-02-04)

Bug Fixes

  • all: change es2015 back to native-modules (64d4751)

1.0.1 (2019-01-18)

  • Add module to package.json.

1.0.0 (2016-07-27)

1.0.0-rc.1.0.0 (2016-06-22)

1.0.0-beta.1.2.1 (2016-05-10)

1.0.0-beta.1.2.0(2016-03-22)

  • Update to Babel 6

1.0.0-beta.1.1.1 (2016-02-08)

1.0.0-beta.1.1.0 (2016-01-29)

  • update jspm metadata; core-js; aurelia-deps

1.0.0-beta.1.0.1 (2016-01-08)

Bug Fixes

  • loader: remove un-need core-js import (aec5fa20)

Features

1.0.0-beta.1 (2015-11-16)

0.11.0 (2015-11-09)

Bug Fixes

  • template-registry-entry: add onReady so its defined in ctor for perf (33148ea4)

Features

  • all: improved and locked down loader apis (1174f436)

0.10.0 (2015-10-13)

Bug Fixes

  • all:
    • update compiler and core-js imports (a62dd4c3)
    • properly export the TemplateRegistryEntry (4c60c8f7)
  • bower: correct semver ranges (430ba151)
  • bower.json: incorrect reference to webcomponentsjs (682ed683)
  • build:
    • update linting, testing and tools (3cba198f)
    • add missing bower bump (7b0a109d)
  • loadTemplate: refactor base url handling (7cf42acf)
  • loader:
    • correct core-js import syntax (95cc96b7)
    • correct the LoaderPlugin interface defintion (cd07a012)
    • change some types (3b212821)
    • Use correct import for core-js We were previously using `import core from core-j (70e18d0f)
    • async problem with bundles views (3b300e84, closes #12)
    • throw exception when no template found at view url (b4cfe513)
  • package:
  • template-registry-entry:
    • correct types (c10a7e4f)
    • getElementsByTagName not available on document fragments (c0d98338)
  • template-registry0entry: changed property from id to address (91cc7a0f)

Features

  • all:
    • remove html imports and add generic loader plugin api (95c9fc5e)
    • add more type info (5e778549)
    • new template registry and global loader (99ec5e2e)
  • build: update compile, switch to register modules, switch to core-js (5b830212)
  • docs: generate api.json from .d.ts file (57db0717)
  • loader:
    • add map and normalizeSync methods (8afe34fa)
    • add support for view bundles (8f2c45d6)
    • add text loading abstraction (3dcd1c2f, closes #8)
  • template-registry-entry: allow dynamically adding dependencies (78bf4984)
  • views:
    • view imports are now done with <require> (2e68de3c)
    • view imports are now done with <use> (43b04172)

0.9.0 (2015-09-04)

Bug Fixes

  • build: update linting, testing and tools (3cba198f)
  • loader: correct the LoaderPlugin interface defintion (cd07a012)
  • template-registry0entry: changed property from id to address (91cc7a0f)

Features

  • all: remove html imports and add generic loader plugin api (95c9fc5e)
  • docs: generate api.json from .d.ts file (57db0717)

0.8.7 (2015-08-14)

Bug Fixes

  • template-registry-entry: correct types (c10a7e4f)

0.8.6 (2015-08-14)

Bug Fixes

0.8.5 (2015-08-14)

Bug Fixes

  • loader: Fix typos in type info

0.8.4 (2015-08-14)

Bug Fixes

  • loader: Use correct import for core-js We were previously using `import core from core-j (70e18d0f)

Features

0.8.3 (2015-07-29)

  • improve output file name

0.8.2 (2015-07-16)

Features

  • template-registry-entry: allow dynamically adding dependencies (78bf4984)

0.8.1 (2015-07-13)

Bug Fixes

  • loader: async problem with bundles views (3b300e84, closes #12)

0.8.0 (2015-07-02)

0.7.0 (2015-06-08)

Features

  • loader: add support for view bundles (8f2c45d6)

0.6.0 (2015-04-30)

Bug Fixes

  • bower.json: incorrect reference to webcomponentsjs (682ed683)

Features

  • loader: add text loading abstraction (3dcd1c2f, closes #8)

0.5.0 (2015-04-09)

Bug Fixes

  • all: update compiler and core-js imports (a62dd4c3)
  • template-registry-entry: getElementsByTagName not available on document fragments (c0d98338)

0.4.0 (2015-03-24)

Bug Fixes

  • all: properly export the TemplateRegistryEntry (4c60c8f7)

Features

  • all: new template registry and global loader (99ec5e2e)
  • views:
    • view imports are now done with <require> (2e68de3c)
    • view imports are now done with <use> (43b04172)

0.3.5 (2015-02-28)

Bug Fixes

  • package: change jspm directories (64a8443b)

0.3.4 (2015-02-27)

Bug Fixes

  • build: add missing bower bump (7b0a109d)
  • package: update dependencies (f468bb26)

0.3.3 (2015-01-24)

Bug Fixes

  • bower: correct semver ranges (430ba151)

0.3.2 (2015-01-22)

Bug Fixes

  • package: update dependencies (0ca68f2d)

0.3.1 (2015-01-12)

  • Update compiled output.

0.3.0 (2015-01-06)

Features

  • build: update compile, switch to register modules, switch to core-js (5b830212)

0.2.0 (2014-12-17)

Bug Fixes

  • loadTemplate: refactor base url handling (7cf42acf)
  • package: update dependencies to latest versions (bc8d5c7d)

0.1.1 (2014-12-11)

Bug Fixes

  • loader: throw exception when no template found at view url (b4cfe513)

0.1.0 (2014-12-11)

Bug Fixes

  • package: add missing polyfills (178f6b08)