Skip to content

Miroslav's TODO for yeoman #53

Closed
Closed

Description

@bajtos

List of changes required by yo loopback:
#62

  • Remove id from the generated ACL entries in models.json
    Simplify templates - use app.get('url') #71
  • Simplify app.started, drop started event in favour of listening (see app: update url on listening event loopback#357).
    Implement a hook for custom of cp -r #69
  • Provide a hook allowing workspace API consumers to supply custom ncp implementation, e.g. yeoman's directory function.
    Fix copying of static files #61
  • ensure js files are generated (rest/rest.js, server/server.js)
    More yeoman changes #63
  • Depending on the component type, some configuration files are optional. E.g. the empty root component does not need any *.json files.
  • Remove workspace metadata from generated JSON files, e.g. componentName and configFile in rest/datasources.json, componentName in server/models.json.
  • package.json generated by the current template sets name to . instead of the project name.
  • implement Workspace.isValidDir (see Project.isValidProjectDir in 2.x)
  • Fix boot: include loopback-boot 2.x in package.json, drop email datasource, use capital model names in rest/models.json (User instead of user).
  • API: make componentName required in all entities
  • Refactor the server template to use the boot-based registration of middleware (see example-full-stack).
    Fixes for yeoman generator #56
  • Modify value provides in models/model-access-control.js, use {name, value} instead of {value, humanized}.

Activity

  1. ritch commented on Jun 27, 2014

    @ritch
    Member

    Distinguish between project templates and component templates. Project templates should include files like .gitignore and dependencies in package.json, they are intended for yo loopback. Component templates may be exposed via yo loopback:component.

    We could put this in component.json's config object. Eg. config.type = 'project'. Otherwise components and projects are both the same.

  2. bajtos commented on Jun 30, 2014

    @bajtos
    MemberAuthor

    Templating enhancements were moved to #57.

  3. ritch commented on Jun 30, 2014

    @ritch
    Member

    ensure js files are generated (rest/rest.js, server/server.js)

    See #61

  4. bajtos commented on Jul 1, 2014

    @bajtos
    MemberAuthor

    All items except the following two are addressed in #63.

    • Provide a hook allowing workspace API consumers to supply custom ncp implementation, e.g. yeoman's directory function.
    • Remove id from the generated ACL entries in models.json
  5. added this to the milestone on Jul 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions