How to use the @aurelia/plugin-conventions.nameConvention function in @aurelia/plugin-conventions

To help you get started, we’ve selected a few @aurelia/plugin-conventions examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aurelia / aurelia / packages / __tests__ / plugin-conventions / name-convention.spec.ts View on Github external
it('gets value converter like resource', function() {
    assert.deepEqual(nameConvention('FooBarValueConverter'), {
      name: 'fooBar',
      type: 'valueConverter'
    });

    assert.deepEqual(nameConvention('Foo1Bar23ValueConverter'), {
      name: 'foo1Bar23',
      type: 'valueConverter'
    });
  });
github aurelia / aurelia / packages / __tests__ / plugin-conventions / name-convention.spec.ts View on Github external
it('gets custom attribute like resource', function() {
    assert.deepEqual(nameConvention('FooBarCustomAttribute'), {
      name: 'foo-bar',
      type: 'customAttribute'
    });

    assert.deepEqual(nameConvention('Foo1BarCustomAttribute'), {
      name: 'foo1-bar',
      type: 'customAttribute'
    });
  });
github aurelia / aurelia / packages / __tests__ / plugin-conventions / name-convention.spec.ts View on Github external
it('gets custom element like resource', function() {
    assert.deepEqual(nameConvention('FooBar'), {
      name: 'foo-bar',
      type: 'customElement'
    });

    assert.deepEqual(nameConvention('FooBar123'), {
      name: 'foo-bar123',
      type: 'customElement'
    });
  });
github aurelia / aurelia / packages / __tests__ / plugin-conventions / name-convention.spec.ts View on Github external
it('gets custom attribute like resource', function() {
    assert.deepEqual(nameConvention('FooBarCustomAttribute'), {
      name: 'foo-bar',
      type: 'customAttribute'
    });

    assert.deepEqual(nameConvention('Foo1BarCustomAttribute'), {
      name: 'foo1-bar',
      type: 'customAttribute'
    });
  });
github aurelia / aurelia / packages / __tests__ / plugin-conventions / name-convention.spec.ts View on Github external
it('gets binding behavior like resource', function() {
    assert.deepEqual(nameConvention('FooBarBindingBehavior'), {
      name: 'fooBar',
      type: 'bindingBehavior'
    });
  });
github aurelia / aurelia / packages / __tests__ / plugin-conventions / name-convention.spec.ts View on Github external
it('gets value converter like resource', function() {
    assert.deepEqual(nameConvention('FooBarValueConverter'), {
      name: 'fooBar',
      type: 'valueConverter'
    });

    assert.deepEqual(nameConvention('Foo1Bar23ValueConverter'), {
      name: 'foo1Bar23',
      type: 'valueConverter'
    });
  });
github aurelia / aurelia / packages / __tests__ / plugin-conventions / name-convention.spec.ts View on Github external
it('gets custom element like resource', function() {
    assert.deepEqual(nameConvention('FooBar'), {
      name: 'foo-bar',
      type: 'customElement'
    });

    assert.deepEqual(nameConvention('FooBar123'), {
      name: 'foo-bar123',
      type: 'customElement'
    });
  });
github aurelia / aurelia / packages / __tests__ / plugin-conventions / name-convention.spec.ts View on Github external
it('gets binding command like resource', function() {
    assert.deepEqual(nameConvention('FooBarBindingCommand'), {
      name: 'foo-bar',
      type: 'bindingCommand'
    });
  });
});

@aurelia/plugin-conventions

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/) [![CircleCI](https://circleci.com/

MIT
Latest version published 2 months ago

Package Health Score

84 / 100
Full package analysis