🧔 The package that will help you out with Dart's Pub 🎯
Bring publican to your global dependencies:
pub global activate publican
mkdir my_awesome_app cd my_awesome_app publican init
It will generate a
pubspec.yaml file with the following defaults:
name: my_app version: 0.1.0 description: My awesome Dart app
You can override default values throught the options:
-n, --name (defaults to "my_app") -v, --version (defaults to "0.1.0") -d, --description (defaults to "My awesome Dart app")
Note: it will not override your current pubspec.yaml file, if you already have one, its safe.
Adds a dependency to
publican add angular angular_components
Publican will already look for the latest stable version:
name: my_app version: 0.1.0 description: My awesome Dart app dependencies: angular_components: ^0.8.0 angular: ^4.0.0+2
⚠️ Also, it will not change your previous YAML structure definitions, that is a key difference from Publican to other similar packages.
--dev flag will add the dependencies to
publican add --dev build_runner build_web_compilers
name: my_app version: 0.1.0 description: My awesome Dart app dependencies: angular_components: ^0.8.0 angular: ^4.0.0+2 dev_dependencies: build_web_compilers: ^0.3.4+2 build_runner: ^0.8.0
If you are not sure about the output, you can check it out before by adding the
--dry-run flag, then it will print out what it would write.
You can also constraint a dependency to a specific version using an
publican add angular@^1.1.2+2
Want to try bleeding edge versions of you dependencies? Just add the
publican add -a angular
dependencies: angular: ^5.0.0-alpha+8
BSD 3-Clause License
Copyright (c) 2018, Leo Cavalcante All rights reserved.
You can install the package from the command line:
$ pub global activate publican
The package has the following executables:
Add this to your package's pubspec.yaml file:
dependencies: publican: "^0.1.3"
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.1.3||Mar 25, 2018|
|0.1.2||Mar 25, 2018|
|0.1.1||Mar 24, 2018|
|0.1.0||Mar 24, 2018|
We analyzed this package on Jun 19, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Detected platforms: Flutter, other
Changelog entries help clients to follow the progress in your code.
The description is too short.
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
Package is pre-v1 release.
While there is nothing inherently wrong with versions of
0.*.*, it usually means that the author is still experimenting with the general direction API.
Maintain an example.
Create a short demo in the
example/directory to show how to use this package. Common file name patterns include:
example.dartor you could also use
Fix analysis and formatting issues.
Analysis or formatting checks reported 2 hints.
Strong-mode analysis of
lib/src/add.dartgave the following hint:
line: 65 col: 43
'NOT_FOUND' is deprecated and shouldn't be used.
|Dart SDK||>=1.19.0 <2.0.0|