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 Angular2 on Nodejs debugging

The tutorial of angular2 with dart never actually uses a real server, always pub serve. How can I debug my dart code when using a real server like NodeJS? Atm I'm just getting errors like a.b.Y is not defined(in the browser), which is completely…
DaafVader
  • 1,735
  • 1
  • 14
  • 14
0
votes
1 answer

getting process ID of a pub serve to then kill that thread/process

So when I run my Polymer Dart application, i use pub serve and the serve is created and served. It will stay running until until i break out of it. I was curious if there is a way to programmatically stop it. One of the options I was looking at…
Fallenreaper
  • 10,222
  • 12
  • 66
  • 129
0
votes
1 answer

Dart pub build giving memory error on Koding

I setup my Polymer.Dart based project on Koding.com. All went well and I was able to install the Dart SDK. But when I ran the 'pub build' command after 'pub get' it gives me following error? Failed to compile a snapshot to …
Jawaid
  • 99
  • 1
  • 4
  • 17
0
votes
2 answers

How WebStorm runs Dart web apps

When running a Dart web app in WebStorm, the "Pub Serve" tab on the ? pane at the bottom reports the following (--port differs from run to run): /home/tom/dart-sdk/bin/pub serve web --port=46247 Loading source assets... Loading polymer…
Tom Russell
  • 1,015
  • 2
  • 10
  • 29
0
votes
1 answer

pub get does not install redstone package

I have an issue with pub. I'm new in dart. I followed the instructions on the redstone web page (http://redstonedart.org/doc/Installation.html) to use redstone in my server project. I'm using webstorm. here is a copy-paste of my pubspec.yaml : name:…
0
votes
0 answers

Can't read 'package:intl/intl.dart' only when performing debug build

If I 'Pub Build - Minified' my application compiles and runs correctly. If I instead I do 'Pub Build - Debug' I get the following errors: [Error from Dart2JS on App|web/view_assignment.dart]: web\code_admin.dart:6:8: Can't read…
Dejas
  • 3,511
  • 4
  • 24
  • 36
0
votes
2 answers

How can I configure pub to copy a file from the root directory of my project to build/web?

As part of the pub build process, I would like pub to copy a file from $PROJECT_ROOT/third_party/foo/foo.png to $PROJECT_ROOT/build/web/foo.png to make it accessible to my code at runtime. How can I configure pub to copy the file for me using…
Evan Kroske
  • 4,506
  • 12
  • 40
  • 59
0
votes
2 answers

How to change uploader if my Google account was removed by accident?

I have had Gmail account, which I wanted to close and I wanted to make a new one because of the account (and email address) name. I have maintained a project hosted on GitHub and I were publishing to Pub. But after I had removed the old Gmail and…
aleskva
  • 1,644
  • 2
  • 21
  • 40
0
votes
0 answers

pub build fail with "segmentation fault (core dumped)" on EC2 small intance

Am trying to automate the deployment of my Dart web application, but i keep getting the "segmentation fault (core dumped)" whenever i run pub build on my EC2's Ubuntu 14.04.2 LTS small instance using Dart 1.9.X You can reproduce this using the…
youssef
  • 493
  • 3
  • 11
0
votes
1 answer

Pub error: Pub build failed, [255] Wrong script snapshot version

I have started getting this issue now after going through a lot of "chaos" with performing a system restore (I'm on Win8.1) while trying to get a certain game working again. Now that that mess is over and done with, I have been left with a few apps…
The Ice Mage
  • 445
  • 1
  • 7
  • 17
0
votes
1 answer

how to update pub version

When I run the command >pub version the console shows Pub 1.9.0-dev.0.0 My DartEditor and SDK version is 1.9.0-dev.3.0 How can I update pub to have similar version. Thanks
st_clair_clarke
  • 5,453
  • 13
  • 49
  • 75
0
votes
1 answer

Dart pub trigger transformer build

I'm using Sass in my dart project and build the scss files to css using a transformer. The scss files can import other files so when a scss file is changed all scss files that import the changed file also have to be updated. Currently I run the…
Zachary Huff
  • 16
  • 1
  • 1
0
votes
2 answers

How do you access the command line in Dart Pub package manager

I am trying to explore using Dart's Pub package manager on the command line. Unfortunately, I don't know how to do this, and all the documentation I have read, presupposes that this is known. What are the actual steps needed to set up the command…
richalot
  • 4,491
  • 7
  • 24
  • 27
0
votes
1 answer

dart client side hide/obfuscate code

Is it possible to hide/obfuscate the client side dart code (or js generated by dart)? It looks like obfuscation is the route to when using javascript. Does dart come with an obfuscator? thanks
0
votes
1 answer

After running CDE I can't build sample polymer app in dart editor

file:/C:/Users/Dave/dart/td2/build.dart build.dart returned error code 255 Unhandled exception: Uncaught Error: FileSystemException: Cannot open file, path = 'C:\Users\Dave\dart\td2\packages\args\args.dart' (OS Error: The system cannot find the…
user3329151
  • 145
  • 1
  • 1
  • 5