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.
- Host: GitHub
- URL: https://github.com/codelessly/codelessly_starter_brick
- Owner: Codelessly
- License: other
- Created: 2023-12-14T10:18:59.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-03T15:13:25.000Z (about 1 year ago)
- Last Synced: 2025-01-14T09:15:46.934Z (about 1 year ago)
- Language: JavaScript
- Size: 10.3 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# codelessly_starter
[](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.