Coder Social home page Coder Social logo

blueprint-docs's Introduction

Blueprint Docs

This project contains the documentation for Blueprint. It's built with Jigsaw using their Docs Template.

Contributing

Contributions may be made by submitting a Pull Request against the master branch.

You may also contribute by opening an issue to report a typo, ask a question, or suggest new content.

blueprint-docs's People

Contributors

benjam-es avatar dependabot[bot] avatar dmason30 avatar forrestedw avatar geneowak avatar jakub-wolowski avatar jasonmccreary avatar jdubwelch avatar kachelle avatar mrmage avatar mtolhuys avatar projektgopher avatar tabacitu avatar tanthammar avatar voidgraphics avatar whoami15 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

blueprint-docs's Issues

Doc should be clear that BluePrint only creates new components, doesn't support updates

I've just started using BluePrint and after reading the doc, "it's common to simply reuse the draft.yaml file over and over again to continue to generate code for your application", I was (wrongly) under the impression that I just could define a column and have my model updated.

I had to read many issues to finally find this one.

I probably shouldn't believe in magic anymore, but I can't help...

I think the doc should make clear that models can't be updated, and/or give any clues to bypass this.

Best way to extends model lexers

I have a questions about extending blueprint, since the docs doesn't cover too much about it, and I have not a twitter account to ask there, so sorry to jump here with this question.

I create a custom generator which starting from a model defined in draft.yaml, generate the controllers and basic views with a table with sorting and filtering.

All works fine so far, pretty powerful package!

At the moment I have just get all columns from model using $model->columns() and making all string, number and dates sortable and filterable.

I would like to add some new info inside draft.yaml when defining the model.

Somethiing like:

models:
  Post:
    title: string:255 sortable filterable
    content: longtext filterable
    published_at: nullable timestamp
    softDeletes

seeders: Post

I think such things should be done in the lexer, since we can only overrides the generators via config, is there a way to do this without creating custom model generator and model lexer?

Thanks

Deployment?

Hey @jasonmccreary

I've noticed an example on the website being incorrect:

image

When I checked the repo to fix it, I've noticed it was already fixed. Maybe the deployment needs to be triggered?

Cheers,
Peter

Blueprint how can we ignore existing models?

Just starting a new project and blueprint is great.
I was able to setup the initial structure of my app within minutes ๐Ÿ”ฅ

One question is how do I append additional models without overriding everything?
I assumed running blueprint:trace would cache the models generated so that running again with the additional models appended to draft.yaml would only generate the new model.

However it seems to override everything which is not ideal after editing each model.
Expected behaviour would be to ignore anything which is already in .blueprint then just add new model Bid for example.

models:
    Auction: {  }
    Buyer: {  }
    Category: {  }
    Item: {  }
    Price: {  }
    Seller: {  }
    User: { }
    UserProfile: {  }

Current workaround is to comment out the generated models in draft.yaml
Certainly not ideal hoping there is a better way? or perhaps I can create a PR at some point to ignore anything with has been previously generated by the build command?

Additionally are you planning support enum generation?
for example it would be useful to generate Enums based from the field.
buyer_status: enum:pending,paid,reviewed,refunded,cancelled,disputed,completed

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.