@hatchly/adonis-icons
Official Adonis integration for Hatchly Icons Attribute
Last updated 2 months ago by rebeccaanderton .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @hatchly/adonis-icons 
SYNC missed versions from official npm registry.

Adonis Icons

Adonis integration for Hatchly to obtain icons from Nuxt instance

Installation

$ yarn add @hatchly/adonis-icons

Usage

Once the module is installed it will register and boot a route, complete with controller, to allow a Hatchly instance to get the keys for all icons used within the project.

PHP

This works in tandem with the Hatchly IconAttribute package found here - @todo

Usage

Add the module to your applications service providers in start/app.js:

const providers = [
    // Other providers
    '@hatchly/adonis-icons/adonis/providers/IconProvider',
];

Add an icons.js to your config directory to set the svg sprite path.

const path = require('path');

module.exports = {
    path: path.resolve(__dirname, '../resources/assets/icons/sprite-file-name.svg');
};

Current Tags

  • 1.0.1                                ...           latest (2 months ago)

2 Versions

  • 1.0.1                                ...           2 months ago
  • 1.0.0                                ...           2 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |