Comments (11)
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:
ember-cli-coffeescript/index.js
Lines 10 to 12 in 0d198f2
That way, the blueprints from ember-cli would be used, and they output js-files.
from ember-cli-coffeescript.
Thanks for the quick answer! I'll have a look later, thanks for the pointers !
from ember-cli-coffeescript.
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.
Okay. I'll have a look at this when I have the time, maybe this weekend. Thanks again!
from ember-cli-coffeescript.
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.
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.
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.
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.
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.
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.
awesome man. Thanks for the work !
from ember-cli-coffeescript.
Related Issues (20)
- blueprints not working in ember 2.7.0 HOT 18
- Change name of ember npm package in `after` HOT 2
- Add `vendor` to broccoli tree/node HOT 1
- Who is still holding out and using coffeescript with Ember? HOT 2
- Update broccoli-coffee dependency to 0.7.0 HOT 2
- Update README now that import/export are in CoffeeScript HOT 3
- ember server freezes on windows in v1.15.0 after creating component HOT 4
- Addons created in coffeescript can only be consumed by applications with coffeescript HOT 7
- Test that generated blueprints are valid CoffeeScript HOT 4
- Export classes directly instead of saving to variable
- Generated code no longer pass the tests HOT 2
- Make `utils` generated files export named function HOT 4
- Investigate if addon blueprints can be removed.
- Add missing `instance-initializer` blueprints
- When a route doesn't have a model property defined and the route is hit, the route is unrecognized HOT 1
- Ember generate: `ember-cli/ext/promise` is deprecated
- Support coffeescript 2 HOT 6
- Blueprints do not work with new ember-cli HOT 4
- Tests are not generated for CoffeeLint
- Cannot find module 'ember-cli/lib/ext/promise' on "ember help g" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-cli-coffeescript.