GithubHelp home page GithubHelp logo

Comments (5)

ryanto avatar ryanto commented on July 20, 2024

Should this be a peerDependency?

from ember-cli-fastboot-testing.

samselikoff avatar samselikoff commented on July 20, 2024

Good question, just asked again here: https://discuss.emberjs.com/t/best-practices-for-including-3rd-party-libraries-in-an-addon/15200/6

from ember-cli-fastboot-testing.

ryanto avatar ryanto commented on July 20, 2024

I think we should follow prember's lead here, since prember also uses ember-cli-fastboot in Ember's package.json ember-addon config: https://github.com/ef4/prember/blob/master/package.json#L72

It looks like they give setup instructions that say to install ember-cli-fastboot: https://github.com/ef4/prember#quick-start

And then if the plugin fails to build they show this error: https://github.com/ef4/prember/blob/df566f26d6f2c869c9e42bbbc117a817018384c3/lib/prerender.js#L52

We don't have a broccoli plugin, so I'm not sure where to put that try/catch, but it's probably something we should explore.

from ember-cli-fastboot-testing.

samselikoff avatar samselikoff commented on July 20, 2024

Makes sense, I like having some declaration of the dependency and this is the next best thing to package.json.

I'd say put the pkg check in the included() hook:

  included() {
    this._super.included.apply(this, arguments);

    // new code
  }

ECTailwind for reference

from ember-cli-fastboot-testing.

ryanto avatar ryanto commented on July 20, 2024

Fixed in #38

from ember-cli-fastboot-testing.

Related Issues (20)

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.