Git Product home page Git Product logo

Comments (11)

kimroen avatar kimroen commented on May 30, 2024

Hi there!

That sounds very reasonable :) I don't have any plans on doing this for the moment (busy with work), but would love a PR to add an option for not using the blueprints.

I haven't looked into it, but I'm guessing you'd have to check the option and return something else (null, nothing?) from here:

CoffeescriptAddon.prototype.blueprintsPath = function() {
return path.join(__dirname, 'blueprints');
};

That way, the blueprints from ember-cli would be used, and they output js-files.

from ember-cli-coffeescript.

ksol avatar ksol commented on May 30, 2024

Thanks for the quick answer! I'll have a look later, thanks for the pointers !

from ember-cli-coffeescript.

ksol avatar ksol commented on May 30, 2024

Ok so, it seems one cannot access the options from inside blueprintsPath. I've tried several things, by I'm not fluent enought in node to have it working, so for the moment I'm using my fork : ksol/ember-cli-coffeescript#no-generators.

All I've done is remove the method as well as the blueprints, and updated the readme accordingly. I hope this helps anybody who needs this until a proper solution can be proposed

from ember-cli-coffeescript.

kimroen avatar kimroen commented on May 30, 2024

Okay. I'll have a look at this when I have the time, maybe this weekend. Thanks again!

from ember-cli-coffeescript.

ksol avatar ksol commented on May 30, 2024

One possibility would be to make two packages : one that only adds support for coffee (as my branch does), and one that extends it with the blueprints. Maybe it's overkill and not needed enough to be justified, though. Also I don't know how I would name them...

from ember-cli-coffeescript.

kimroen avatar kimroen commented on May 30, 2024

I don't think that's a horrible idea, I've thought about separating them before. It might be a bit confusing for people coming in to the project from elsewhere, though. It's nice to be able to say "just install ember-cli-coffeescript, and you'll be up and running!".

from ember-cli-coffeescript.

kimroen avatar kimroen commented on May 30, 2024

I spent some time on this today, but I couldn't really find a way to access the options from the blueprintsPath-method either.

@rwjblue I'd like to provide the addon consumer with the option of not using the blueprints. Do you know of a way I could go about this with the available hooks? I was thinking an option passed in to EmberApp in the Brocfile.js, but as far as I can see the blueprintsPath hook is completely separate from all that. Thanks for you time.

from ember-cli-coffeescript.

rwjblue avatar rwjblue commented on May 30, 2024

Would have to be a config/environment.js flag, as you discovered the Brocfile.js configuration is only available during the build process (which is not related to blueprinting).

We plan on a configuration refactoring to come in 0.2.0 (which will unify these two locations), but I do not have an ETA.

from ember-cli-coffeescript.

kimroen avatar kimroen commented on May 30, 2024

Thanks! This will be released as v0.6.0 in not too long. See the PR for how to use, or the README.md when this is released.

from ember-cli-coffeescript.

kimroen avatar kimroen commented on May 30, 2024

This is now available as version 0.6.0.

Thanks for the pointer, @rwjblue. I moved all config over to config/environment.js now, it didn't make any sense to keep it separate. 👍

from ember-cli-coffeescript.

ksol avatar ksol commented on May 30, 2024

awesome man. Thanks for the work !

from ember-cli-coffeescript.

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.