gonuit / rps Goto Github PK
View Code? Open in Web Editor NEWDefine and use scripts from your pubspec.yaml file.
License: MIT License
Define and use scripts from your pubspec.yaml file.
License: MIT License
Hey there! Great library.
Can you define multiple commands to be run within the same keyword?
scripts:
run:
"fvm flutter pub clean"
"fvm flutter pub get"
"fvm flutter pub run build_runner watch --delete-conflicting-outputs"
Because otherwise we have to do the following which is really not ideal:
scripts:
run: "fvm flutter pub clean && fvm flutter pub get && fvm flutter pub run build_runner watch --delete-conflicting-outputs"
For some reason on run it on windows as rps --version
the output is duplicated:
Environment
Dart SDK version: 2.14.4 (stable) (Wed Oct 13 11:11:32 2021 +0200) on "windows_x64"
Flutter 2.5.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 18116933e7 (4 months ago) • 2021-10-15 10:46:35 -0700
Engine • revision d3ea636dc5
Tools • Dart 2.14.4
Getting rps as globally activated doesn't support Dart 3.0.0-312.0.dev, try: dart pub global activate rps
Hello, thanks for the great idea and package. I'm trying to run the rps command on the Macbook M1 machine. Commands run successfully but the terminal keeps showing a result message. I'm not able to run a new command without ctrl+c.
scripts:
# run is a default script. To use it, simply type
# in the command line: "rps" - that's all!
run: "flutter run -t lib/main.dart --flavor development"
# you can define more commands like this: "rps gen"
gen: "flutter pub run build_runner watch --delete-conflicting-outputs"
build:
android:
apk-dev: "flutter build apk --dart-define FLAVOR=\"development\""
ios:
ipa-dev: "flutter build ipa --export-method ad-hoc --dart-define FLAVOR=\"development\""
I'm running rps gen
❯ rps gen
> gen
$ flutter pub run build_runner watch --delete-conflicting-outputs
And then the terminal keeps stuck as below
This works as expected
> flutter pub run build_runner build --delete-conflicting-outputs
The readme shows script labels intended after run:
scripts:
# run is a default script. To use it, simply type
# in the command line: "rps" - that's all!
run: "flutter run -t lib/main_development.dart --flavor development"
# you can define more commands like this: "rps gen"
gen: "flutter pub run build_runner watch --delete-conflicting-outputs"
but this results in a missing script error.
Being not super familiar with yaml syntax I didn't see the problem and couldn't figure it out until I noticed in this project's pubspec.yaml, the test:
label is not indented beyond run:
.
I'm trying to run rps gen
as it's specified on the documentation but i'm receiving an error.
juan@juan-hp:~/adguard_home_manager$ rps gen
Error! Missing script for: "gen".
I tried running rps run <my command>
and it worked so maybe rps gen
was working but for some reason it throwed that error.
I have encountered an error but not sure related with your repo so this was the error
** Invalid argument(s): Failed to load dynamic library 'C:\Users\legol\AppData\Local\Pub\Cache\hosted\pub.dev\rps-0.6.4\lib\native\rps.dll': error code 126
#0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:43)
#1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12)
#2 execute (package:rps/bindings/execute.dart:30:32)
#3 RunCommand.run (package:rps/commands/run_command.dart:35:22)
#4 main (file:///C:/Users/legol/AppData/Local/Pub/Cache/hosted/pub.dev/rps-0.6.4/bin/rps.dart:38:26)
** I searched stackoverflow to find a solution but I really didn't grasp it to solve my problem because there was one of them that tried to communicate with c++ so it was not what I looking for.
I had been looking for something like this. Currently, I am using npm, but I just found this tool and I will be making my switch right now. Thank you for sharing this.
I do have feedback and would love to know what you think about this:
My Scenario
build:
$script: echo "Building Both IOS and Android APPS"
ios: "Building just IOS"
android: "Building just ANDROID"
With the above config, I would like to sometimes just run rps build
and other times I would like to run rps build ios
Is something like this possible?
As of today, I could potentially just do something like this, which would be very much like the npm scripts. but was just wondering if there is a way to nest as well.
build: echo "Building Android and IOS"
build:ios: echo "Building IOS"
build:android: echo "Building Android"
Thank you
I am aware that I can pass arguments as mentioned in the docs like:
rps gen
# you can also provide additional arguments
rps gen --verbose
However, I want a string to be passed (actually, an argument).
This is what I am trying to do:
package: cd packages && very_good create flutter_package <name> && cd ..
Here I am not sure if it is possible to pass the from rps like rps package <name>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.