Skip to content

Codelessly/codelessly_starter_brick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codelessly_starter

Powered by Mason

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

Generated by mason 🧱

Getting Started 🚀

  1. Install mason globally

    dart pub global activate mason
  2. Install the brick

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

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

Updating this brick

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

cd __brick

Next get flutter dependencies:

flutter pub get

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

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.

About

A mason brick for generating Codelessly starter project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published