Questions tagged [dart-pub]

Pub is a package manager for Dart applications and libraries.

Pub is a package manager for Dart applications and libraries. You can find packages to use in a project or publish packages to the package repository. Pub automatically keeps track of dependencies to other packages and makes sure that the dependencies use the right version of a package.

Basics:

  • Use pub get to get dependencies
  • Use pub upgrade to upgrade a dependency
  • Use pub publish to make your library available for others

Resources:

1128 questions
0
votes
1 answer

Dart app with bin, web and libs

I want to make Dart app that has flexible deployment. It can be started as a web server or standalone app in browser as well. My directory structure: bin - httpserver.dart lib - commonlib.dart web - web.html - web.dart pubspec.yaml I wanto start…
Skoky
  • 849
  • 1
  • 9
  • 15
0
votes
1 answer

PyCharm: Run pub build as an external tool

I am using PyCharm IDE with Dart plugin which allows running pub get, pub build, etc. easily by clicking a "link" when looking at the .yaml file. I'm using dart stuff inside my pyramid app and I would like to automatically build the dart stuff…
zegkljan
  • 8,051
  • 5
  • 34
  • 49
0
votes
1 answer

Could not find asset polymer|lib/default_build.dart

I upgraded my Dart to Dart 1.7_dev4.5 My application does not run anymore and now I have the following stack trance Could not find asset…
st_clair_clarke
  • 5,453
  • 13
  • 49
  • 75
0
votes
1 answer

dart, polymer build failure, can'tfind polymer/polymer.dart?

I have a project that was building fine a few days ago, since then I haven't changed my dart-sdk or any library dependencies or update dart editor to my knowledge, I just made a very small change to one of my polymer elements to use paper-buttons…
Daniel Robinson
  • 13,806
  • 18
  • 64
  • 112
0
votes
1 answer

How to make Dartlang's "pub get" be more sensible. Are there alternatives?

So in the current age of Software Engineering, code reuse is so important that modern languages have some form of dependency management. Dartlang achieves this through the use of Pub. However, pub has taken the approach of using shared dependencies,…
Marc Byfield
  • 510
  • 4
  • 14
0
votes
0 answers

How to compress and obfuscate during Pub build

I find generated .js file is long and large after Dart2JS. I am using pub build on dart editor not include Angular/Polymer packages. Some files xxxx.dart.precompiled.js arround 1500 - 2500KB. I want to know if Dart provide any way to compress and…
Roger Chan
  • 1,293
  • 2
  • 11
  • 24
0
votes
2 answers

Dart Editor Dartium: "could not start pub serve or connect to pub"

I just installed Dart Editor on Ubuntu 14.04, opened the Sunflower demo, right clicked on sunflower.html, chose Run in Dartium, and was faced with "Could not start pub serve or connect to pub." So I went to Google and found the following reasons why…
OCDev
  • 2,280
  • 3
  • 26
  • 37
0
votes
0 answers

Pub serve all files

In terms of js/css/img type assets, is there a way to serve everything you have in "web" and "lib" regardless of whether or not you used it in your HTML? Also, maybe put that small bit in bold in the documentation...It took me FOREVER to figure out…
Tom
  • 3,507
  • 1
  • 29
  • 29
0
votes
1 answer

Unable to add three.dart package from their Git repository

I tried adding the three/three.dart package from their Git repository to my project. I did that as mentioned here. But running pub get from the editor gives the following error: Pub get failed, [1] Resolving dependencies... (0.1s) Git error.…
user3699912
  • 158
  • 2
  • 3
  • 13
0
votes
0 answers

Dart-polymer build error from package "smoke"

I'm building an application using Angular and Polymer in Dart. Everything was going fine until I reinstalled my computer (happens some times), then I started getting this error: Error in pubspec for package "smoke" loaded from…
Peril Ravine
  • 1,142
  • 8
  • 12
0
votes
1 answer

Increase timeout value for pub get

I am trying to fetch Dart packages using pub get, but keep getting timeout errors. TimeoutException after 0:00:30.000000: Timed out while fetching URL…
Hanxue
  • 12,243
  • 18
  • 88
  • 130
0
votes
1 answer

Dart Editor: original example web app (using polymer) : compiling error

I have installed version: Dart Editor version 1.1.3.release (STABLE) Dart SDK version 1.1.3 I created a new web application using the libraries of polymer. The application is the original example that brings the editor: clickcounter. I have not…
marcelo
  • 69
  • 6
0
votes
2 answers

dart polymer compiling failed

When I compile my Polymer.Dart project to JS, I get: --- 16-feb-2014 17:37:09 Running dart2js... --- E:\dart\dart-sdk\bin\dart2js.bat --package-root=E:\Proyectos DART\Componentes\Carousel\bin --out=E:\Proyectos…
marcelo
  • 69
  • 6
0
votes
1 answer

dart2js Uncaught TypeError cannot read property

When I compile my dart2js I keep getting an error from the shadow_dom.debug.js Uncaught TypeError: Cannot read property 'st885323213750055768' of undefined Does anyone what this property is?
robbie
  • 269
  • 1
  • 9
0
votes
1 answer

Dependency is not being resolved on pub upgrade command

I have noticed that when I do a pub upgrade certain dependencies are not being resolved as expected - mainly analyzer and args. Please look at the console output for a particular upgrade. Resolving…
st_clair_clarke
  • 5,453
  • 13
  • 49
  • 75