Skip to content

Decouple the generated packages #12

@jodinathan

Description

@jodinathan

Today the Typings package is huge because it bundles all lib bindings with it.

We could decouple them buy introducing some way for the dev to choose the libs it needs while also adding the option to choose the version.

Maybe something like this:

Consider the file typings.dart

@mt.MakeTypings([
  mt.AnimeJS(),
  mt.Deno(version: '1.2.3')
])
library foo;

import 'package:typings/make_typings.dart' as mt;

Then it would generate the bindings in the .dart_tool folder:
typings.animejs.dart, typings.deno.dart

Pretty much like AngularDart does with its templates.

Please let me know if you have any ideas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions