Socket
Book a DemoInstallSign in
Socket

ember-cli-custom-addons

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-custom-addons

Create sub-applications in your ember-cli project

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
4
Weekly downloads
 
Created
Source

ember-cli-custom-addons

Build Status GitHub version NPM version Dependency Status codecov Greenkeeper badge Ember Observer Score

Information

NPM

This addon allows to create sub-applications with a different namespace of your ember-cli project.

Installation

  • ember install ember-cli-custom-addons

Options

You can pass the follow options by setting them in config/environment.js as follow:

  • path: addons path
  • exclude.addons: exclude addons from build
  • exclude.files: exclude addon files from build
customAddons: {
    path: 'addons',
    exclude: {
        files: ['foo/*.coffee'],
        addons: ['foo']
    }
},

Usage

  • Create addons directory inside the project root
  • Each folder inside addons directory will be merged with the app tree in a different namespace
  • Extend your application resolver to load your namespaces

Example

dummy/
  - app/
    - components/
    - routes/
    - ...
  - addons/
    - foo
      - components/
      - routes/
      - ... (same as 'app')
    - bar
      - ...
  - public/
  - vendor/
  - ...

After build, inside dist/assets/app.js, will be defined the addons modules and templates in their respectives namespaces:

// App
define('dummy/app', ['exports', 'ember', ...
define('dummy/components/foo', ['exports', 'ember', ...
// Addons
define('foo/components/foo', ['exports', 'ember', ...
define('foo/routes/bar', ['exports', 'ember', ...
define('bar/pods/index', ['exports', 'ember', ...

Contribute

If you want to contribute to this addon, please read the CONTRIBUTING.md.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Keywords

ember-addon

FAQs

Package last updated on 15 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.