GithubHelp home page GithubHelp logo

Comments (11)

tansongyang avatar tansongyang commented on June 10, 2024 2

PR for template: #103

from ember-cli-typescript.

tansongyang avatar tansongyang commented on June 10, 2024 2

PR for util and util-test: #104

from ember-cli-typescript.

dfreeman avatar dfreeman commented on June 10, 2024 2

Playing with the generators now, I believe we don't actually want to override the *-addon blueprints.

Those are the ones that generate the one-line re-export files in addons' app/ trees, and since we don't process TS there, we likely want to just fall through to the default implementation in CLI the creates .js files.

from ember-cli-typescript.

pixelhandler avatar pixelhandler commented on June 10, 2024 1

@chriskrycho regarding those links I sent previously, the generator one no longer works as I didn't renew that domain, see https://pixelhandler.gitbooks.io/ember-jsonapi-resources-guide/content/generator.html instead.

What I did in that repo was copy the default generators and fit them to the purpose of my addon, see implementation examples here https://github.com/pixelhandler/ember-jsonapi-resources/tree/master/blueprints

Perhaps we'd want to prefix the ember-cli-typescript generators with ts- ? e.g. ember generate ts-service storage, here is one example where I prefix the name, https://github.com/pixelhandler/ember-jsonapi-resources/blob/master/blueprints/jsonapi-service/index.js#L38

from ember-cli-typescript.

chriskrycho avatar chriskrycho commented on June 10, 2024

Unfortunately, the actual tokens and options passed around for this are basically all undocumented (they're usually just object), but we should be able to debugger; in and figure out what they are, and then maybe even submit a PR to fix the Ember CLI docs. ๐Ÿ˜

Some reference material to look through later, courtesy of @pixelhandler:

from ember-cli-typescript.

quantuminformation avatar quantuminformation commented on June 10, 2024

Great idea.

from ember-cli-typescript.

tansongyang avatar tansongyang commented on June 10, 2024

PR for component: #97

from ember-cli-typescript.

tansongyang avatar tansongyang commented on June 10, 2024

PR for helper: #98

from ember-cli-typescript.

MarcoUmpierrez avatar MarcoUmpierrez commented on June 10, 2024

PR for controller: #101

from ember-cli-typescript.

chriskrycho avatar chriskrycho commented on June 10, 2024

@pixelhandler thanks for the update! And thatโ€™s similar to our strategy here, as youโ€™ll note!

@tansongyang I will gander shortly!

from ember-cli-typescript.

championswimmer avatar championswimmer commented on June 10, 2024

FYI this somehow isn't working with Ember CLI 3.x though.
Not sure why.

from ember-cli-typescript.

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.