Skip to content

Support flutter create --package #10377

Description

@mit-mit

We currently support:

  1. flutter create for creating an 'application', and
  2. flutter create --plugin for creating a 'plugin' (i.e., a 'package' with native code)

To facilitate creating pure-dart 'package', would be good to support:

  1. flutter create --package

Template content:

  1. pubspec.yaml (similar to plugin)
  2. CHANGELOG.md (similar to plugin)
  3. README.md (similar to plugin)
  4. .gitignore (similar to plugin but without platform ones)
  5. lib/<name>.dart: contains a single class with some simple sample API and some instructional comments
  6. test/<name>_test.dart: contains a simple test class (see stagehand templates).

Activity

  1. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    on May 29, 2017
  2. sethladd commented on May 30, 2017

    @sethladd
    Contributor

    Would flutter create --plugin add plugin files to an existing package? Would it "upgrade" it?

  3. added this to the milestone on May 30, 2017
  4. mit-mit commented on May 31, 2017

    @mit-mit
    MemberAuthor

    That command would not, but another set of commands being discussed would. Those ability are definitely needed.

  5. sethladd commented on May 31, 2017

    @sethladd
    Contributor

    This feature greatly helps #10070

  6. Hixie commented on Jun 6, 2017

    @Hixie
    Contributor

    It's not clear that this is a priority right now; should we move to a future milestone?

  7. sethladd commented on Jun 6, 2017

    @sethladd
    Contributor

    We can document a work-around, so it's technically not blocking.

  8. mit-mit commented on Jun 7, 2017

    @mit-mit
    MemberAuthor

    No, not blocking, but it's hurting our end to end plugin devexp story, which is suffering a bit from 'death by a thousand paper cuts', so I want to keep this in milestone 3.

  9. mit-mit commented on Jun 15, 2017

    @mit-mit
    MemberAuthor
  10. mit-mit commented on Jun 19, 2017

    @mit-mit
    MemberAuthor

    @jakobr-google tried to specify contents of this templates up-top, does that look resonable?

  11. added a commit that references this issue on Aug 23, 2017
    06c66f4
  12. added a commit that references this issue on Aug 23, 2017
    5d0d612
  13. mit-mit commented on Aug 24, 2017

    @mit-mit
    MemberAuthor

    Thanks @jakobr-google!

    Documentation was updated in flutter/website#656.

  14. github-actions commented on Sep 4, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  15. locked as resolved and limited conversation to collaborators on Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

toolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions