From 7649a439b4932e2ad014d6abf634df4c2082ff43 Mon Sep 17 00:00:00 2001 From: Maikel Rehl Date: Wed, 12 Jun 2024 12:03:19 +0200 Subject: [PATCH] Prepare publish package --- .pubignore | 1 + README.md | 13 ++++++++++++- lib/src/install_puro.dart | 2 +- pubspec.yaml | 3 --- 4 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 .pubignore diff --git a/.pubignore b/.pubignore new file mode 100644 index 0000000..c33ed97 --- /dev/null +++ b/.pubignore @@ -0,0 +1 @@ +ci_test/ \ No newline at end of file diff --git a/README.md b/README.md index a434bd8..a36a483 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,17 @@ The `flutterSdkPath:` binds the current Puro environment SDK, allowing the `flut Install the plugin with the following command: ```bash - sidekick plugins install --source git https://github.com/phntmxyz/puro_sidekick_plugin + sidekick plugins install puro_sidekick_plugin +``` + +After installation, the plugin is available in the Sidekick CLI. +Afterward it will check if `puro` is installed already, if not it will aks you to install `puro` globally +or if you want to use it locally for the current project. + +```bash +~/project master > flutter --version 5s +Puro is not installed. +Do you want to install Puro global? (y/n) [n] ``` ## Usage @@ -31,6 +41,7 @@ environment: ```bash flutter --version // Outputs Flutter version 3.10.6 + puro flutter --version // Also outputs Flutter version 3.10.6 ``` You can also specify a particular Flutter version. diff --git a/lib/src/install_puro.dart b/lib/src/install_puro.dart index a6b8167..1c0961c 100644 --- a/lib/src/install_puro.dart +++ b/lib/src/install_puro.dart @@ -20,7 +20,7 @@ Directory installPuro({ } final installGlobal = - dcli.ask("Puro is not installed.\nDo you want to install Puro globally? (y/n)", defaultValue: 'n'); + dcli.ask("Puro is not installed.\nDo you want to install Puro global? (y/n)", defaultValue: 'n'); final latestVersion = getLatestPuroVersion(); print('Download Puro $latestVersion'); diff --git a/pubspec.yaml b/pubspec.yaml index c571c0d..1bc5549 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -6,12 +6,9 @@ issue_tracker: https://github.com/phntmxyz/puro_sidekick_plugin/issues topics: - sidekick - sidekick-plugin - - flutter-wrapper - flutter-version-management - puro -publish_to: none - environment: sdk: '>=3.0.0 <4.0.0'