🧔 The package that will help you out with Dart's Pub 🎯
Bring publican to your global dependencies:
pub global activate publicanInitializes a pubspec.yaml file.
mkdir my_awesome_app
cd my_awesome_app
publican initIt will generate a pubspec.yaml file with the following defaults:
name: my_app
version: 0.1.0
description: My awesome Dart appYou 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 pubspec.yaml file.
publican add angular angular_componentsPublican 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+2The --dev flag will add the dependencies to dev_dependencies key
publican add --dev build_runner build_web_compilersname: 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.0If 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 @ symbol:
publican add angular@^1.1.2+2Want to try bleeding edge versions of you dependencies? Just add the -a or --alpha flag:
publican add -a angulardependencies:
angular: ^5.0.0-alpha+8BSD 3-Clause License
Copyright (c) 2018, Leo Cavalcante All rights reserved.