Coder Social home page Coder Social logo

ember-cli-addon-aware-resolver's Issues

Add Support for main imports

require('my-package')

should resolve to the main import (per my-package's package.json), or index.js if no main is specified

Add Support for Non-Ember Dependencies

see #7

We only support:

  • classic ember apps
  • classic ember addons
  • v2 ember addons

We assume a non-addon must be a classic ember app. In order to support "embroider v2" style apps, or non-ember dependencies, we would need a reliable way of detecting whether something is a classic ember app or a "standard" npm dependency.

Options:

  • Assume everything is a standard npm dependency and accept another argument to indicate which is the classic ember app. This is possible because we don't expect there to be more than 1 classic ember app beyond the truly pathological cases (e.g. an addon depending on an app).
  • Add something to package.json to identify that something is a classic ember app (ember-app keyword or similar)

Add Support for Path Conflict Resolution

see #7

Given apps

my-app/
  app/
    tests/
      foo.js


my-pathological-app/
  app/
    tests/
      bar.js
  tests/
    bar.js

The following

resolve('my-app/tests/foo.js', options) === `${pathToMyApp}/app/tests.foo.js`)

will not work as we assume tests/foo.js must be in tests

Similarly resolve('my-pathological-app/tests/foo.js', options) is ambiguous and probably requires the ember env to properly disambiguate.

Add support for peer dependencies

Peer dependencies are installed by default in npm@7 and so are usable again.

  • Update node-fixturify-project to support peer deps
  • check peer-dependencies for addons
  • dep > dev dep > peer dep for root
  • ignore dev dep for addon
  • dep > peer dep for addon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.