An open API service indexing awesome lists of open source software.

https://github.com/codelessly/codelessly_starter_brick

A mason brick for generating Codelessly starter project.
https://github.com/codelessly/codelessly_starter_brick

Last synced: about 2 months ago
JSON representation

A mason brick for generating Codelessly starter project.

Awesome Lists containing this project

README

          

# codelessly_starter

[![Powered by Mason](https://img.shields.io/endpoint?url=https%3A%2F%2Ftinyurl.com%2Fmason-badge)](https://github.com/felangel/mason)

A Codelessly starter project brick to quickly get started with Codelessly SDK.

_Generated by [mason][1] 🧱_

## Getting Started 🚀

1. Install mason globally

```bash
dart pub global activate mason
```
2. Install the brick

```bash
mason add codelessly_starter -g --git-url https://github.com/Codelessly/codelessly_starter_brick
```
3. Run the brick in an empty directory.

```bash
mason make codelessly_starter
```
4. Follow the instructions in the terminal. Provide authToken and layoutID displayed in the Codelessly editor.

- [Official Mason Documentation][2]
- [Code generation with Mason Blog][3]
- [Very Good Livestream: Felix Angelov Demos Mason][4]
- [Flutter Package of the Week: Mason][5]
- [Observable Flutter: Building a Mason brick][6]
- [Meet Mason: Flutter Vikings 2022][7]

[1]: https://github.com/felangel/mason
[2]: https://docs.brickhub.dev
[3]: https://verygood.ventures/blog/code-generation-with-mason
[4]: https://youtu.be/G4PTjA6tpTU
[5]: https://youtu.be/qjA0JFiPMnQ
[6]: https://youtu.be/o8B1EfcUisw
[7]: https://youtu.be/LXhgiF5HiQg

## Updating this brick

First of all, enable flutter and get dependencies inside the
__brick__ directory by running:

```bash
cd __brick
```

Next get flutter dependencies:

```bash
flutter pub get
```

Make any changes you like, and once you're satisfied and want
to publish your changes to this brick, run:

```bash
flutter build web --release --dart-define=FLUTTER_WEB_USE_SKIA=true
```

To regenerate the build folder output so that CI/CD services like
Netlify and Vercel can reference a pre-built and updated /build/ folder
directly without needing to build from scratch.

After that, clean up the __brick__ directory by removing these
excluded directories and files:
- .dart_tool
- .metadata
- pubspec.lock
- .flutter-plugins
- .flutter-plugins-dependencies

If you don't delete the .dart_tool folder, mason brick creation
will take upwards of 400 seconds.