learn-dart
development
Setup & CI
prerequisites
- ubuntu/debian
- amd64/arm64
./ci.sh
source ~/.bashrc
compilation
dart compile exe main.dart -o run
./run
commands
- dart.dev/tools/dart-tool check full commands
dart -v
format
- see all options
dart format -v
lint
add lints package
dart pub add --dev lints
test
packaging
create
dart create -t package <name>
dart.dev/guides/libraries/create-library-packages
documenting
dart doc
executable
run
dart run <executable>.dart
compile to binary
dart compile exe -o <output> <executable>.dart
./<output>
publishing
draft
dart pub publish --dry-run
upload to pub.dev
dart pub publish
CD & automate
dart.dev/tools/pub/automated-publishing
VSCode Extensions
- Dart
- Flutter
- Live Server
- YAML
- markdownlint
- Bash IDE
- shell-format
Libraries
- _private_src/_private_ldk
- another_entrypoint
- another_internal/lcm
- ldk
- learning dart packaging. this section is library level document. should be put above 'library' directive.