Code Monkey home page Code Monkey logo

Comments (4)

KlausJokisuo avatar KlausJokisuo commented on July 22, 2024 1

@felangel My bad, forgot to write the description. I've updated the OP πŸ™‚

from mason.

marcossevilla avatar marcossevilla commented on July 22, 2024 1

hi @KlausJokisuo! We're evaluating what can be the best approach for your request and the following proposal came up.

Having an extra folder created with template files in which you can add your custom pre/post-generation scripts. The structure would look like this:

β”œβ”€β”€ __brick__
β”‚   β”œβ”€β”€ HELLO.md
β”‚   β”œβ”€β”€ {{~\ footer.md\ }}
β”‚   └── {{~\ header.md\ }}
β”œβ”€β”€ __hooks__
β”‚   β”œβ”€β”€ post_gen.sh
β”‚   └── pre_gen.sh
└── brick.yaml

We can also support an structure where a Dart script is executed but I think it's better to have it generalized with a Bash script.

A Dart script can be supported, similar to what mason bundle does by specifying if it's Dart or universal.

Let us know if that aligns with your needs and hopefully, more people from the community can share their opinions here. πŸ‘

from mason.

felangel avatar felangel commented on July 22, 2024 1

Closed by #149 πŸŽ‰

from mason.

felangel avatar felangel commented on July 22, 2024

Hi @KlausJokisuo πŸ‘‹
Thanks for opening an issue!

Can you provide a bit more context? I’m not sure I fully understand the issue. If you could provide an example as well that’d be super helpful, thanks!

from mason.

Related Issues (20)

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.