Coder Social home page Coder Social logo

angular_transforms's People

Contributors

blois avatar

Watchers

 avatar

Forkers

vicb tedsander

angular_transforms's Issues

Add mechanism to get generated files

Ideally this could double as a file generator as well.

Options include:

  • Separate command line app using barback to output the files
  • Pub build command to output the files
  • pubspec.yaml argument to send output to the build dir

Support prefixed auto injection library

From the user's app entry point they need to reference the auto injection types (which are top-level members), but currently this doesn't support library prefixes.

May need the resolved AST, but can probably hack it without it.

Resolve the AST for all parsing

Currently all transforms are operating on an unresolved AST meaning it's doing simple identifier matching (fancy string matching). This has a large potential for problems and limits the expressiveness of additional statically injected types.

Allow type suppressions

Currently all types with injection annotations and metadata are processed which adds unnecessary bloat. Provide a way to suppress types.

Types included in the static injector generation include the constructor so tree shaking will not eliminate these at all, leading to potentially significant chunks of code for things like the dynamic expression parser.

Remove your local deps

@blois do you think it could be possible to remove your local deps so that I can test this ?

The pubspec.yaml refers to local folders for both angular and di, you might be able to use git refs ?

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.