sidekick 1.0.0
sidekick: ^1.0.0 copied to clipboard
Creates a CLI for your flutter app for custom tasks and automation
Changelog #
1.0.0 (2023-1-30) #
- Update to
sidekick_core: ^1.0.0#214 - Does not create a git repo
git initanymore #219 - No absolute path required for
projectRoot. It's now relative to working directory #219 - Creates empty folder when
projectRootdoesn't exist (Fixes #205) #219 - Rename option
entrypointDirectory->projectRoot#219 - Install flutterw using flutterw_sidekick_plugin when a flutter package is detected #219
0.10.0 (2023-1-25) #
0.9.0 (2023-1-20) #
Updates to the sidekick CLI #
sidekick updatenow updates the global sidekick CLI to the latest version #159
Updates from sidekick_core (0.13.1 -> 0.15.1) #
Changes to generated sidekick CLIs #
<cli> <command>Sidekick CLIs now automatically check for updates after executing a command. Disable withexport SIDEKICK_ENABLE_UPDATE_CHECK=false#177 #171<cli> sidekick updatenow updates to the latest stable Dart SDK #167- Automatic
pub upgradewhen CLI compilation fails (due to Dart SDK upgrade) #166
New APIs #
-
New:
BashCommandto simplify converting bash scripts to commands in dart #168BashCommand( name: 'codegen', description: 'Runs build runner', workingDirectory: runner.mainProject?.root, script: () => ''' ${systemFlutterSdkPath()}/bin/flutter pub run build_runner build --delete-conflicting-outputs ''', ),
Bugfixes and improvements #
DepsCommandnow ignores sidekick packages, which pull deps automatically with embedded Dart SDK #184- Fix:
DepsCommand.excludeGlobnow starts matching at repo root, not CWD #183 sidekick updatenow handlespathandgitdependencies when updatingsidekick_core#180DartPackage.fromDirectory()Simplify detection of Flutter packages #182
Template Changes #
- CLI template now does not generate a
<cli>_project.dartfile. You can continue to use yours but we found most people didn't need it. (#156) - UsageException is now correctly printed (#157) (with
<cli> sidekick updatemigration) - Calling the CLI with zero arguments now also checks for sidekick updates (#157) (with
<cli> sidekick updatemigration) - Fix unnecessary CLI recompilation in
run.sh(#152)
API Changes #
0.8.0 #
sidekick --versionnow prints the version
sidekick init #
-
cli entrypoint location (
--entrypointDirectory) and cli package location (--cliPackageDirectory) are now individually configurable. Will be asked duringinitif not provided. -
Allow project names with underscores #112
-
Cli template updates
- New
<cli> sidekick updatecommand (available sincesidekick_core: 0.13.0), to update your existing sidekick cli to the latest version, like runningsidekick initagain #111 - Output when compiling the cli is now reduced (no pub get output) #109
- Analyzer now ignores the cli
builddir #107
- New
sidekick plugins #
- Updated plugin templates
- Using new
addSelfAsDependency()method shared-codetemplate now saves the template dart files in thetemplatedir, not as plain string in code. #132
- Using new
0.7.2 #
- Add documentation
- Add example folder
- Update repository link
0.7.1 #
- Hotfix of build error
0.7.0 #
- New plugins system which can be used to easily extend your sidekick CLI and share automation with others (#58)
sidekick plugins createcreates a plugin from a template (#65, #79, #91)sidekickcommand in generated sidekick CLIs now bundles plugins, recompile, and install-global command (#82, #89)- Add validation to only allow CLI names which are not already occupied on PATH (#76)
- Add
CleanCommandto CLI template (#85) - sidekick CLIs now download their own bundled Dart SDK instead of using
flutterw(#53)
0.6.0 #
- We now support the "multiple packages" repository layout where all packages are located in
/packages - For multi package layouts, use the
--mainProjectPathoption to specify the path to themainProject - Fix macos detection in
run.shscript - The entrypoint is now executable on Unix systems when sidekick was generated on Windows #23
- the mason cli is now pinned in the project to be used in
/tools
0.5.0 #
- Naming is hard, we're now suggesting cli names
- Update
sidekick_coredependency on init - Generate
.gitignore
0.4.0 #
- Automatic recompile when cli code changes
- New
install-globalcommand. This is now a manual step and works on M1 macs (Darwin-arm64) - entrypoint has been simplified and is now just a symlink on steroids
- Remove dependency on
realpath(which was a third-party tool on macos) - The root project has now a valid name
0.3.0 #
- Windows support
- Better
cliNamemissing error message
0.2.0 #
- Rename
update_sidekicktask torecompile - Update
sidekick-core - Update
mason - Support for dart 2.12
0.1.1 #
Update sidekick-core
0.1.0 #
First working prototype of sidekick init using flutterw
0.0.1 #
Claim pub name for CLI