Comments (4)
@felangel My bad, forgot to write the description. I've updated the OP π
from mason.
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.
Closed by #149 π
from mason.
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)
- chore: `mason_logger` - update win32 package HOT 2
- feat: support conditional prompting for variables HOT 6
- feat: include `prompt` style in `LogTheme`
- fix: Extra line with condition statement HOT 5
- feat: hook resource sharing
- perf: Generating files from a list which is not a simple string rather a List<Map<String, dynamic>> takes over 30 minutes HOT 2
- feat: simplify relying on defaults when using `mason make` in CI HOT 2
- fix: Generating files from array not working HOT 6
- fix: Crash with "StreamSink is bound to stream" HOT 5
- fix: mason_logger does not handle `stdin.hasTerminal` being false
- fix: The getter 'STD_HANDLE' isn't defined for the class 'WindowsTerminal'. HOT 8
- Failing to activate mason_cli after upgrading to mason_cli: ^0.1.0-dev.54 HOT 1
- feat: set default output directory HOT 3
- feat: ask to overwrite or not for duplicate brick name
- feat: Retain colors across process boundary HOT 2
- fix: `Isolate.spawnUri()` does not contain a valid AOT snapshot on script compiled with `dart compile exe` HOT 5
- feat: Mirror logger output to a file
- FileSystemException: Creation failed. (OS Error: File name too long, errno = 63) HOT 2
- fix: mason_logger is not working properly when it reaches to the end of terminal HOT 5
- fix: Brick.git not generating windows HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mason.